AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/core/utils/memory/stl/AWSVector.h>
14#include <aws/gamelift/model/ContainerAttribute.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GameLift
28{
29namespace Model
30{
31
42 class Compute
43 {
44 public:
45 AWS_GAMELIFT_API Compute() = default;
46 AWS_GAMELIFT_API Compute(Aws::Utils::Json::JsonView jsonValue);
47 AWS_GAMELIFT_API Compute& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetFleetId() const { return m_fleetId; }
56 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
57 template<typename FleetIdT = Aws::String>
58 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
59 template<typename FleetIdT = Aws::String>
60 Compute& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
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) { m_fleetArnHasBeenSet = true; m_fleetArn = std::forward<FleetArnT>(value); }
71 template<typename FleetArnT = Aws::String>
72 Compute& WithFleetArn(FleetArnT&& value) { SetFleetArn(std::forward<FleetArnT>(value)); return *this;}
74
76
80 inline const Aws::String& GetComputeName() const { return m_computeName; }
81 inline bool ComputeNameHasBeenSet() const { return m_computeNameHasBeenSet; }
82 template<typename ComputeNameT = Aws::String>
83 void SetComputeName(ComputeNameT&& value) { m_computeNameHasBeenSet = true; m_computeName = std::forward<ComputeNameT>(value); }
84 template<typename ComputeNameT = Aws::String>
85 Compute& WithComputeName(ComputeNameT&& value) { SetComputeName(std::forward<ComputeNameT>(value)); return *this;}
87
89
94 inline const Aws::String& GetComputeArn() const { return m_computeArn; }
95 inline bool ComputeArnHasBeenSet() const { return m_computeArnHasBeenSet; }
96 template<typename ComputeArnT = Aws::String>
97 void SetComputeArn(ComputeArnT&& value) { m_computeArnHasBeenSet = true; m_computeArn = std::forward<ComputeArnT>(value); }
98 template<typename ComputeArnT = Aws::String>
99 Compute& WithComputeArn(ComputeArnT&& value) { SetComputeArn(std::forward<ComputeArnT>(value)); return *this;}
101
103
107 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
108 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
109 template<typename IpAddressT = Aws::String>
110 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
111 template<typename IpAddressT = Aws::String>
112 Compute& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
114
116
120 inline const Aws::String& GetDnsName() const { return m_dnsName; }
121 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
122 template<typename DnsNameT = Aws::String>
123 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
124 template<typename DnsNameT = Aws::String>
125 Compute& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
127
129
133 inline ComputeStatus GetComputeStatus() const { return m_computeStatus; }
134 inline bool ComputeStatusHasBeenSet() const { return m_computeStatusHasBeenSet; }
135 inline void SetComputeStatus(ComputeStatus value) { m_computeStatusHasBeenSet = true; m_computeStatus = value; }
136 inline Compute& WithComputeStatus(ComputeStatus value) { SetComputeStatus(value); return *this;}
138
140
144 inline const Aws::String& GetLocation() const { return m_location; }
145 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
146 template<typename LocationT = Aws::String>
147 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
148 template<typename LocationT = Aws::String>
149 Compute& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
151
153
158 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
159 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
160 template<typename CreationTimeT = Aws::Utils::DateTime>
161 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
162 template<typename CreationTimeT = Aws::Utils::DateTime>
163 Compute& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
165
167
177 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
178 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
179 inline void SetOperatingSystem(OperatingSystem value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
180 inline Compute& WithOperatingSystem(OperatingSystem value) { SetOperatingSystem(value); return *this;}
182
184
188 inline EC2InstanceType GetType() const { return m_type; }
189 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
190 inline void SetType(EC2InstanceType value) { m_typeHasBeenSet = true; m_type = value; }
191 inline Compute& WithType(EC2InstanceType value) { SetType(value); return *this;}
193
195
200 inline const Aws::String& GetGameLiftServiceSdkEndpoint() const { return m_gameLiftServiceSdkEndpoint; }
201 inline bool GameLiftServiceSdkEndpointHasBeenSet() const { return m_gameLiftServiceSdkEndpointHasBeenSet; }
202 template<typename GameLiftServiceSdkEndpointT = Aws::String>
203 void SetGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT&& value) { m_gameLiftServiceSdkEndpointHasBeenSet = true; m_gameLiftServiceSdkEndpoint = std::forward<GameLiftServiceSdkEndpointT>(value); }
204 template<typename GameLiftServiceSdkEndpointT = Aws::String>
205 Compute& WithGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT&& value) { SetGameLiftServiceSdkEndpoint(std::forward<GameLiftServiceSdkEndpointT>(value)); return *this;}
207
209
212 inline const Aws::String& GetGameLiftAgentEndpoint() const { return m_gameLiftAgentEndpoint; }
213 inline bool GameLiftAgentEndpointHasBeenSet() const { return m_gameLiftAgentEndpointHasBeenSet; }
214 template<typename GameLiftAgentEndpointT = Aws::String>
215 void SetGameLiftAgentEndpoint(GameLiftAgentEndpointT&& value) { m_gameLiftAgentEndpointHasBeenSet = true; m_gameLiftAgentEndpoint = std::forward<GameLiftAgentEndpointT>(value); }
216 template<typename GameLiftAgentEndpointT = Aws::String>
217 Compute& WithGameLiftAgentEndpoint(GameLiftAgentEndpointT&& value) { SetGameLiftAgentEndpoint(std::forward<GameLiftAgentEndpointT>(value)); return *this;}
219
221
225 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
226 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
227 template<typename InstanceIdT = Aws::String>
228 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
229 template<typename InstanceIdT = Aws::String>
230 Compute& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
232
234
237 inline const Aws::Vector<ContainerAttribute>& GetContainerAttributes() const { return m_containerAttributes; }
238 inline bool ContainerAttributesHasBeenSet() const { return m_containerAttributesHasBeenSet; }
239 template<typename ContainerAttributesT = Aws::Vector<ContainerAttribute>>
240 void SetContainerAttributes(ContainerAttributesT&& value) { m_containerAttributesHasBeenSet = true; m_containerAttributes = std::forward<ContainerAttributesT>(value); }
241 template<typename ContainerAttributesT = Aws::Vector<ContainerAttribute>>
242 Compute& WithContainerAttributes(ContainerAttributesT&& value) { SetContainerAttributes(std::forward<ContainerAttributesT>(value)); return *this;}
243 template<typename ContainerAttributesT = ContainerAttribute>
244 Compute& AddContainerAttributes(ContainerAttributesT&& value) { m_containerAttributesHasBeenSet = true; m_containerAttributes.emplace_back(std::forward<ContainerAttributesT>(value)); return *this; }
246
248
251 inline const Aws::String& GetGameServerContainerGroupDefinitionArn() const { return m_gameServerContainerGroupDefinitionArn; }
252 inline bool GameServerContainerGroupDefinitionArnHasBeenSet() const { return m_gameServerContainerGroupDefinitionArnHasBeenSet; }
253 template<typename GameServerContainerGroupDefinitionArnT = Aws::String>
254 void SetGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT&& value) { m_gameServerContainerGroupDefinitionArnHasBeenSet = true; m_gameServerContainerGroupDefinitionArn = std::forward<GameServerContainerGroupDefinitionArnT>(value); }
255 template<typename GameServerContainerGroupDefinitionArnT = Aws::String>
256 Compute& WithGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT&& value) { SetGameServerContainerGroupDefinitionArn(std::forward<GameServerContainerGroupDefinitionArnT>(value)); return *this;}
258 private:
259
260 Aws::String m_fleetId;
261 bool m_fleetIdHasBeenSet = false;
262
263 Aws::String m_fleetArn;
264 bool m_fleetArnHasBeenSet = false;
265
266 Aws::String m_computeName;
267 bool m_computeNameHasBeenSet = false;
268
269 Aws::String m_computeArn;
270 bool m_computeArnHasBeenSet = false;
271
272 Aws::String m_ipAddress;
273 bool m_ipAddressHasBeenSet = false;
274
275 Aws::String m_dnsName;
276 bool m_dnsNameHasBeenSet = false;
277
278 ComputeStatus m_computeStatus{ComputeStatus::NOT_SET};
279 bool m_computeStatusHasBeenSet = false;
280
281 Aws::String m_location;
282 bool m_locationHasBeenSet = false;
283
284 Aws::Utils::DateTime m_creationTime{};
285 bool m_creationTimeHasBeenSet = false;
286
287 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
288 bool m_operatingSystemHasBeenSet = false;
289
291 bool m_typeHasBeenSet = false;
292
293 Aws::String m_gameLiftServiceSdkEndpoint;
294 bool m_gameLiftServiceSdkEndpointHasBeenSet = false;
295
296 Aws::String m_gameLiftAgentEndpoint;
297 bool m_gameLiftAgentEndpointHasBeenSet = false;
298
299 Aws::String m_instanceId;
300 bool m_instanceIdHasBeenSet = false;
301
302 Aws::Vector<ContainerAttribute> m_containerAttributes;
303 bool m_containerAttributesHasBeenSet = false;
304
305 Aws::String m_gameServerContainerGroupDefinitionArn;
306 bool m_gameServerContainerGroupDefinitionArnHasBeenSet = false;
307 };
308
309} // namespace Model
310} // namespace GameLift
311} // namespace Aws
Compute & WithGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT &&value)
Definition Compute.h:205
Compute & WithType(EC2InstanceType value)
Definition Compute.h:191
const Aws::String & GetDnsName() const
Definition Compute.h:120
AWS_GAMELIFT_API Compute & operator=(Aws::Utils::Json::JsonView jsonValue)
Compute & WithInstanceId(InstanceIdT &&value)
Definition Compute.h:230
Compute & AddContainerAttributes(ContainerAttributesT &&value)
Definition Compute.h:244
bool DnsNameHasBeenSet() const
Definition Compute.h:121
const Aws::String & GetLocation() const
Definition Compute.h:144
OperatingSystem GetOperatingSystem() const
Definition Compute.h:177
void SetGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT &&value)
Definition Compute.h:254
ComputeStatus GetComputeStatus() const
Definition Compute.h:133
AWS_GAMELIFT_API Compute()=default
const Aws::Utils::DateTime & GetCreationTime() const
Definition Compute.h:158
bool CreationTimeHasBeenSet() const
Definition Compute.h:159
const Aws::Vector< ContainerAttribute > & GetContainerAttributes() const
Definition Compute.h:237
EC2InstanceType GetType() const
Definition Compute.h:188
const Aws::String & GetFleetArn() const
Definition Compute.h:67
const Aws::String & GetComputeName() const
Definition Compute.h:80
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationTime(CreationTimeT &&value)
Definition Compute.h:161
void SetOperatingSystem(OperatingSystem value)
Definition Compute.h:179
Compute & WithFleetId(FleetIdT &&value)
Definition Compute.h:60
const Aws::String & GetGameLiftAgentEndpoint() const
Definition Compute.h:212
AWS_GAMELIFT_API Compute(Aws::Utils::Json::JsonView jsonValue)
void SetFleetArn(FleetArnT &&value)
Definition Compute.h:70
void SetComputeStatus(ComputeStatus value)
Definition Compute.h:135
bool InstanceIdHasBeenSet() const
Definition Compute.h:226
bool ComputeStatusHasBeenSet() const
Definition Compute.h:134
bool GameServerContainerGroupDefinitionArnHasBeenSet() const
Definition Compute.h:252
void SetInstanceId(InstanceIdT &&value)
Definition Compute.h:228
bool ContainerAttributesHasBeenSet() const
Definition Compute.h:238
void SetIpAddress(IpAddressT &&value)
Definition Compute.h:110
Compute & WithFleetArn(FleetArnT &&value)
Definition Compute.h:72
const Aws::String & GetIpAddress() const
Definition Compute.h:107
void SetComputeArn(ComputeArnT &&value)
Definition Compute.h:97
Compute & WithIpAddress(IpAddressT &&value)
Definition Compute.h:112
Compute & WithGameServerContainerGroupDefinitionArn(GameServerContainerGroupDefinitionArnT &&value)
Definition Compute.h:256
Compute & WithCreationTime(CreationTimeT &&value)
Definition Compute.h:163
Compute & WithContainerAttributes(ContainerAttributesT &&value)
Definition Compute.h:242
const Aws::String & GetComputeArn() const
Definition Compute.h:94
bool GameLiftServiceSdkEndpointHasBeenSet() const
Definition Compute.h:201
bool OperatingSystemHasBeenSet() const
Definition Compute.h:178
Compute & WithOperatingSystem(OperatingSystem value)
Definition Compute.h:180
void SetGameLiftAgentEndpoint(GameLiftAgentEndpointT &&value)
Definition Compute.h:215
bool LocationHasBeenSet() const
Definition Compute.h:145
const Aws::String & GetGameServerContainerGroupDefinitionArn() const
Definition Compute.h:251
Compute & WithGameLiftAgentEndpoint(GameLiftAgentEndpointT &&value)
Definition Compute.h:217
const Aws::String & GetFleetId() const
Definition Compute.h:55
bool FleetIdHasBeenSet() const
Definition Compute.h:56
void SetContainerAttributes(ContainerAttributesT &&value)
Definition Compute.h:240
bool ComputeNameHasBeenSet() const
Definition Compute.h:81
Compute & WithLocation(LocationT &&value)
Definition Compute.h:149
Compute & WithComputeArn(ComputeArnT &&value)
Definition Compute.h:99
Compute & WithDnsName(DnsNameT &&value)
Definition Compute.h:125
void SetLocation(LocationT &&value)
Definition Compute.h:147
bool IpAddressHasBeenSet() const
Definition Compute.h:108
void SetFleetId(FleetIdT &&value)
Definition Compute.h:58
const Aws::String & GetGameLiftServiceSdkEndpoint() const
Definition Compute.h:200
bool ComputeArnHasBeenSet() const
Definition Compute.h:95
const Aws::String & GetInstanceId() const
Definition Compute.h:225
void SetType(EC2InstanceType value)
Definition Compute.h:190
bool FleetArnHasBeenSet() const
Definition Compute.h:68
void SetDnsName(DnsNameT &&value)
Definition Compute.h:123
void SetGameLiftServiceSdkEndpoint(GameLiftServiceSdkEndpointT &&value)
Definition Compute.h:203
void SetComputeName(ComputeNameT &&value)
Definition Compute.h:83
Compute & WithComputeStatus(ComputeStatus value)
Definition Compute.h:136
bool GameLiftAgentEndpointHasBeenSet() const
Definition Compute.h:213
Compute & WithComputeName(ComputeNameT &&value)
Definition Compute.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue