AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Compute.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/ComputeStatus.h>
12#include <aws/gamelift/model/ContainerAttribute.h>
13#include <aws/gamelift/model/EC2InstanceType.h>
14#include <aws/gamelift/model/OperatingSystem.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GameLift {
26namespace Model {
27
38class Compute {
39 public:
40 AWS_GAMELIFT_API Compute() = default;
41 AWS_GAMELIFT_API Compute(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Compute& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetFleetId() const { return m_fleetId; }
50 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
51 template <typename FleetIdT = Aws::String>
52 void SetFleetId(FleetIdT&& value) {
53 m_fleetIdHasBeenSet = true;
54 m_fleetId = std::forward<FleetIdT>(value);
55 }
56 template <typename FleetIdT = Aws::String>
57 Compute& WithFleetId(FleetIdT&& value) {
58 SetFleetId(std::forward<FleetIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
68 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
69 template <typename FleetArnT = Aws::String>
70 void SetFleetArn(FleetArnT&& value) {
71 m_fleetArnHasBeenSet = true;
72 m_fleetArn = std::forward<FleetArnT>(value);
73 }
74 template <typename FleetArnT = Aws::String>
75 Compute& WithFleetArn(FleetArnT&& value) {
76 SetFleetArn(std::forward<FleetArnT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetComputeName() const { return m_computeName; }
87 inline bool ComputeNameHasBeenSet() const { return m_computeNameHasBeenSet; }
88 template <typename ComputeNameT = Aws::String>
89 void SetComputeName(ComputeNameT&& value) {
90 m_computeNameHasBeenSet = true;
91 m_computeName = std::forward<ComputeNameT>(value);
92 }
93 template <typename ComputeNameT = Aws::String>
94 Compute& WithComputeName(ComputeNameT&& value) {
95 SetComputeName(std::forward<ComputeNameT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetComputeArn() const { return m_computeArn; }
107 inline bool ComputeArnHasBeenSet() const { return m_computeArnHasBeenSet; }
108 template <typename ComputeArnT = Aws::String>
109 void SetComputeArn(ComputeArnT&& value) {
110 m_computeArnHasBeenSet = true;
111 m_computeArn = std::forward<ComputeArnT>(value);
112 }
113 template <typename ComputeArnT = Aws::String>
114 Compute& WithComputeArn(ComputeArnT&& value) {
115 SetComputeArn(std::forward<ComputeArnT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
126 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
127 template <typename IpAddressT = Aws::String>
128 void SetIpAddress(IpAddressT&& value) {
129 m_ipAddressHasBeenSet = true;
130 m_ipAddress = std::forward<IpAddressT>(value);
131 }
132 template <typename IpAddressT = Aws::String>
133 Compute& WithIpAddress(IpAddressT&& value) {
134 SetIpAddress(std::forward<IpAddressT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetDnsName() const { return m_dnsName; }
145 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
146 template <typename DnsNameT = Aws::String>
147 void SetDnsName(DnsNameT&& value) {
148 m_dnsNameHasBeenSet = true;
149 m_dnsName = std::forward<DnsNameT>(value);
150 }
151 template <typename DnsNameT = Aws::String>
152 Compute& WithDnsName(DnsNameT&& value) {
153 SetDnsName(std::forward<DnsNameT>(value));
154 return *this;
155 }
157
159
167 inline ComputeStatus GetComputeStatus() const { return m_computeStatus; }
168 inline bool ComputeStatusHasBeenSet() const { return m_computeStatusHasBeenSet; }
169 inline void SetComputeStatus(ComputeStatus value) {
170 m_computeStatusHasBeenSet = true;
171 m_computeStatus = value;
172 }
174 SetComputeStatus(value);
175 return *this;
176 }
178
180
184 inline const Aws::String& GetLocation() const { return m_location; }
185 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
186 template <typename LocationT = Aws::String>
187 void SetLocation(LocationT&& value) {
188 m_locationHasBeenSet = true;
189 m_location = std::forward<LocationT>(value);
190 }
191 template <typename LocationT = Aws::String>
192 Compute& WithLocation(LocationT&& value) {
193 SetLocation(std::forward<LocationT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
205 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
206 template <typename CreationTimeT = Aws::Utils::DateTime>
207 void SetCreationTime(CreationTimeT&& value) {
208 m_creationTimeHasBeenSet = true;
209 m_creationTime = std::forward<CreationTimeT>(value);
210 }
211 template <typename CreationTimeT = Aws::Utils::DateTime>
212 Compute& WithCreationTime(CreationTimeT&& value) {
213 SetCreationTime(std::forward<CreationTimeT>(value));
214 return *this;
215 }
217
219
229 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
230 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
232 m_operatingSystemHasBeenSet = true;
233 m_operatingSystem = value;
234 }
236 SetOperatingSystem(value);
237 return *this;
238 }
240
242
246 inline EC2InstanceType GetType() const { return m_type; }
247 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
248 inline void SetType(EC2InstanceType value) {
249 m_typeHasBeenSet = true;
250 m_type = value;
251 }
253 SetType(value);
254 return *this;
255 }
257
259
264 inline const Aws::String& GetGameLiftServiceSdkEndpoint() const { return m_gameLiftServiceSdkEndpoint; }
265 inline bool GameLiftServiceSdkEndpointHasBeenSet() const { return m_gameLiftServiceSdkEndpointHasBeenSet; }
266 template <typename GameLiftServiceSdkEndpointT = Aws::String>
267 void SetGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT&& value) {
268 m_gameLiftServiceSdkEndpointHasBeenSet = true;
269 m_gameLiftServiceSdkEndpoint = std::forward<GameLiftServiceSdkEndpointT>(value);
270 }
271 template <typename GameLiftServiceSdkEndpointT = Aws::String>
272 Compute& WithGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT&& value) {
273 SetGameLiftServiceSdkEndpoint(std::forward<GameLiftServiceSdkEndpointT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetGameLiftAgentEndpoint() const { return m_gameLiftAgentEndpoint; }
283 inline bool GameLiftAgentEndpointHasBeenSet() const { return m_gameLiftAgentEndpointHasBeenSet; }
284 template <typename GameLiftAgentEndpointT = Aws::String>
285 void SetGameLiftAgentEndpoint(GameLiftAgentEndpointT&& value) {
286 m_gameLiftAgentEndpointHasBeenSet = true;
287 m_gameLiftAgentEndpoint = std::forward<GameLiftAgentEndpointT>(value);
288 }
289 template <typename GameLiftAgentEndpointT = Aws::String>
290 Compute& WithGameLiftAgentEndpoint(GameLiftAgentEndpointT&& value) {
291 SetGameLiftAgentEndpoint(std::forward<GameLiftAgentEndpointT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
302 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
303 template <typename InstanceIdT = Aws::String>
304 void SetInstanceId(InstanceIdT&& value) {
305 m_instanceIdHasBeenSet = true;
306 m_instanceId = std::forward<InstanceIdT>(value);
307 }
308 template <typename InstanceIdT = Aws::String>
309 Compute& WithInstanceId(InstanceIdT&& value) {
310 SetInstanceId(std::forward<InstanceIdT>(value));
311 return *this;
312 }
314
316
319 inline const Aws::Vector<ContainerAttribute>& GetContainerAttributes() const { return m_containerAttributes; }
320 inline bool ContainerAttributesHasBeenSet() const { return m_containerAttributesHasBeenSet; }
321 template <typename ContainerAttributesT = Aws::Vector<ContainerAttribute>>
322 void SetContainerAttributes(ContainerAttributesT&& value) {
323 m_containerAttributesHasBeenSet = true;
324 m_containerAttributes = std::forward<ContainerAttributesT>(value);
325 }
326 template <typename ContainerAttributesT = Aws::Vector<ContainerAttribute>>
327 Compute& WithContainerAttributes(ContainerAttributesT&& value) {
328 SetContainerAttributes(std::forward<ContainerAttributesT>(value));
329 return *this;
330 }
331 template <typename ContainerAttributesT = ContainerAttribute>
332 Compute& AddContainerAttributes(ContainerAttributesT&& value) {
333 m_containerAttributesHasBeenSet = true;
334 m_containerAttributes.emplace_back(std::forward<ContainerAttributesT>(value));
335 return *this;
336 }
338
340
343 inline const Aws::String& GetGameServerContainerGroupDefinitionArn() const { return m_gameServerContainerGroupDefinitionArn; }
344 inline bool GameServerContainerGroupDefinitionArnHasBeenSet() const { return m_gameServerContainerGroupDefinitionArnHasBeenSet; }
345 template <typename GameServerContainerGroupDefinitionArnT = Aws::String>
346 void SetGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT&& value) {
347 m_gameServerContainerGroupDefinitionArnHasBeenSet = true;
348 m_gameServerContainerGroupDefinitionArn = std::forward<GameServerContainerGroupDefinitionArnT>(value);
349 }
350 template <typename GameServerContainerGroupDefinitionArnT = Aws::String>
351 Compute& WithGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT&& value) {
352 SetGameServerContainerGroupDefinitionArn(std::forward<GameServerContainerGroupDefinitionArnT>(value));
353 return *this;
354 }
356 private:
357 Aws::String m_fleetId;
358
359 Aws::String m_fleetArn;
360
361 Aws::String m_computeName;
362
363 Aws::String m_computeArn;
364
365 Aws::String m_ipAddress;
366
367 Aws::String m_dnsName;
368
369 ComputeStatus m_computeStatus{ComputeStatus::NOT_SET};
370
371 Aws::String m_location;
372
373 Aws::Utils::DateTime m_creationTime{};
374
375 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
376
378
379 Aws::String m_gameLiftServiceSdkEndpoint;
380
381 Aws::String m_gameLiftAgentEndpoint;
382
383 Aws::String m_instanceId;
384
385 Aws::Vector<ContainerAttribute> m_containerAttributes;
386
387 Aws::String m_gameServerContainerGroupDefinitionArn;
388 bool m_fleetIdHasBeenSet = false;
389 bool m_fleetArnHasBeenSet = false;
390 bool m_computeNameHasBeenSet = false;
391 bool m_computeArnHasBeenSet = false;
392 bool m_ipAddressHasBeenSet = false;
393 bool m_dnsNameHasBeenSet = false;
394 bool m_computeStatusHasBeenSet = false;
395 bool m_locationHasBeenSet = false;
396 bool m_creationTimeHasBeenSet = false;
397 bool m_operatingSystemHasBeenSet = false;
398 bool m_typeHasBeenSet = false;
399 bool m_gameLiftServiceSdkEndpointHasBeenSet = false;
400 bool m_gameLiftAgentEndpointHasBeenSet = false;
401 bool m_instanceIdHasBeenSet = false;
402 bool m_containerAttributesHasBeenSet = false;
403 bool m_gameServerContainerGroupDefinitionArnHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace GameLift
408} // namespace Aws
Compute & WithGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT &&value)
Definition Compute.h:272
Compute & WithType(EC2InstanceType value)
Definition Compute.h:252
const Aws::String & GetDnsName() const
Definition Compute.h:144
AWS_GAMELIFT_API Compute & operator=(Aws::Utils::Json::JsonView jsonValue)
Compute & WithInstanceId(InstanceIdT &&value)
Definition Compute.h:309
Compute & AddContainerAttributes(ContainerAttributesT &&value)
Definition Compute.h:332
bool DnsNameHasBeenSet() const
Definition Compute.h:145
const Aws::String & GetLocation() const
Definition Compute.h:184
OperatingSystem GetOperatingSystem() const
Definition Compute.h:229
void SetGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT &&value)
Definition Compute.h:346
ComputeStatus GetComputeStatus() const
Definition Compute.h:167
AWS_GAMELIFT_API Compute()=default
const Aws::Utils::DateTime & GetCreationTime() const
Definition Compute.h:204
bool CreationTimeHasBeenSet() const
Definition Compute.h:205
const Aws::Vector< ContainerAttribute > & GetContainerAttributes() const
Definition Compute.h:319
EC2InstanceType GetType() const
Definition Compute.h:246
const Aws::String & GetFleetArn() const
Definition Compute.h:67
const Aws::String & GetComputeName() const
Definition Compute.h:86
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationTime(CreationTimeT &&value)
Definition Compute.h:207
void SetOperatingSystem(OperatingSystem value)
Definition Compute.h:231
Compute & WithFleetId(FleetIdT &&value)
Definition Compute.h:57
const Aws::String & GetGameLiftAgentEndpoint() const
Definition Compute.h:282
AWS_GAMELIFT_API Compute(Aws::Utils::Json::JsonView jsonValue)
void SetFleetArn(FleetArnT &&value)
Definition Compute.h:70
void SetComputeStatus(ComputeStatus value)
Definition Compute.h:169
bool InstanceIdHasBeenSet() const
Definition Compute.h:302
bool ComputeStatusHasBeenSet() const
Definition Compute.h:168
bool GameServerContainerGroupDefinitionArnHasBeenSet() const
Definition Compute.h:344
void SetInstanceId(InstanceIdT &&value)
Definition Compute.h:304
bool ContainerAttributesHasBeenSet() const
Definition Compute.h:320
void SetIpAddress(IpAddressT &&value)
Definition Compute.h:128
Compute & WithFleetArn(FleetArnT &&value)
Definition Compute.h:75
const Aws::String & GetIpAddress() const
Definition Compute.h:125
void SetComputeArn(ComputeArnT &&value)
Definition Compute.h:109
Compute & WithIpAddress(IpAddressT &&value)
Definition Compute.h:133
Compute & WithGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT &&value)
Definition Compute.h:351
Compute & WithCreationTime(CreationTimeT &&value)
Definition Compute.h:212
Compute & WithContainerAttributes(ContainerAttributesT &&value)
Definition Compute.h:327
const Aws::String & GetComputeArn() const
Definition Compute.h:106
bool GameLiftServiceSdkEndpointHasBeenSet() const
Definition Compute.h:265
bool OperatingSystemHasBeenSet() const
Definition Compute.h:230
Compute & WithOperatingSystem(OperatingSystem value)
Definition Compute.h:235
void SetGameLiftAgentEndpoint(GameLiftAgentEndpointT &&value)
Definition Compute.h:285
bool LocationHasBeenSet() const
Definition Compute.h:185
const Aws::String & GetGameServerContainerGroupDefinitionArn() const
Definition Compute.h:343
Compute & WithGameLiftAgentEndpoint(GameLiftAgentEndpointT &&value)
Definition Compute.h:290
const Aws::String & GetFleetId() const
Definition Compute.h:49
bool FleetIdHasBeenSet() const
Definition Compute.h:50
void SetContainerAttributes(ContainerAttributesT &&value)
Definition Compute.h:322
bool ComputeNameHasBeenSet() const
Definition Compute.h:87
Compute & WithLocation(LocationT &&value)
Definition Compute.h:192
Compute & WithComputeArn(ComputeArnT &&value)
Definition Compute.h:114
Compute & WithDnsName(DnsNameT &&value)
Definition Compute.h:152
void SetLocation(LocationT &&value)
Definition Compute.h:187
bool IpAddressHasBeenSet() const
Definition Compute.h:126
void SetFleetId(FleetIdT &&value)
Definition Compute.h:52
const Aws::String & GetGameLiftServiceSdkEndpoint() const
Definition Compute.h:264
bool ComputeArnHasBeenSet() const
Definition Compute.h:107
const Aws::String & GetInstanceId() const
Definition Compute.h:301
void SetType(EC2InstanceType value)
Definition Compute.h:248
bool FleetArnHasBeenSet() const
Definition Compute.h:68
void SetDnsName(DnsNameT &&value)
Definition Compute.h:147
void SetGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT &&value)
Definition Compute.h:267
void SetComputeName(ComputeNameT &&value)
Definition Compute.h:89
Compute & WithComputeStatus(ComputeStatus value)
Definition Compute.h:173
bool GameLiftAgentEndpointHasBeenSet() const
Definition Compute.h:283
Compute & WithComputeName(ComputeNameT &&value)
Definition Compute.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue