AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Compute.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/ComputeStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/gamelift/model/OperatingSystem.h>
12#include <aws/gamelift/model/EC2InstanceType.h>
13#include <aws/gamelift/model/ContainerAttributes.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GameLift
27{
28namespace Model
29{
30
44 class Compute
45 {
46 public:
47 AWS_GAMELIFT_API Compute();
48 AWS_GAMELIFT_API Compute(Aws::Utils::Json::JsonView jsonValue);
49 AWS_GAMELIFT_API Compute& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
58 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
59 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
60 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
61 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
62 inline Compute& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
63 inline Compute& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
64 inline Compute& WithFleetId(const char* value) { SetFleetId(value); return *this;}
66
68
71 inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
72 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
73 inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
74 inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
75 inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
76 inline Compute& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
77 inline Compute& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
78 inline Compute& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
80
82
86 inline const Aws::String& GetComputeName() const{ return m_computeName; }
87 inline bool ComputeNameHasBeenSet() const { return m_computeNameHasBeenSet; }
88 inline void SetComputeName(const Aws::String& value) { m_computeNameHasBeenSet = true; m_computeName = value; }
89 inline void SetComputeName(Aws::String&& value) { m_computeNameHasBeenSet = true; m_computeName = std::move(value); }
90 inline void SetComputeName(const char* value) { m_computeNameHasBeenSet = true; m_computeName.assign(value); }
91 inline Compute& WithComputeName(const Aws::String& value) { SetComputeName(value); return *this;}
92 inline Compute& WithComputeName(Aws::String&& value) { SetComputeName(std::move(value)); return *this;}
93 inline Compute& WithComputeName(const char* value) { SetComputeName(value); return *this;}
95
97
102 inline const Aws::String& GetComputeArn() const{ return m_computeArn; }
103 inline bool ComputeArnHasBeenSet() const { return m_computeArnHasBeenSet; }
104 inline void SetComputeArn(const Aws::String& value) { m_computeArnHasBeenSet = true; m_computeArn = value; }
105 inline void SetComputeArn(Aws::String&& value) { m_computeArnHasBeenSet = true; m_computeArn = std::move(value); }
106 inline void SetComputeArn(const char* value) { m_computeArnHasBeenSet = true; m_computeArn.assign(value); }
107 inline Compute& WithComputeArn(const Aws::String& value) { SetComputeArn(value); return *this;}
108 inline Compute& WithComputeArn(Aws::String&& value) { SetComputeArn(std::move(value)); return *this;}
109 inline Compute& WithComputeArn(const char* value) { SetComputeArn(value); return *this;}
111
113
117 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
118 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
119 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
120 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
121 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
122 inline Compute& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
123 inline Compute& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
124 inline Compute& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
126
128
132 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
133 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
134 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
135 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
136 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
137 inline Compute& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
138 inline Compute& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
139 inline Compute& WithDnsName(const char* value) { SetDnsName(value); return *this;}
141
143
147 inline const ComputeStatus& GetComputeStatus() const{ return m_computeStatus; }
148 inline bool ComputeStatusHasBeenSet() const { return m_computeStatusHasBeenSet; }
149 inline void SetComputeStatus(const ComputeStatus& value) { m_computeStatusHasBeenSet = true; m_computeStatus = value; }
150 inline void SetComputeStatus(ComputeStatus&& value) { m_computeStatusHasBeenSet = true; m_computeStatus = std::move(value); }
151 inline Compute& WithComputeStatus(const ComputeStatus& value) { SetComputeStatus(value); return *this;}
152 inline Compute& WithComputeStatus(ComputeStatus&& value) { SetComputeStatus(std::move(value)); return *this;}
154
156
160 inline const Aws::String& GetLocation() const{ return m_location; }
161 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
162 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
163 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
164 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
165 inline Compute& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
166 inline Compute& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
167 inline Compute& WithLocation(const char* value) { SetLocation(value); return *this;}
169
171
176 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
177 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
178 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
179 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
180 inline Compute& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
181 inline Compute& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
183
185
195 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
196 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
197 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
198 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
199 inline Compute& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
200 inline Compute& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
202
204
208 inline const EC2InstanceType& GetType() const{ return m_type; }
209 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
210 inline void SetType(const EC2InstanceType& value) { m_typeHasBeenSet = true; m_type = value; }
211 inline void SetType(EC2InstanceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
212 inline Compute& WithType(const EC2InstanceType& value) { SetType(value); return *this;}
213 inline Compute& WithType(EC2InstanceType&& value) { SetType(std::move(value)); return *this;}
215
217
222 inline const Aws::String& GetGameLiftServiceSdkEndpoint() const{ return m_gameLiftServiceSdkEndpoint; }
223 inline bool GameLiftServiceSdkEndpointHasBeenSet() const { return m_gameLiftServiceSdkEndpointHasBeenSet; }
224 inline void SetGameLiftServiceSdkEndpoint(const Aws::String& value) { m_gameLiftServiceSdkEndpointHasBeenSet = true; m_gameLiftServiceSdkEndpoint = value; }
225 inline void SetGameLiftServiceSdkEndpoint(Aws::String&& value) { m_gameLiftServiceSdkEndpointHasBeenSet = true; m_gameLiftServiceSdkEndpoint = std::move(value); }
226 inline void SetGameLiftServiceSdkEndpoint(const char* value) { m_gameLiftServiceSdkEndpointHasBeenSet = true; m_gameLiftServiceSdkEndpoint.assign(value); }
228 inline Compute& WithGameLiftServiceSdkEndpoint(Aws::String&& value) { SetGameLiftServiceSdkEndpoint(std::move(value)); return *this;}
229 inline Compute& WithGameLiftServiceSdkEndpoint(const char* value) { SetGameLiftServiceSdkEndpoint(value); return *this;}
231
233
236 inline const Aws::String& GetGameLiftAgentEndpoint() const{ return m_gameLiftAgentEndpoint; }
237 inline bool GameLiftAgentEndpointHasBeenSet() const { return m_gameLiftAgentEndpointHasBeenSet; }
238 inline void SetGameLiftAgentEndpoint(const Aws::String& value) { m_gameLiftAgentEndpointHasBeenSet = true; m_gameLiftAgentEndpoint = value; }
239 inline void SetGameLiftAgentEndpoint(Aws::String&& value) { m_gameLiftAgentEndpointHasBeenSet = true; m_gameLiftAgentEndpoint = std::move(value); }
240 inline void SetGameLiftAgentEndpoint(const char* value) { m_gameLiftAgentEndpointHasBeenSet = true; m_gameLiftAgentEndpoint.assign(value); }
241 inline Compute& WithGameLiftAgentEndpoint(const Aws::String& value) { SetGameLiftAgentEndpoint(value); return *this;}
242 inline Compute& WithGameLiftAgentEndpoint(Aws::String&& value) { SetGameLiftAgentEndpoint(std::move(value)); return *this;}
243 inline Compute& WithGameLiftAgentEndpoint(const char* value) { SetGameLiftAgentEndpoint(value); return *this;}
245
247
251 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
252 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
253 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
254 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
255 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
256 inline Compute& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
257 inline Compute& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
258 inline Compute& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
260
262
265 inline const ContainerAttributes& GetContainerAttributes() const{ return m_containerAttributes; }
266 inline bool ContainerAttributesHasBeenSet() const { return m_containerAttributesHasBeenSet; }
267 inline void SetContainerAttributes(const ContainerAttributes& value) { m_containerAttributesHasBeenSet = true; m_containerAttributes = value; }
268 inline void SetContainerAttributes(ContainerAttributes&& value) { m_containerAttributesHasBeenSet = true; m_containerAttributes = std::move(value); }
269 inline Compute& WithContainerAttributes(const ContainerAttributes& value) { SetContainerAttributes(value); return *this;}
270 inline Compute& WithContainerAttributes(ContainerAttributes&& value) { SetContainerAttributes(std::move(value)); return *this;}
272 private:
273
274 Aws::String m_fleetId;
275 bool m_fleetIdHasBeenSet = false;
276
277 Aws::String m_fleetArn;
278 bool m_fleetArnHasBeenSet = false;
279
280 Aws::String m_computeName;
281 bool m_computeNameHasBeenSet = false;
282
283 Aws::String m_computeArn;
284 bool m_computeArnHasBeenSet = false;
285
286 Aws::String m_ipAddress;
287 bool m_ipAddressHasBeenSet = false;
288
289 Aws::String m_dnsName;
290 bool m_dnsNameHasBeenSet = false;
291
292 ComputeStatus m_computeStatus;
293 bool m_computeStatusHasBeenSet = false;
294
295 Aws::String m_location;
296 bool m_locationHasBeenSet = false;
297
298 Aws::Utils::DateTime m_creationTime;
299 bool m_creationTimeHasBeenSet = false;
300
301 OperatingSystem m_operatingSystem;
302 bool m_operatingSystemHasBeenSet = false;
303
304 EC2InstanceType m_type;
305 bool m_typeHasBeenSet = false;
306
307 Aws::String m_gameLiftServiceSdkEndpoint;
308 bool m_gameLiftServiceSdkEndpointHasBeenSet = false;
309
310 Aws::String m_gameLiftAgentEndpoint;
311 bool m_gameLiftAgentEndpointHasBeenSet = false;
312
313 Aws::String m_instanceId;
314 bool m_instanceIdHasBeenSet = false;
315
316 ContainerAttributes m_containerAttributes;
317 bool m_containerAttributesHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace GameLift
322} // namespace Aws
Compute & WithContainerAttributes(ContainerAttributes &&value)
Definition Compute.h:270
void SetFleetId(const Aws::String &value)
Definition Compute.h:59
Compute & WithContainerAttributes(const ContainerAttributes &value)
Definition Compute.h:269
const ComputeStatus & GetComputeStatus() const
Definition Compute.h:147
const Aws::String & GetDnsName() const
Definition Compute.h:132
Compute & WithInstanceId(const Aws::String &value)
Definition Compute.h:256
void SetIpAddress(const Aws::String &value)
Definition Compute.h:119
void SetComputeStatus(const ComputeStatus &value)
Definition Compute.h:149
void SetInstanceId(const char *value)
Definition Compute.h:255
Compute & WithIpAddress(const char *value)
Definition Compute.h:124
AWS_GAMELIFT_API Compute & operator=(Aws::Utils::Json::JsonView jsonValue)
Compute & WithGameLiftServiceSdkEndpoint(const char *value)
Definition Compute.h:229
Compute & WithDnsName(const char *value)
Definition Compute.h:139
Compute & WithDnsName(const Aws::String &value)
Definition Compute.h:137
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Compute.h:178
bool DnsNameHasBeenSet() const
Definition Compute.h:133
void SetFleetArn(Aws::String &&value)
Definition Compute.h:74
void SetContainerAttributes(ContainerAttributes &&value)
Definition Compute.h:268
void SetInstanceId(Aws::String &&value)
Definition Compute.h:254
void SetDnsName(const Aws::String &value)
Definition Compute.h:134
void SetFleetId(Aws::String &&value)
Definition Compute.h:60
Compute & WithFleetArn(Aws::String &&value)
Definition Compute.h:77
const Aws::String & GetLocation() const
Definition Compute.h:160
void SetLocation(Aws::String &&value)
Definition Compute.h:163
Compute & WithFleetArn(const Aws::String &value)
Definition Compute.h:76
void SetGameLiftServiceSdkEndpoint(const Aws::String &value)
Definition Compute.h:224
void SetComputeName(Aws::String &&value)
Definition Compute.h:89
const Aws::Utils::DateTime & GetCreationTime() const
Definition Compute.h:176
Compute & WithComputeStatus(const ComputeStatus &value)
Definition Compute.h:151
Compute & WithGameLiftAgentEndpoint(const char *value)
Definition Compute.h:243
bool CreationTimeHasBeenSet() const
Definition Compute.h:177
void SetType(const EC2InstanceType &value)
Definition Compute.h:210
const Aws::String & GetFleetArn() const
Definition Compute.h:71
void SetOperatingSystem(OperatingSystem &&value)
Definition Compute.h:198
void SetLocation(const Aws::String &value)
Definition Compute.h:162
Compute & WithDnsName(Aws::String &&value)
Definition Compute.h:138
const Aws::String & GetComputeName() const
Definition Compute.h:86
void SetDnsName(Aws::String &&value)
Definition Compute.h:135
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
Compute & WithGameLiftAgentEndpoint(Aws::String &&value)
Definition Compute.h:242
Compute & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Compute.h:181
void SetComputeStatus(ComputeStatus &&value)
Definition Compute.h:150
void SetComputeArn(Aws::String &&value)
Definition Compute.h:105
Compute & WithComputeName(const char *value)
Definition Compute.h:93
void SetComputeArn(const Aws::String &value)
Definition Compute.h:104
Compute & WithComputeArn(const char *value)
Definition Compute.h:109
const Aws::String & GetGameLiftAgentEndpoint() const
Definition Compute.h:236
void SetComputeArn(const char *value)
Definition Compute.h:106
AWS_GAMELIFT_API Compute(Aws::Utils::Json::JsonView jsonValue)
void SetContainerAttributes(const ContainerAttributes &value)
Definition Compute.h:267
void SetFleetArn(const Aws::String &value)
Definition Compute.h:73
bool InstanceIdHasBeenSet() const
Definition Compute.h:252
Compute & WithLocation(const Aws::String &value)
Definition Compute.h:165
void SetFleetArn(const char *value)
Definition Compute.h:75
Compute & WithInstanceId(const char *value)
Definition Compute.h:258
void SetGameLiftAgentEndpoint(const char *value)
Definition Compute.h:240
Compute & WithInstanceId(Aws::String &&value)
Definition Compute.h:257
bool ComputeStatusHasBeenSet() const
Definition Compute.h:148
const OperatingSystem & GetOperatingSystem() const
Definition Compute.h:195
Compute & WithOperatingSystem(const OperatingSystem &value)
Definition Compute.h:199
void SetLocation(const char *value)
Definition Compute.h:164
void SetIpAddress(Aws::String &&value)
Definition Compute.h:120
bool ContainerAttributesHasBeenSet() const
Definition Compute.h:266
const Aws::String & GetIpAddress() const
Definition Compute.h:117
void SetGameLiftAgentEndpoint(Aws::String &&value)
Definition Compute.h:239
Compute & WithType(EC2InstanceType &&value)
Definition Compute.h:213
const ContainerAttributes & GetContainerAttributes() const
Definition Compute.h:265
const EC2InstanceType & GetType() const
Definition Compute.h:208
Compute & WithGameLiftServiceSdkEndpoint(Aws::String &&value)
Definition Compute.h:228
void SetComputeName(const char *value)
Definition Compute.h:90
const Aws::String & GetComputeArn() const
Definition Compute.h:102
Compute & WithIpAddress(const Aws::String &value)
Definition Compute.h:122
bool GameLiftServiceSdkEndpointHasBeenSet() const
Definition Compute.h:223
Compute & WithComputeStatus(ComputeStatus &&value)
Definition Compute.h:152
bool OperatingSystemHasBeenSet() const
Definition Compute.h:196
void SetIpAddress(const char *value)
Definition Compute.h:121
Compute & WithGameLiftServiceSdkEndpoint(const Aws::String &value)
Definition Compute.h:227
void SetGameLiftServiceSdkEndpoint(Aws::String &&value)
Definition Compute.h:225
void SetGameLiftServiceSdkEndpoint(const char *value)
Definition Compute.h:226
Compute & WithGameLiftAgentEndpoint(const Aws::String &value)
Definition Compute.h:241
bool LocationHasBeenSet() const
Definition Compute.h:161
Compute & WithLocation(const char *value)
Definition Compute.h:167
void SetFleetId(const char *value)
Definition Compute.h:61
void SetInstanceId(const Aws::String &value)
Definition Compute.h:253
const Aws::String & GetFleetId() const
Definition Compute.h:57
Compute & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Compute.h:180
Compute & WithOperatingSystem(OperatingSystem &&value)
Definition Compute.h:200
Compute & WithComputeName(Aws::String &&value)
Definition Compute.h:92
Compute & WithFleetId(const Aws::String &value)
Definition Compute.h:62
bool FleetIdHasBeenSet() const
Definition Compute.h:58
Compute & WithFleetId(Aws::String &&value)
Definition Compute.h:63
void SetGameLiftAgentEndpoint(const Aws::String &value)
Definition Compute.h:238
Compute & WithComputeName(const Aws::String &value)
Definition Compute.h:91
Compute & WithComputeArn(const Aws::String &value)
Definition Compute.h:107
Compute & WithType(const EC2InstanceType &value)
Definition Compute.h:212
bool ComputeNameHasBeenSet() const
Definition Compute.h:87
Compute & WithFleetId(const char *value)
Definition Compute.h:64
AWS_GAMELIFT_API Compute()
Compute & WithIpAddress(Aws::String &&value)
Definition Compute.h:123
Compute & WithComputeArn(Aws::String &&value)
Definition Compute.h:108
void SetComputeName(const Aws::String &value)
Definition Compute.h:88
bool IpAddressHasBeenSet() const
Definition Compute.h:118
const Aws::String & GetGameLiftServiceSdkEndpoint() const
Definition Compute.h:222
bool ComputeArnHasBeenSet() const
Definition Compute.h:103
const Aws::String & GetInstanceId() const
Definition Compute.h:251
void SetDnsName(const char *value)
Definition Compute.h:136
bool FleetArnHasBeenSet() const
Definition Compute.h:72
void SetOperatingSystem(const OperatingSystem &value)
Definition Compute.h:197
Compute & WithLocation(Aws::String &&value)
Definition Compute.h:166
Compute & WithFleetArn(const char *value)
Definition Compute.h:78
bool GameLiftAgentEndpointHasBeenSet() const
Definition Compute.h:237
void SetType(EC2InstanceType &&value)
Definition Compute.h:211
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Compute.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue