AWS SDK for C++  1.9.104
AWS SDK for C++
Instance.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace GameLift
26 {
27 namespace Model
28 {
29 
39  {
40  public:
45 
46 
50  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
51 
55  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
56 
60  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
61 
65  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
66 
70  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
71 
75  inline Instance& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
76 
80  inline Instance& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
81 
85  inline Instance& WithFleetId(const char* value) { SetFleetId(value); return *this;}
86 
87 
95  inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
96 
104  inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
105 
113  inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
114 
122  inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
123 
131  inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
132 
140  inline Instance& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
141 
149  inline Instance& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
150 
158  inline Instance& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
159 
160 
164  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
165 
169  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
170 
174  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
175 
179  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
180 
184  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
185 
189  inline Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
190 
194  inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
195 
199  inline Instance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
200 
201 
205  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
206 
210  inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
211 
215  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
216 
220  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
221 
225  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
226 
230  inline Instance& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
231 
235  inline Instance& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
236 
240  inline Instance& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
241 
242 
255  inline const Aws::String& GetDnsName() const{ return m_dnsName; }
256 
269  inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
270 
283  inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
284 
297  inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
298 
311  inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
312 
325  inline Instance& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
326 
339  inline Instance& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
340 
353  inline Instance& WithDnsName(const char* value) { SetDnsName(value); return *this;}
354 
355 
359  inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
360 
364  inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
365 
369  inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
370 
374  inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
375 
379  inline Instance& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
380 
384  inline Instance& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
385 
386 
390  inline const EC2InstanceType& GetType() const{ return m_type; }
391 
395  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
396 
400  inline void SetType(const EC2InstanceType& value) { m_typeHasBeenSet = true; m_type = value; }
401 
405  inline void SetType(EC2InstanceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
406 
410  inline Instance& WithType(const EC2InstanceType& value) { SetType(value); return *this;}
411 
415  inline Instance& WithType(EC2InstanceType&& value) { SetType(std::move(value)); return *this;}
416 
417 
430  inline const InstanceStatus& GetStatus() const{ return m_status; }
431 
444  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
445 
458  inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
459 
472  inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
473 
486  inline Instance& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
487 
500  inline Instance& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
501 
502 
508  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
509 
515  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
516 
522  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
523 
529  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
530 
536  inline Instance& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
537 
543  inline Instance& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
544 
545 
550  inline const Aws::String& GetLocation() const{ return m_location; }
551 
556  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
557 
562  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
563 
568  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
569 
574  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
575 
580  inline Instance& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
581 
586  inline Instance& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
587 
592  inline Instance& WithLocation(const char* value) { SetLocation(value); return *this;}
593 
594  private:
595 
596  Aws::String m_fleetId;
597  bool m_fleetIdHasBeenSet;
598 
599  Aws::String m_fleetArn;
600  bool m_fleetArnHasBeenSet;
601 
602  Aws::String m_instanceId;
603  bool m_instanceIdHasBeenSet;
604 
605  Aws::String m_ipAddress;
606  bool m_ipAddressHasBeenSet;
607 
608  Aws::String m_dnsName;
609  bool m_dnsNameHasBeenSet;
610 
611  OperatingSystem m_operatingSystem;
612  bool m_operatingSystemHasBeenSet;
613 
614  EC2InstanceType m_type;
615  bool m_typeHasBeenSet;
616 
617  InstanceStatus m_status;
618  bool m_statusHasBeenSet;
619 
620  Aws::Utils::DateTime m_creationTime;
621  bool m_creationTimeHasBeenSet;
622 
623  Aws::String m_location;
624  bool m_locationHasBeenSet;
625  };
626 
627 } // namespace Model
628 } // namespace GameLift
629 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::GameLift::Model::Instance::Instance
Instance(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::Instance::SetInstanceId
void SetInstanceId(const char *value)
Definition: Instance.h:184
Aws::GameLift::Model::Instance::GetIpAddress
const Aws::String & GetIpAddress() const
Definition: Instance.h:205
Aws::GameLift::Model::EC2InstanceType
EC2InstanceType
Definition: EC2InstanceType.h:17
Aws::GameLift::Model::Instance::FleetArnHasBeenSet
bool FleetArnHasBeenSet() const
Definition: Instance.h:104
Aws::GameLift::Model::Instance::SetFleetId
void SetFleetId(const char *value)
Definition: Instance.h:70
Aws::GameLift::Model::Instance::WithFleetArn
Instance & WithFleetArn(const Aws::String &value)
Definition: Instance.h:140
Aws::GameLift::Model::Instance::WithIpAddress
Instance & WithIpAddress(Aws::String &&value)
Definition: Instance.h:235
Aws::GameLift::Model::Instance::WithStatus
Instance & WithStatus(InstanceStatus &&value)
Definition: Instance.h:500
Aws::GameLift::Model::Instance::SetType
void SetType(EC2InstanceType &&value)
Definition: Instance.h:405
DateTime.h
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::Instance::WithLocation
Instance & WithLocation(const char *value)
Definition: Instance.h:592
Aws::GameLift::Model::Instance::GetStatus
const InstanceStatus & GetStatus() const
Definition: Instance.h:430
Aws::GameLift::Model::Instance::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: Instance.h:522
Aws::GameLift::Model::Instance::WithType
Instance & WithType(const EC2InstanceType &value)
Definition: Instance.h:410
Aws::GameLift::Model::Instance::GetDnsName
const Aws::String & GetDnsName() const
Definition: Instance.h:255
Aws::GameLift::Model::Instance::GetType
const EC2InstanceType & GetType() const
Definition: Instance.h:390
Aws::GameLift::Model::Instance::SetFleetArn
void SetFleetArn(Aws::String &&value)
Definition: Instance.h:122
Aws::GameLift::Model::Instance::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: Instance.h:529
Aws::GameLift::Model::Instance::WithFleetId
Instance & WithFleetId(const Aws::String &value)
Definition: Instance.h:75
Aws::GameLift::Model::Instance::SetLocation
void SetLocation(const Aws::String &value)
Definition: Instance.h:562
Aws::GameLift::Model::Instance::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: Instance.h:556
Aws::GameLift::Model::Instance::SetLocation
void SetLocation(Aws::String &&value)
Definition: Instance.h:568
Aws::GameLift::Model::Instance::WithCreationTime
Instance & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: Instance.h:536
OperatingSystem.h
Aws::GameLift::Model::Instance::WithFleetArn
Instance & WithFleetArn(Aws::String &&value)
Definition: Instance.h:149
Aws::GameLift::Model::Instance::WithIpAddress
Instance & WithIpAddress(const Aws::String &value)
Definition: Instance.h:230
GameLift_EXPORTS.h
Aws::GameLift::Model::Instance::Instance
Instance()
Aws::GameLift::Model::Instance::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: Instance.h:515
Aws::GameLift::Model::Instance::WithOperatingSystem
Instance & WithOperatingSystem(const OperatingSystem &value)
Definition: Instance.h:379
Aws::GameLift::Model::Instance::SetStatus
void SetStatus(const InstanceStatus &value)
Definition: Instance.h:458
EC2InstanceType.h
Aws::GameLift::Model::Instance::WithFleetId
Instance & WithFleetId(const char *value)
Definition: Instance.h:85
Aws::GameLift::Model::Instance::GetFleetArn
const Aws::String & GetFleetArn() const
Definition: Instance.h:95
Aws::GameLift::Model::Instance::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: Instance.h:508
Aws::GameLift::Model::Instance::WithLocation
Instance & WithLocation(Aws::String &&value)
Definition: Instance.h:586
Aws::GameLift::Model::Instance::WithType
Instance & WithType(EC2InstanceType &&value)
Definition: Instance.h:415
Aws::GameLift::Model::Instance::GetLocation
const Aws::String & GetLocation() const
Definition: Instance.h:550
Aws::GameLift::Model::Instance::WithFleetArn
Instance & WithFleetArn(const char *value)
Definition: Instance.h:158
Aws::GameLift::Model::Instance::WithDnsName
Instance & WithDnsName(Aws::String &&value)
Definition: Instance.h:339
Aws::GameLift::Model::Instance::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: Instance.h:169
Aws::GameLift::Model::Instance::WithIpAddress
Instance & WithIpAddress(const char *value)
Definition: Instance.h:240
Aws::GameLift::Model::Instance::SetIpAddress
void SetIpAddress(const char *value)
Definition: Instance.h:225
Aws::GameLift::Model::Instance::OperatingSystemHasBeenSet
bool OperatingSystemHasBeenSet() const
Definition: Instance.h:364
Aws::GameLift::Model::Instance::SetFleetArn
void SetFleetArn(const char *value)
Definition: Instance.h:131
Aws::GameLift::Model::Instance::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: Instance.h:65
Aws::GameLift::Model::Instance::SetStatus
void SetStatus(InstanceStatus &&value)
Definition: Instance.h:472
Aws::GameLift::Model::Instance::WithDnsName
Instance & WithDnsName(const char *value)
Definition: Instance.h:353
Aws::GameLift::Model::Instance::SetLocation
void SetLocation(const char *value)
Definition: Instance.h:574
Aws::GameLift::Model::Instance::GetOperatingSystem
const OperatingSystem & GetOperatingSystem() const
Definition: Instance.h:359
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GameLift::Model::InstanceStatus
InstanceStatus
Definition: InstanceStatus.h:17
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::Instance::SetDnsName
void SetDnsName(const char *value)
Definition: Instance.h:311
Aws::GameLift::Model::Instance::GetFleetId
const Aws::String & GetFleetId() const
Definition: Instance.h:50
Aws::GameLift::Model::Instance::SetDnsName
void SetDnsName(Aws::String &&value)
Definition: Instance.h:297
Aws::GameLift::Model::Instance::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: Instance.h:174
Aws::GameLift::Model::Instance::WithOperatingSystem
Instance & WithOperatingSystem(OperatingSystem &&value)
Definition: Instance.h:384
Aws::GameLift::Model::Instance::SetIpAddress
void SetIpAddress(Aws::String &&value)
Definition: Instance.h:220
Aws::GameLift::Model::Instance::WithFleetId
Instance & WithFleetId(Aws::String &&value)
Definition: Instance.h:80
Aws::GameLift::Model::Instance::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Instance.h:395
Aws::GameLift::Model::Instance::WithStatus
Instance & WithStatus(const InstanceStatus &value)
Definition: Instance.h:486
Aws::GameLift::Model::Instance::WithInstanceId
Instance & WithInstanceId(const Aws::String &value)
Definition: Instance.h:189
Aws::GameLift::Model::Instance::SetDnsName
void SetDnsName(const Aws::String &value)
Definition: Instance.h:283
Aws::GameLift::Model::Instance::WithInstanceId
Instance & WithInstanceId(Aws::String &&value)
Definition: Instance.h:194
Aws::GameLift::Model::Instance::WithCreationTime
Instance & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: Instance.h:543
Aws::GameLift::Model::Instance::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Instance.h:444
Aws::GameLift::Model::Instance
Definition: Instance.h:39
Aws::GameLift::Model::Instance::WithDnsName
Instance & WithDnsName(const Aws::String &value)
Definition: Instance.h:325
Aws::GameLift::Model::Instance::IpAddressHasBeenSet
bool IpAddressHasBeenSet() const
Definition: Instance.h:210
Aws::GameLift::Model::Instance::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: Instance.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::Instance::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: Instance.h:179
Aws::GameLift::Model::Instance::WithInstanceId
Instance & WithInstanceId(const char *value)
Definition: Instance.h:199
Aws::GameLift::Model::Instance::SetOperatingSystem
void SetOperatingSystem(OperatingSystem &&value)
Definition: Instance.h:374
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::Instance::SetOperatingSystem
void SetOperatingSystem(const OperatingSystem &value)
Definition: Instance.h:369
Aws::GameLift::Model::Instance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::Instance::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: Instance.h:55
Aws::GameLift::Model::Instance::WithLocation
Instance & WithLocation(const Aws::String &value)
Definition: Instance.h:580
InstanceStatus.h
Aws::GameLift::Model::Instance::SetIpAddress
void SetIpAddress(const Aws::String &value)
Definition: Instance.h:215
Aws::GameLift::Model::Instance::SetFleetArn
void SetFleetArn(const Aws::String &value)
Definition: Instance.h:113
Aws::GameLift::Model::Instance::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: Instance.h:60
Aws::GameLift::Model::Instance::DnsNameHasBeenSet
bool DnsNameHasBeenSet() const
Definition: Instance.h:269
Aws::GameLift::Model::Instance::SetType
void SetType(const EC2InstanceType &value)
Definition: Instance.h:400
Aws::GameLift::Model::OperatingSystem
OperatingSystem
Definition: OperatingSystem.h:17
Aws::GameLift::Model::Instance::operator=
Instance & operator=(Aws::Utils::Json::JsonView jsonValue)