AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AgentDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/groundstation/GroundStation_EXPORTS.h>
10#include <aws/groundstation/model/ComponentVersion.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GroundStation {
22namespace Model {
23
30 public:
31 AWS_GROUNDSTATION_API AgentDetails() = default;
32 AWS_GROUNDSTATION_API AgentDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GROUNDSTATION_API AgentDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
41 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
42 template <typename AgentVersionT = Aws::String>
43 void SetAgentVersion(AgentVersionT&& value) {
44 m_agentVersionHasBeenSet = true;
45 m_agentVersion = std::forward<AgentVersionT>(value);
46 }
47 template <typename AgentVersionT = Aws::String>
48 AgentDetails& WithAgentVersion(AgentVersionT&& value) {
49 SetAgentVersion(std::forward<AgentVersionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
59 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
60 template <typename InstanceIdT = Aws::String>
61 void SetInstanceId(InstanceIdT&& value) {
62 m_instanceIdHasBeenSet = true;
63 m_instanceId = std::forward<InstanceIdT>(value);
64 }
65 template <typename InstanceIdT = Aws::String>
66 AgentDetails& WithInstanceId(InstanceIdT&& value) {
67 SetInstanceId(std::forward<InstanceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
77 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
78 template <typename InstanceTypeT = Aws::String>
79 void SetInstanceType(InstanceTypeT&& value) {
80 m_instanceTypeHasBeenSet = true;
81 m_instanceType = std::forward<InstanceTypeT>(value);
82 }
83 template <typename InstanceTypeT = Aws::String>
84 AgentDetails& WithInstanceType(InstanceTypeT&& value) {
85 SetInstanceType(std::forward<InstanceTypeT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Vector<int>& GetReservedCpuCores() const { return m_reservedCpuCores; }
97 inline bool ReservedCpuCoresHasBeenSet() const { return m_reservedCpuCoresHasBeenSet; }
98 template <typename ReservedCpuCoresT = Aws::Vector<int>>
99 void SetReservedCpuCores(ReservedCpuCoresT&& value) {
100 m_reservedCpuCoresHasBeenSet = true;
101 m_reservedCpuCores = std::forward<ReservedCpuCoresT>(value);
102 }
103 template <typename ReservedCpuCoresT = Aws::Vector<int>>
104 AgentDetails& WithReservedCpuCores(ReservedCpuCoresT&& value) {
105 SetReservedCpuCores(std::forward<ReservedCpuCoresT>(value));
106 return *this;
107 }
109 m_reservedCpuCoresHasBeenSet = true;
110 m_reservedCpuCores.push_back(value);
111 return *this;
112 }
114
116
119 inline const Aws::Vector<int>& GetAgentCpuCores() const { return m_agentCpuCores; }
120 inline bool AgentCpuCoresHasBeenSet() const { return m_agentCpuCoresHasBeenSet; }
121 template <typename AgentCpuCoresT = Aws::Vector<int>>
122 void SetAgentCpuCores(AgentCpuCoresT&& value) {
123 m_agentCpuCoresHasBeenSet = true;
124 m_agentCpuCores = std::forward<AgentCpuCoresT>(value);
125 }
126 template <typename AgentCpuCoresT = Aws::Vector<int>>
127 AgentDetails& WithAgentCpuCores(AgentCpuCoresT&& value) {
128 SetAgentCpuCores(std::forward<AgentCpuCoresT>(value));
129 return *this;
130 }
131 inline AgentDetails& AddAgentCpuCores(int value) {
132 m_agentCpuCoresHasBeenSet = true;
133 m_agentCpuCores.push_back(value);
134 return *this;
135 }
137
139
142 inline const Aws::Vector<ComponentVersion>& GetComponentVersions() const { return m_componentVersions; }
143 inline bool ComponentVersionsHasBeenSet() const { return m_componentVersionsHasBeenSet; }
144 template <typename ComponentVersionsT = Aws::Vector<ComponentVersion>>
145 void SetComponentVersions(ComponentVersionsT&& value) {
146 m_componentVersionsHasBeenSet = true;
147 m_componentVersions = std::forward<ComponentVersionsT>(value);
148 }
149 template <typename ComponentVersionsT = Aws::Vector<ComponentVersion>>
150 AgentDetails& WithComponentVersions(ComponentVersionsT&& value) {
151 SetComponentVersions(std::forward<ComponentVersionsT>(value));
152 return *this;
153 }
154 template <typename ComponentVersionsT = ComponentVersion>
155 AgentDetails& AddComponentVersions(ComponentVersionsT&& value) {
156 m_componentVersionsHasBeenSet = true;
157 m_componentVersions.emplace_back(std::forward<ComponentVersionsT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_agentVersion;
163 bool m_agentVersionHasBeenSet = false;
164
165 Aws::String m_instanceId;
166 bool m_instanceIdHasBeenSet = false;
167
168 Aws::String m_instanceType;
169 bool m_instanceTypeHasBeenSet = false;
170
171 Aws::Vector<int> m_reservedCpuCores;
172 bool m_reservedCpuCoresHasBeenSet = false;
173
174 Aws::Vector<int> m_agentCpuCores;
175 bool m_agentCpuCoresHasBeenSet = false;
176
177 Aws::Vector<ComponentVersion> m_componentVersions;
178 bool m_componentVersionsHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace GroundStation
183} // namespace Aws
void SetReservedCpuCores(ReservedCpuCoresT &&value)
const Aws::Vector< ComponentVersion > & GetComponentVersions() const
AWS_GROUNDSTATION_API AgentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< int > & GetReservedCpuCores() const
void SetAgentVersion(AgentVersionT &&value)
AgentDetails & WithInstanceType(InstanceTypeT &&value)
AWS_GROUNDSTATION_API AgentDetails()=default
AgentDetails & AddComponentVersions(ComponentVersionsT &&value)
AgentDetails & WithAgentVersion(AgentVersionT &&value)
AgentDetails & WithComponentVersions(ComponentVersionsT &&value)
void SetInstanceType(InstanceTypeT &&value)
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceType() const
const Aws::String & GetAgentVersion() const
AWS_GROUNDSTATION_API AgentDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< int > & GetAgentCpuCores() const
AgentDetails & WithInstanceId(InstanceIdT &&value)
AgentDetails & AddAgentCpuCores(int value)
AgentDetails & AddReservedCpuCores(int value)
AgentDetails & WithReservedCpuCores(ReservedCpuCoresT &&value)
void SetComponentVersions(ComponentVersionsT &&value)
const Aws::String & GetInstanceId() const
void SetAgentCpuCores(AgentCpuCoresT &&value)
AgentDetails & WithAgentCpuCores(AgentCpuCoresT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue