AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
Instance.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/EC2InstanceType.h>
11#include <aws/gamelift/model/InstanceStatus.h>
12#include <aws/gamelift/model/OperatingSystem.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift {
24namespace Model {
25
33class Instance {
34 public:
35 AWS_GAMELIFT_API Instance() = default;
36 AWS_GAMELIFT_API Instance(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GAMELIFT_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFleetId() const { return m_fleetId; }
45 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
46 template <typename FleetIdT = Aws::String>
47 void SetFleetId(FleetIdT&& value) {
48 m_fleetIdHasBeenSet = true;
49 m_fleetId = std::forward<FleetIdT>(value);
50 }
51 template <typename FleetIdT = Aws::String>
52 Instance& WithFleetId(FleetIdT&& value) {
53 SetFleetId(std::forward<FleetIdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetFleetArn() const { return m_fleetArn; }
67 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
68 template <typename FleetArnT = Aws::String>
69 void SetFleetArn(FleetArnT&& value) {
70 m_fleetArnHasBeenSet = true;
71 m_fleetArn = std::forward<FleetArnT>(value);
72 }
73 template <typename FleetArnT = Aws::String>
74 Instance& WithFleetArn(FleetArnT&& value) {
75 SetFleetArn(std::forward<FleetArnT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
85 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
86 template <typename InstanceIdT = Aws::String>
87 void SetInstanceId(InstanceIdT&& value) {
88 m_instanceIdHasBeenSet = true;
89 m_instanceId = std::forward<InstanceIdT>(value);
90 }
91 template <typename InstanceIdT = Aws::String>
92 Instance& WithInstanceId(InstanceIdT&& value) {
93 SetInstanceId(std::forward<InstanceIdT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
103 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
104 template <typename IpAddressT = Aws::String>
105 void SetIpAddress(IpAddressT&& value) {
106 m_ipAddressHasBeenSet = true;
107 m_ipAddress = std::forward<IpAddressT>(value);
108 }
109 template <typename IpAddressT = Aws::String>
110 Instance& WithIpAddress(IpAddressT&& value) {
111 SetIpAddress(std::forward<IpAddressT>(value));
112 return *this;
113 }
115
117
129 inline const Aws::String& GetDnsName() const { return m_dnsName; }
130 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
131 template <typename DnsNameT = Aws::String>
132 void SetDnsName(DnsNameT&& value) {
133 m_dnsNameHasBeenSet = true;
134 m_dnsName = std::forward<DnsNameT>(value);
135 }
136 template <typename DnsNameT = Aws::String>
137 Instance& WithDnsName(DnsNameT&& value) {
138 SetDnsName(std::forward<DnsNameT>(value));
139 return *this;
140 }
142
144
154 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
155 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
157 m_operatingSystemHasBeenSet = true;
158 m_operatingSystem = value;
159 }
161 SetOperatingSystem(value);
162 return *this;
163 }
165
167
170 inline EC2InstanceType GetType() const { return m_type; }
171 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
172 inline void SetType(EC2InstanceType value) {
173 m_typeHasBeenSet = true;
174 m_type = value;
175 }
177 SetType(value);
178 return *this;
179 }
181
183
195 inline InstanceStatus GetStatus() const { return m_status; }
196 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
197 inline void SetStatus(InstanceStatus value) {
198 m_statusHasBeenSet = true;
199 m_status = value;
200 }
202 SetStatus(value);
203 return *this;
204 }
206
208
213 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
214 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
215 template <typename CreationTimeT = Aws::Utils::DateTime>
216 void SetCreationTime(CreationTimeT&& value) {
217 m_creationTimeHasBeenSet = true;
218 m_creationTime = std::forward<CreationTimeT>(value);
219 }
220 template <typename CreationTimeT = Aws::Utils::DateTime>
221 Instance& WithCreationTime(CreationTimeT&& value) {
222 SetCreationTime(std::forward<CreationTimeT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::String& GetLocation() const { return m_location; }
233 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
234 template <typename LocationT = Aws::String>
235 void SetLocation(LocationT&& value) {
236 m_locationHasBeenSet = true;
237 m_location = std::forward<LocationT>(value);
238 }
239 template <typename LocationT = Aws::String>
240 Instance& WithLocation(LocationT&& value) {
241 SetLocation(std::forward<LocationT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_fleetId;
247
248 Aws::String m_fleetArn;
249
250 Aws::String m_instanceId;
251
252 Aws::String m_ipAddress;
253
254 Aws::String m_dnsName;
255
256 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
257
259
261
262 Aws::Utils::DateTime m_creationTime{};
263
264 Aws::String m_location;
265 bool m_fleetIdHasBeenSet = false;
266 bool m_fleetArnHasBeenSet = false;
267 bool m_instanceIdHasBeenSet = false;
268 bool m_ipAddressHasBeenSet = false;
269 bool m_dnsNameHasBeenSet = false;
270 bool m_operatingSystemHasBeenSet = false;
271 bool m_typeHasBeenSet = false;
272 bool m_statusHasBeenSet = false;
273 bool m_creationTimeHasBeenSet = false;
274 bool m_locationHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace GameLift
279} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Instance.h:213
const Aws::String & GetFleetId() const
Definition Instance.h:44
void SetFleetArn(FleetArnT &&value)
Definition Instance.h:69
void SetType(EC2InstanceType value)
Definition Instance.h:172
AWS_GAMELIFT_API Instance()=default
const Aws::String & GetInstanceId() const
Definition Instance.h:84
Instance & WithDnsName(DnsNameT &&value)
Definition Instance.h:137
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(InstanceStatus value)
Definition Instance.h:197
bool InstanceIdHasBeenSet() const
Definition Instance.h:85
bool OperatingSystemHasBeenSet() const
Definition Instance.h:155
void SetOperatingSystem(OperatingSystem value)
Definition Instance.h:156
Instance & WithOperatingSystem(OperatingSystem value)
Definition Instance.h:160
OperatingSystem GetOperatingSystem() const
Definition Instance.h:154
Instance & WithInstanceId(InstanceIdT &&value)
Definition Instance.h:92
Instance & WithType(EC2InstanceType value)
Definition Instance.h:176
void SetCreationTime(CreationTimeT &&value)
Definition Instance.h:216
Instance & WithStatus(InstanceStatus value)
Definition Instance.h:201
InstanceStatus GetStatus() const
Definition Instance.h:195
void SetIpAddress(IpAddressT &&value)
Definition Instance.h:105
bool FleetArnHasBeenSet() const
Definition Instance.h:67
EC2InstanceType GetType() const
Definition Instance.h:170
const Aws::String & GetIpAddress() const
Definition Instance.h:102
AWS_GAMELIFT_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Instance.h:214
const Aws::String & GetLocation() const
Definition Instance.h:232
void SetFleetId(FleetIdT &&value)
Definition Instance.h:47
AWS_GAMELIFT_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithCreationTime(CreationTimeT &&value)
Definition Instance.h:221
void SetLocation(LocationT &&value)
Definition Instance.h:235
const Aws::String & GetFleetArn() const
Definition Instance.h:66
void SetDnsName(DnsNameT &&value)
Definition Instance.h:132
Instance & WithIpAddress(IpAddressT &&value)
Definition Instance.h:110
Instance & WithFleetArn(FleetArnT &&value)
Definition Instance.h:74
Instance & WithLocation(LocationT &&value)
Definition Instance.h:240
void SetInstanceId(InstanceIdT &&value)
Definition Instance.h:87
Instance & WithFleetId(FleetIdT &&value)
Definition Instance.h:52
const Aws::String & GetDnsName() const
Definition Instance.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue