AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename FleetIdT = Aws::String>
53 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
54 template<typename FleetIdT = Aws::String>
55 Instance& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
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) { m_fleetArnHasBeenSet = true; m_fleetArn = std::forward<FleetArnT>(value); }
70 template<typename FleetArnT = Aws::String>
71 Instance& WithFleetArn(FleetArnT&& value) { SetFleetArn(std::forward<FleetArnT>(value)); return *this;}
73
75
78 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
79 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
80 template<typename InstanceIdT = Aws::String>
81 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
82 template<typename InstanceIdT = Aws::String>
83 Instance& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
91 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
92 template<typename IpAddressT = Aws::String>
93 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
94 template<typename IpAddressT = Aws::String>
95 Instance& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
97
99
111 inline const Aws::String& GetDnsName() const { return m_dnsName; }
112 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
113 template<typename DnsNameT = Aws::String>
114 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
115 template<typename DnsNameT = Aws::String>
116 Instance& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
118
120
130 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
131 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
132 inline void SetOperatingSystem(OperatingSystem value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
133 inline Instance& WithOperatingSystem(OperatingSystem value) { SetOperatingSystem(value); return *this;}
135
137
140 inline EC2InstanceType GetType() const { return m_type; }
141 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
142 inline void SetType(EC2InstanceType value) { m_typeHasBeenSet = true; m_type = value; }
143 inline Instance& WithType(EC2InstanceType value) { SetType(value); return *this;}
145
147
159 inline InstanceStatus GetStatus() const { return m_status; }
160 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 inline void SetStatus(InstanceStatus value) { m_statusHasBeenSet = true; m_status = value; }
162 inline Instance& WithStatus(InstanceStatus value) { SetStatus(value); return *this;}
164
166
171 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
172 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
173 template<typename CreationTimeT = Aws::Utils::DateTime>
174 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
175 template<typename CreationTimeT = Aws::Utils::DateTime>
176 Instance& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
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) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
188 template<typename LocationT = Aws::String>
189 Instance& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
191 private:
192
193 Aws::String m_fleetId;
194 bool m_fleetIdHasBeenSet = false;
195
196 Aws::String m_fleetArn;
197 bool m_fleetArnHasBeenSet = false;
198
199 Aws::String m_instanceId;
200 bool m_instanceIdHasBeenSet = false;
201
202 Aws::String m_ipAddress;
203 bool m_ipAddressHasBeenSet = false;
204
205 Aws::String m_dnsName;
206 bool m_dnsNameHasBeenSet = false;
207
208 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
209 bool m_operatingSystemHasBeenSet = false;
210
212 bool m_typeHasBeenSet = false;
213
215 bool m_statusHasBeenSet = false;
216
217 Aws::Utils::DateTime m_creationTime{};
218 bool m_creationTimeHasBeenSet = false;
219
220 Aws::String m_location;
221 bool m_locationHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace GameLift
226} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Instance.h:171
const Aws::String & GetFleetId() const
Definition Instance.h:50
void SetFleetArn(FleetArnT &&value)
Definition Instance.h:69
bool IpAddressHasBeenSet() const
Definition Instance.h:91
void SetType(EC2InstanceType value)
Definition Instance.h:142
AWS_GAMELIFT_API Instance()=default
const Aws::String & GetInstanceId() const
Definition Instance.h:78
Instance & WithDnsName(DnsNameT &&value)
Definition Instance.h:116
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(InstanceStatus value)
Definition Instance.h:161
bool InstanceIdHasBeenSet() const
Definition Instance.h:79
bool OperatingSystemHasBeenSet() const
Definition Instance.h:131
void SetOperatingSystem(OperatingSystem value)
Definition Instance.h:132
Instance & WithOperatingSystem(OperatingSystem value)
Definition Instance.h:133
OperatingSystem GetOperatingSystem() const
Definition Instance.h:130
Instance & WithInstanceId(InstanceIdT &&value)
Definition Instance.h:83
Instance & WithType(EC2InstanceType value)
Definition Instance.h:143
void SetCreationTime(CreationTimeT &&value)
Definition Instance.h:174
Instance & WithStatus(InstanceStatus value)
Definition Instance.h:162
InstanceStatus GetStatus() const
Definition Instance.h:159
void SetIpAddress(IpAddressT &&value)
Definition Instance.h:93
bool FleetArnHasBeenSet() const
Definition Instance.h:67
EC2InstanceType GetType() const
Definition Instance.h:140
const Aws::String & GetIpAddress() const
Definition Instance.h:90
AWS_GAMELIFT_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Instance.h:172
const Aws::String & GetLocation() const
Definition Instance.h:184
void SetFleetId(FleetIdT &&value)
Definition Instance.h:53
AWS_GAMELIFT_API Instance(Aws::Utils::Json::JsonView jsonValue)
Instance & WithCreationTime(CreationTimeT &&value)
Definition Instance.h:176
void SetLocation(LocationT &&value)
Definition Instance.h:187
const Aws::String & GetFleetArn() const
Definition Instance.h:66
void SetDnsName(DnsNameT &&value)
Definition Instance.h:114
Instance & WithIpAddress(IpAddressT &&value)
Definition Instance.h:95
Instance & WithFleetArn(FleetArnT &&value)
Definition Instance.h:71
Instance & WithLocation(LocationT &&value)
Definition Instance.h:189
void SetInstanceId(InstanceIdT &&value)
Definition Instance.h:81
Instance & WithFleetId(FleetIdT &&value)
Definition Instance.h:55
const Aws::String & GetDnsName() const
Definition Instance.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue