AWS SDK for C++  1.9.104
AWS SDK for C++
Placement.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <aws/ec2/model/Tenancy.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
49  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
50 
57  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
58 
65  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
66 
73  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
74 
81  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
82 
89  inline Placement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
90 
97  inline Placement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
98 
105  inline Placement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
106 
107 
115  inline const Aws::String& GetAffinity() const{ return m_affinity; }
116 
124  inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
125 
133  inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; }
134 
142  inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
143 
151  inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); }
152 
160  inline Placement& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;}
161 
169  inline Placement& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;}
170 
178  inline Placement& WithAffinity(const char* value) { SetAffinity(value); return *this;}
179 
180 
184  inline const Aws::String& GetGroupName() const{ return m_groupName; }
185 
189  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
190 
194  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
195 
199  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
200 
204  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
205 
209  inline Placement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
210 
214  inline Placement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
215 
219  inline Placement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
220 
221 
228  inline int GetPartitionNumber() const{ return m_partitionNumber; }
229 
236  inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
237 
244  inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
245 
252  inline Placement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
253 
254 
262  inline const Aws::String& GetHostId() const{ return m_hostId; }
263 
271  inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
272 
280  inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
281 
289  inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
290 
298  inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
299 
307  inline Placement& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
308 
316  inline Placement& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
317 
325  inline Placement& WithHostId(const char* value) { SetHostId(value); return *this;}
326 
327 
338  inline const Tenancy& GetTenancy() const{ return m_tenancy; }
339 
350  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
351 
362  inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
363 
374  inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
375 
386  inline Placement& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
387 
398  inline Placement& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
399 
400 
405  inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; }
406 
411  inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
412 
417  inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; }
418 
423  inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); }
424 
429  inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); }
430 
435  inline Placement& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;}
436 
441  inline Placement& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;}
442 
447  inline Placement& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;}
448 
449 
456  inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
457 
464  inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
465 
472  inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
473 
480  inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
481 
488  inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
489 
496  inline Placement& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;}
497 
504  inline Placement& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
505 
512  inline Placement& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
513 
514  private:
515 
516  Aws::String m_availabilityZone;
517  bool m_availabilityZoneHasBeenSet;
518 
519  Aws::String m_affinity;
520  bool m_affinityHasBeenSet;
521 
522  Aws::String m_groupName;
523  bool m_groupNameHasBeenSet;
524 
525  int m_partitionNumber;
526  bool m_partitionNumberHasBeenSet;
527 
528  Aws::String m_hostId;
529  bool m_hostIdHasBeenSet;
530 
531  Tenancy m_tenancy;
532  bool m_tenancyHasBeenSet;
533 
534  Aws::String m_spreadDomain;
535  bool m_spreadDomainHasBeenSet;
536 
537  Aws::String m_hostResourceGroupArn;
538  bool m_hostResourceGroupArnHasBeenSet;
539  };
540 
541 } // namespace Model
542 } // namespace EC2
543 } // namespace Aws
Aws::EC2::Model::Placement::SetTenancy
void SetTenancy(Tenancy &&value)
Definition: Placement.h:374
Aws::EC2::Model::Placement::WithTenancy
Placement & WithTenancy(const Tenancy &value)
Definition: Placement.h:386
Aws::EC2::Model::Placement::WithAvailabilityZone
Placement & WithAvailabilityZone(const Aws::String &value)
Definition: Placement.h:89
Aws::EC2::Model::Placement::WithSpreadDomain
Placement & WithSpreadDomain(Aws::String &&value)
Definition: Placement.h:441
Aws::EC2::Model::Placement::WithHostResourceGroupArn
Placement & WithHostResourceGroupArn(const char *value)
Definition: Placement.h:512
Aws::EC2::Model::Placement::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: Placement.h:65
Aws::EC2::Model::Placement::GetGroupName
const Aws::String & GetGroupName() const
Definition: Placement.h:184
Aws::EC2::Model::Placement
Definition: Placement.h:33
Aws::EC2::Model::Placement::GetAffinity
const Aws::String & GetAffinity() const
Definition: Placement.h:115
Aws::EC2::Model::Placement::HostResourceGroupArnHasBeenSet
bool HostResourceGroupArnHasBeenSet() const
Definition: Placement.h:464
Aws::EC2::Model::Placement::WithHostId
Placement & WithHostId(Aws::String &&value)
Definition: Placement.h:316
Aws::EC2::Model::Placement::SetAffinity
void SetAffinity(const char *value)
Definition: Placement.h:151
Aws::EC2::Model::Placement::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: Placement.h:49
Aws::EC2::Model::Placement::WithHostResourceGroupArn
Placement & WithHostResourceGroupArn(Aws::String &&value)
Definition: Placement.h:504
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Placement::WithSpreadDomain
Placement & WithSpreadDomain(const Aws::String &value)
Definition: Placement.h:435
Aws::EC2::Model::Placement::SetGroupName
void SetGroupName(const char *value)
Definition: Placement.h:204
Aws::EC2::Model::Placement::WithAffinity
Placement & WithAffinity(const Aws::String &value)
Definition: Placement.h:160
Aws::EC2::Model::Placement::GetHostResourceGroupArn
const Aws::String & GetHostResourceGroupArn() const
Definition: Placement.h:456
Aws::EC2::Model::Placement::Placement
Placement(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::Placement::SetHostId
void SetHostId(Aws::String &&value)
Definition: Placement.h:289
Aws::EC2::Model::Placement::TenancyHasBeenSet
bool TenancyHasBeenSet() const
Definition: Placement.h:350
Aws::EC2::Model::Placement::WithPartitionNumber
Placement & WithPartitionNumber(int value)
Definition: Placement.h:252
Aws::EC2::Model::Placement::SetSpreadDomain
void SetSpreadDomain(const Aws::String &value)
Definition: Placement.h:417
Aws::EC2::Model::Placement::PartitionNumberHasBeenSet
bool PartitionNumberHasBeenSet() const
Definition: Placement.h:236
Aws::EC2::Model::Placement::WithAvailabilityZone
Placement & WithAvailabilityZone(Aws::String &&value)
Definition: Placement.h:97
Aws::EC2::Model::Placement::GetPartitionNumber
int GetPartitionNumber() const
Definition: Placement.h:228
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::Placement::WithHostId
Placement & WithHostId(const Aws::String &value)
Definition: Placement.h:307
Aws::EC2::Model::Placement::GetSpreadDomain
const Aws::String & GetSpreadDomain() const
Definition: Placement.h:405
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Tenancy
Tenancy
Definition: Tenancy.h:17
Aws::EC2::Model::Placement::WithAvailabilityZone
Placement & WithAvailabilityZone(const char *value)
Definition: Placement.h:105
Aws::EC2::Model::Placement::SetAffinity
void SetAffinity(const Aws::String &value)
Definition: Placement.h:133
Tenancy.h
Aws::EC2::Model::Placement::HostIdHasBeenSet
bool HostIdHasBeenSet() const
Definition: Placement.h:271
Aws::EC2::Model::Placement::WithAffinity
Placement & WithAffinity(const char *value)
Definition: Placement.h:178
Aws::EC2::Model::Placement::WithGroupName
Placement & WithGroupName(const Aws::String &value)
Definition: Placement.h:209
Aws::EC2::Model::Placement::WithGroupName
Placement & WithGroupName(Aws::String &&value)
Definition: Placement.h:214
AWSString.h
Aws::EC2::Model::Placement::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Placement::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: Placement.h:57
Aws::EC2::Model::Placement::SetAffinity
void SetAffinity(Aws::String &&value)
Definition: Placement.h:142
Aws::EC2::Model::Placement::SetTenancy
void SetTenancy(const Tenancy &value)
Definition: Placement.h:362
Aws::EC2::Model::Placement::SetPartitionNumber
void SetPartitionNumber(int value)
Definition: Placement.h:244
Aws::EC2::Model::Placement::AffinityHasBeenSet
bool AffinityHasBeenSet() const
Definition: Placement.h:124
Aws::EC2::Model::Placement::SetSpreadDomain
void SetSpreadDomain(const char *value)
Definition: Placement.h:429
Aws::EC2::Model::Placement::SetHostId
void SetHostId(const char *value)
Definition: Placement.h:298
Aws::EC2::Model::Placement::Placement
Placement()
Aws::EC2::Model::Placement::WithHostId
Placement & WithHostId(const char *value)
Definition: Placement.h:325
Aws::EC2::Model::Placement::WithSpreadDomain
Placement & WithSpreadDomain(const char *value)
Definition: Placement.h:447
Aws::EC2::Model::Placement::SetHostResourceGroupArn
void SetHostResourceGroupArn(const char *value)
Definition: Placement.h:488
Aws::EC2::Model::Placement::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: Placement.h:73
Aws::EC2::Model::Placement::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: Placement.h:189
Aws::EC2::Model::Placement::SetHostId
void SetHostId(const Aws::String &value)
Definition: Placement.h:280
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::Placement::WithAffinity
Placement & WithAffinity(Aws::String &&value)
Definition: Placement.h:169
Aws::EC2::Model::Placement::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::Placement::WithHostResourceGroupArn
Placement & WithHostResourceGroupArn(const Aws::String &value)
Definition: Placement.h:496
Aws::EC2::Model::Placement::SetHostResourceGroupArn
void SetHostResourceGroupArn(const Aws::String &value)
Definition: Placement.h:472
Aws::EC2::Model::Placement::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: Placement.h:199
Aws::EC2::Model::Placement::WithTenancy
Placement & WithTenancy(Tenancy &&value)
Definition: Placement.h:398
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::Placement::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: Placement.h:81
Aws::EC2::Model::Placement::operator=
Placement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Placement::GetTenancy
const Tenancy & GetTenancy() const
Definition: Placement.h:338
Aws::EC2::Model::Placement::WithGroupName
Placement & WithGroupName(const char *value)
Definition: Placement.h:219
EC2_EXPORTS.h
Aws::EC2::Model::Placement::SetHostResourceGroupArn
void SetHostResourceGroupArn(Aws::String &&value)
Definition: Placement.h:480
Aws::EC2::Model::Placement::SpreadDomainHasBeenSet
bool SpreadDomainHasBeenSet() const
Definition: Placement.h:411
Aws::EC2::Model::Placement::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: Placement.h:194
Aws::EC2::Model::Placement::SetSpreadDomain
void SetSpreadDomain(Aws::String &&value)
Definition: Placement.h:423
Aws::EC2::Model::Placement::GetHostId
const Aws::String & GetHostId() const
Definition: Placement.h:262