AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Instance.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/OperatingSystem.h>
10#include <aws/gamelift/model/EC2InstanceType.h>
11#include <aws/gamelift/model/InstanceStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GameLift
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_GAMELIFT_API Instance();
41 AWS_GAMELIFT_API Instance(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
51 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
52 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
53 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
54 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
55 inline Instance& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
56 inline Instance& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
57 inline Instance& WithFleetId(const char* value) { SetFleetId(value); return *this;}
59
61
68 inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
69 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
70 inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
71 inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
72 inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
73 inline Instance& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
74 inline Instance& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
75 inline Instance& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
77
79
82 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
83 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
84 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
85 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
86 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
87 inline Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
88 inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
89 inline Instance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
91
93
96 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
97 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
98 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
99 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
100 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
101 inline Instance& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
102 inline Instance& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
103 inline Instance& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
105
107
119 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
120 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
121 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
122 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
123 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
124 inline Instance& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
125 inline Instance& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
126 inline Instance& WithDnsName(const char* value) { SetDnsName(value); return *this;}
128
130
140 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
141 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
142 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
143 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
144 inline Instance& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
145 inline Instance& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
147
149
152 inline const EC2InstanceType& GetType() const{ return m_type; }
153 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
154 inline void SetType(const EC2InstanceType& value) { m_typeHasBeenSet = true; m_type = value; }
155 inline void SetType(EC2InstanceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
156 inline Instance& WithType(const EC2InstanceType& value) { SetType(value); return *this;}
157 inline Instance& WithType(EC2InstanceType&& value) { SetType(std::move(value)); return *this;}
159
161
173 inline const InstanceStatus& GetStatus() const{ return m_status; }
174 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
175 inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
176 inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
177 inline Instance& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
178 inline Instance& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
180
182
187 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
188 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
189 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
190 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
191 inline Instance& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
192 inline Instance& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
194
196
200 inline const Aws::String& GetLocation() const{ return m_location; }
201 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
202 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
203 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
204 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
205 inline Instance& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
206 inline Instance& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
207 inline Instance& WithLocation(const char* value) { SetLocation(value); return *this;}
209 private:
210
211 Aws::String m_fleetId;
212 bool m_fleetIdHasBeenSet = false;
213
214 Aws::String m_fleetArn;
215 bool m_fleetArnHasBeenSet = false;
216
217 Aws::String m_instanceId;
218 bool m_instanceIdHasBeenSet = false;
219
220 Aws::String m_ipAddress;
221 bool m_ipAddressHasBeenSet = false;
222
223 Aws::String m_dnsName;
224 bool m_dnsNameHasBeenSet = false;
225
226 OperatingSystem m_operatingSystem;
227 bool m_operatingSystemHasBeenSet = false;
228
229 EC2InstanceType m_type;
230 bool m_typeHasBeenSet = false;
231
232 InstanceStatus m_status;
233 bool m_statusHasBeenSet = false;
234
235 Aws::Utils::DateTime m_creationTime;
236 bool m_creationTimeHasBeenSet = false;
237
238 Aws::String m_location;
239 bool m_locationHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace GameLift
244} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Instance.h:187
Instance & WithFleetArn(Aws::String &&value)
Definition Instance.h:74
Instance & WithOperatingSystem(const OperatingSystem &value)
Definition Instance.h:144
void SetFleetId(const Aws::String &value)
Definition Instance.h:52
Instance & WithFleetArn(const char *value)
Definition Instance.h:75
void SetIpAddress(const Aws::String &value)
Definition Instance.h:98
void SetDnsName(const Aws::String &value)
Definition Instance.h:121
const Aws::String & GetFleetId() const
Definition Instance.h:50
bool IpAddressHasBeenSet() const
Definition Instance.h:97
Instance & WithDnsName(const char *value)
Definition Instance.h:126
void SetStatus(InstanceStatus &&value)
Definition Instance.h:176
void SetInstanceId(const Aws::String &value)
Definition Instance.h:84
void SetLocation(Aws::String &&value)
Definition Instance.h:203
void SetOperatingSystem(OperatingSystem &&value)
Definition Instance.h:143
void SetIpAddress(const char *value)
Definition Instance.h:100
Instance & WithType(EC2InstanceType &&value)
Definition Instance.h:157
const Aws::String & GetInstanceId() const
Definition Instance.h:82
void SetFleetId(const char *value)
Definition Instance.h:54
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDnsName(Aws::String &&value)
Definition Instance.h:122
void SetFleetId(Aws::String &&value)
Definition Instance.h:53
Instance & WithFleetId(Aws::String &&value)
Definition Instance.h:56
Instance & WithIpAddress(const Aws::String &value)
Definition Instance.h:101
Instance & WithFleetId(const Aws::String &value)
Definition Instance.h:55
bool InstanceIdHasBeenSet() const
Definition Instance.h:83
Instance & WithDnsName(Aws::String &&value)
Definition Instance.h:125
Instance & WithDnsName(const Aws::String &value)
Definition Instance.h:124
bool OperatingSystemHasBeenSet() const
Definition Instance.h:141
Instance & WithFleetArn(const Aws::String &value)
Definition Instance.h:73
void SetIpAddress(Aws::String &&value)
Definition Instance.h:99
Instance & WithOperatingSystem(OperatingSystem &&value)
Definition Instance.h:145
void SetFleetArn(const char *value)
Definition Instance.h:72
void SetInstanceId(Aws::String &&value)
Definition Instance.h:85
Instance & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Instance.h:191
const EC2InstanceType & GetType() const
Definition Instance.h:152
AWS_GAMELIFT_API Instance()
Instance & WithIpAddress(const char *value)
Definition Instance.h:103
void SetType(const EC2InstanceType &value)
Definition Instance.h:154
void SetInstanceId(const char *value)
Definition Instance.h:86
Instance & WithLocation(const Aws::String &value)
Definition Instance.h:205
const OperatingSystem & GetOperatingSystem() const
Definition Instance.h:140
void SetFleetArn(Aws::String &&value)
Definition Instance.h:71
Instance & WithLocation(const char *value)
Definition Instance.h:207
bool FleetArnHasBeenSet() const
Definition Instance.h:69
const InstanceStatus & GetStatus() const
Definition Instance.h:173
const Aws::String & GetIpAddress() const
Definition Instance.h:96
Instance & WithInstanceId(const Aws::String &value)
Definition Instance.h:87
AWS_GAMELIFT_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Instance.h:188
const Aws::String & GetLocation() const
Definition Instance.h:200
void SetType(EC2InstanceType &&value)
Definition Instance.h:155
void SetStatus(const InstanceStatus &value)
Definition Instance.h:175
Instance & WithStatus(InstanceStatus &&value)
Definition Instance.h:178
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Instance.h:189
Instance & WithStatus(const InstanceStatus &value)
Definition Instance.h:177
AWS_GAMELIFT_API Instance(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFleetArn() const
Definition Instance.h:68
Instance & WithIpAddress(Aws::String &&value)
Definition Instance.h:102
void SetLocation(const char *value)
Definition Instance.h:204
Instance & WithFleetId(const char *value)
Definition Instance.h:57
void SetOperatingSystem(const OperatingSystem &value)
Definition Instance.h:142
Instance & WithInstanceId(Aws::String &&value)
Definition Instance.h:88
void SetDnsName(const char *value)
Definition Instance.h:123
Instance & WithType(const EC2InstanceType &value)
Definition Instance.h:156
void SetLocation(const Aws::String &value)
Definition Instance.h:202
Instance & WithInstanceId(const char *value)
Definition Instance.h:89
void SetFleetArn(const Aws::String &value)
Definition Instance.h:70
Instance & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Instance.h:192
const Aws::String & GetDnsName() const
Definition Instance.h:119
Instance & WithLocation(Aws::String &&value)
Definition Instance.h:206
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Instance.h:190
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue