AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Placement.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/Tenancy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API Placement();
36 AWS_EC2_API Placement(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API Placement& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
51 inline const Aws::String& GetAffinity() const{ return m_affinity; }
52 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
53 inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; }
54 inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
55 inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); }
56 inline Placement& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;}
57 inline Placement& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;}
58 inline Placement& WithAffinity(const char* value) { SetAffinity(value); return *this;}
60
62
66 inline const Aws::String& GetGroupName() const{ return m_groupName; }
67 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
68 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
69 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
70 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
71 inline Placement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
72 inline Placement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
73 inline Placement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
75
77
83 inline int GetPartitionNumber() const{ return m_partitionNumber; }
84 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
85 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
86 inline Placement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
88
90
97 inline const Aws::String& GetHostId() const{ return m_hostId; }
98 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
99 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
100 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
101 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
102 inline Placement& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
103 inline Placement& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
104 inline Placement& WithHostId(const char* value) { SetHostId(value); return *this;}
106
108
118 inline const Tenancy& GetTenancy() const{ return m_tenancy; }
119 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
120 inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
121 inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
122 inline Placement& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
123 inline Placement& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
125
127
130 inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; }
131 inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
132 inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; }
133 inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); }
134 inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); }
135 inline Placement& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;}
136 inline Placement& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;}
137 inline Placement& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;}
139
141
147 inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
148 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
149 inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
150 inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
151 inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
152 inline Placement& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;}
153 inline Placement& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
154 inline Placement& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
156
158
162 inline const Aws::String& GetGroupId() const{ return m_groupId; }
163 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
164 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
165 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
166 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
167 inline Placement& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
168 inline Placement& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
169 inline Placement& WithGroupId(const char* value) { SetGroupId(value); return *this;}
171
173
179 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
180 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
181 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
182 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
183 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
184 inline Placement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
185 inline Placement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
186 inline Placement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
188 private:
189
190 Aws::String m_affinity;
191 bool m_affinityHasBeenSet = false;
192
193 Aws::String m_groupName;
194 bool m_groupNameHasBeenSet = false;
195
196 int m_partitionNumber;
197 bool m_partitionNumberHasBeenSet = false;
198
199 Aws::String m_hostId;
200 bool m_hostIdHasBeenSet = false;
201
202 Tenancy m_tenancy;
203 bool m_tenancyHasBeenSet = false;
204
205 Aws::String m_spreadDomain;
206 bool m_spreadDomainHasBeenSet = false;
207
208 Aws::String m_hostResourceGroupArn;
209 bool m_hostResourceGroupArnHasBeenSet = false;
210
211 Aws::String m_groupId;
212 bool m_groupIdHasBeenSet = false;
213
214 Aws::String m_availabilityZone;
215 bool m_availabilityZoneHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace EC2
220} // namespace Aws
const Aws::String & GetSpreadDomain() const
Definition Placement.h:130
bool HostResourceGroupArnHasBeenSet() const
Definition Placement.h:148
const Aws::String & GetAffinity() const
Definition Placement.h:51
bool PartitionNumberHasBeenSet() const
Definition Placement.h:84
void SetTenancy(const Tenancy &value)
Definition Placement.h:120
void SetHostResourceGroupArn(Aws::String &&value)
Definition Placement.h:150
Placement & WithTenancy(const Tenancy &value)
Definition Placement.h:122
Placement & WithHostId(const Aws::String &value)
Definition Placement.h:102
bool TenancyHasBeenSet() const
Definition Placement.h:119
Placement & WithGroupName(const char *value)
Definition Placement.h:73
Placement & WithHostId(const char *value)
Definition Placement.h:104
void SetPartitionNumber(int value)
Definition Placement.h:85
void SetSpreadDomain(const Aws::String &value)
Definition Placement.h:132
Placement & WithSpreadDomain(Aws::String &&value)
Definition Placement.h:136
void SetSpreadDomain(const char *value)
Definition Placement.h:134
void SetHostId(const Aws::String &value)
Definition Placement.h:99
Placement & WithGroupName(const Aws::String &value)
Definition Placement.h:71
const Aws::String & GetHostResourceGroupArn() const
Definition Placement.h:147
AWS_EC2_API Placement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API Placement(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetGroupName(Aws::String &&value)
Definition Placement.h:69
void SetGroupId(const char *value)
Definition Placement.h:166
Placement & WithSpreadDomain(const Aws::String &value)
Definition Placement.h:135
Placement & WithTenancy(Tenancy &&value)
Definition Placement.h:123
bool SpreadDomainHasBeenSet() const
Definition Placement.h:131
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Placement & WithHostResourceGroupArn(Aws::String &&value)
Definition Placement.h:153
Placement & WithSpreadDomain(const char *value)
Definition Placement.h:137
void SetAvailabilityZone(const Aws::String &value)
Definition Placement.h:181
Placement & WithHostResourceGroupArn(const Aws::String &value)
Definition Placement.h:152
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAvailabilityZone() const
Definition Placement.h:179
Placement & WithGroupName(Aws::String &&value)
Definition Placement.h:72
Placement & WithHostResourceGroupArn(const char *value)
Definition Placement.h:154
Placement & WithGroupId(const char *value)
Definition Placement.h:169
void SetTenancy(Tenancy &&value)
Definition Placement.h:121
void SetHostResourceGroupArn(const char *value)
Definition Placement.h:151
int GetPartitionNumber() const
Definition Placement.h:83
bool AvailabilityZoneHasBeenSet() const
Definition Placement.h:180
Placement & WithAvailabilityZone(Aws::String &&value)
Definition Placement.h:185
const Aws::String & GetGroupId() const
Definition Placement.h:162
Placement & WithAffinity(Aws::String &&value)
Definition Placement.h:57
void SetAffinity(Aws::String &&value)
Definition Placement.h:54
const Aws::String & GetGroupName() const
Definition Placement.h:66
bool AffinityHasBeenSet() const
Definition Placement.h:52
Placement & WithAffinity(const char *value)
Definition Placement.h:58
bool GroupIdHasBeenSet() const
Definition Placement.h:163
Placement & WithAffinity(const Aws::String &value)
Definition Placement.h:56
void SetAffinity(const Aws::String &value)
Definition Placement.h:53
void SetAvailabilityZone(const char *value)
Definition Placement.h:183
void SetAvailabilityZone(Aws::String &&value)
Definition Placement.h:182
void SetGroupName(const char *value)
Definition Placement.h:70
void SetHostId(Aws::String &&value)
Definition Placement.h:100
void SetGroupId(Aws::String &&value)
Definition Placement.h:165
const Aws::String & GetHostId() const
Definition Placement.h:97
Placement & WithAvailabilityZone(const char *value)
Definition Placement.h:186
Placement & WithHostId(Aws::String &&value)
Definition Placement.h:103
void SetHostId(const char *value)
Definition Placement.h:101
bool GroupNameHasBeenSet() const
Definition Placement.h:67
void SetGroupId(const Aws::String &value)
Definition Placement.h:164
Placement & WithGroupId(Aws::String &&value)
Definition Placement.h:168
void SetGroupName(const Aws::String &value)
Definition Placement.h:68
void SetSpreadDomain(Aws::String &&value)
Definition Placement.h:133
const Tenancy & GetTenancy() const
Definition Placement.h:118
void SetHostResourceGroupArn(const Aws::String &value)
Definition Placement.h:149
Placement & WithGroupId(const Aws::String &value)
Definition Placement.h:167
Placement & WithPartitionNumber(int value)
Definition Placement.h:86
bool HostIdHasBeenSet() const
Definition Placement.h:98
Placement & WithAvailabilityZone(const Aws::String &value)
Definition Placement.h:184
void SetAffinity(const char *value)
Definition Placement.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream