AWS SDK for C++  1.9.75
AWS SDK for C++
LaunchTemplatePlacement.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 
46  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
47 
51  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
52 
56  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
57 
61  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
62 
66  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
67 
71  inline LaunchTemplatePlacement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
72 
76  inline LaunchTemplatePlacement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
77 
81  inline LaunchTemplatePlacement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
82 
83 
87  inline const Aws::String& GetAffinity() const{ return m_affinity; }
88 
92  inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
93 
97  inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; }
98 
102  inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
103 
107  inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); }
108 
112  inline LaunchTemplatePlacement& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;}
113 
117  inline LaunchTemplatePlacement& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;}
118 
122  inline LaunchTemplatePlacement& WithAffinity(const char* value) { SetAffinity(value); return *this;}
123 
124 
128  inline const Aws::String& GetGroupName() const{ return m_groupName; }
129 
133  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
134 
138  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
139 
143  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
144 
148  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
149 
153  inline LaunchTemplatePlacement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
154 
158  inline LaunchTemplatePlacement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
159 
163  inline LaunchTemplatePlacement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
164 
165 
169  inline const Aws::String& GetHostId() const{ return m_hostId; }
170 
174  inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
175 
179  inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
180 
184  inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
185 
189  inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
190 
194  inline LaunchTemplatePlacement& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
195 
199  inline LaunchTemplatePlacement& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
200 
204  inline LaunchTemplatePlacement& WithHostId(const char* value) { SetHostId(value); return *this;}
205 
206 
212  inline const Tenancy& GetTenancy() const{ return m_tenancy; }
213 
219  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
220 
226  inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
227 
233  inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
234 
240  inline LaunchTemplatePlacement& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
241 
247  inline LaunchTemplatePlacement& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
248 
249 
253  inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; }
254 
258  inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
259 
263  inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; }
264 
268  inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); }
269 
273  inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); }
274 
278  inline LaunchTemplatePlacement& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;}
279 
283  inline LaunchTemplatePlacement& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;}
284 
288  inline LaunchTemplatePlacement& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;}
289 
290 
294  inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
295 
299  inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
300 
304  inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
305 
309  inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
310 
314  inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
315 
319  inline LaunchTemplatePlacement& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;}
320 
324  inline LaunchTemplatePlacement& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
325 
329  inline LaunchTemplatePlacement& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
330 
331 
336  inline int GetPartitionNumber() const{ return m_partitionNumber; }
337 
342  inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
343 
348  inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
349 
354  inline LaunchTemplatePlacement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
355 
356  private:
357 
358  Aws::String m_availabilityZone;
359  bool m_availabilityZoneHasBeenSet;
360 
361  Aws::String m_affinity;
362  bool m_affinityHasBeenSet;
363 
364  Aws::String m_groupName;
365  bool m_groupNameHasBeenSet;
366 
367  Aws::String m_hostId;
368  bool m_hostIdHasBeenSet;
369 
370  Tenancy m_tenancy;
371  bool m_tenancyHasBeenSet;
372 
373  Aws::String m_spreadDomain;
374  bool m_spreadDomainHasBeenSet;
375 
376  Aws::String m_hostResourceGroupArn;
377  bool m_hostResourceGroupArnHasBeenSet;
378 
379  int m_partitionNumber;
380  bool m_partitionNumberHasBeenSet;
381  };
382 
383 } // namespace Model
384 } // namespace EC2
385 } // namespace Aws
Aws::EC2::Model::LaunchTemplatePlacement::GetAffinity
const Aws::String & GetAffinity() const
Definition: LaunchTemplatePlacement.h:87
Aws::EC2::Model::LaunchTemplatePlacement::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:56
Aws::EC2::Model::LaunchTemplatePlacement::WithTenancy
LaunchTemplatePlacement & WithTenancy(const Tenancy &value)
Definition: LaunchTemplatePlacement.h:240
Aws::EC2::Model::LaunchTemplatePlacement::SetSpreadDomain
void SetSpreadDomain(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:263
Aws::EC2::Model::LaunchTemplatePlacement::TenancyHasBeenSet
bool TenancyHasBeenSet() const
Definition: LaunchTemplatePlacement.h:219
Aws::EC2::Model::LaunchTemplatePlacement::SetHostResourceGroupArn
void SetHostResourceGroupArn(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:304
Aws::EC2::Model::LaunchTemplatePlacement
Definition: LaunchTemplatePlacement.h:33
Aws::EC2::Model::LaunchTemplatePlacement::GetHostResourceGroupArn
const Aws::String & GetHostResourceGroupArn() const
Definition: LaunchTemplatePlacement.h:294
Aws::EC2::Model::LaunchTemplatePlacement::SetAffinity
void SetAffinity(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:102
Aws::EC2::Model::LaunchTemplatePlacement::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: LaunchTemplatePlacement.h:133
Aws::EC2::Model::LaunchTemplatePlacement::WithTenancy
LaunchTemplatePlacement & WithTenancy(Tenancy &&value)
Definition: LaunchTemplatePlacement.h:247
Aws::EC2::Model::LaunchTemplatePlacement::SetTenancy
void SetTenancy(Tenancy &&value)
Definition: LaunchTemplatePlacement.h:233
Aws::EC2::Model::LaunchTemplatePlacement::SetHostResourceGroupArn
void SetHostResourceGroupArn(const char *value)
Definition: LaunchTemplatePlacement.h:314
Aws::EC2::Model::LaunchTemplatePlacement::SpreadDomainHasBeenSet
bool SpreadDomainHasBeenSet() const
Definition: LaunchTemplatePlacement.h:258
Aws::EC2::Model::LaunchTemplatePlacement::WithHostResourceGroupArn
LaunchTemplatePlacement & WithHostResourceGroupArn(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:324
Aws::EC2::Model::LaunchTemplatePlacement::WithGroupName
LaunchTemplatePlacement & WithGroupName(const char *value)
Definition: LaunchTemplatePlacement.h:163
Aws::EC2::Model::LaunchTemplatePlacement::HostIdHasBeenSet
bool HostIdHasBeenSet() const
Definition: LaunchTemplatePlacement.h:174
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplatePlacement::SetPartitionNumber
void SetPartitionNumber(int value)
Definition: LaunchTemplatePlacement.h:348
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplatePlacement::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: LaunchTemplatePlacement.h:66
Aws::EC2::Model::LaunchTemplatePlacement::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplatePlacement::WithHostId
LaunchTemplatePlacement & WithHostId(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:199
Aws::EC2::Model::LaunchTemplatePlacement::WithGroupName
LaunchTemplatePlacement & WithGroupName(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:158
Aws::EC2::Model::LaunchTemplatePlacement::LaunchTemplatePlacement
LaunchTemplatePlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplatePlacement::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: LaunchTemplatePlacement.h:51
Aws::EC2::Model::LaunchTemplatePlacement::AffinityHasBeenSet
bool AffinityHasBeenSet() const
Definition: LaunchTemplatePlacement.h:92
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplatePlacement::WithHostResourceGroupArn
LaunchTemplatePlacement & WithHostResourceGroupArn(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:319
Aws::EC2::Model::LaunchTemplatePlacement::WithAvailabilityZone
LaunchTemplatePlacement & WithAvailabilityZone(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:76
Aws::EC2::Model::LaunchTemplatePlacement::WithHostId
LaunchTemplatePlacement & WithHostId(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:194
Aws::EC2::Model::LaunchTemplatePlacement::GetPartitionNumber
int GetPartitionNumber() const
Definition: LaunchTemplatePlacement.h:336
Aws::EC2::Model::LaunchTemplatePlacement::SetTenancy
void SetTenancy(const Tenancy &value)
Definition: LaunchTemplatePlacement.h:226
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplatePlacement::WithAffinity
LaunchTemplatePlacement & WithAffinity(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:117
Aws::EC2::Model::LaunchTemplatePlacement::GetTenancy
const Tenancy & GetTenancy() const
Definition: LaunchTemplatePlacement.h:212
Aws::EC2::Model::Tenancy
Tenancy
Definition: Tenancy.h:17
Aws::EC2::Model::LaunchTemplatePlacement::PartitionNumberHasBeenSet
bool PartitionNumberHasBeenSet() const
Definition: LaunchTemplatePlacement.h:342
Aws::EC2::Model::LaunchTemplatePlacement::WithSpreadDomain
LaunchTemplatePlacement & WithSpreadDomain(const char *value)
Definition: LaunchTemplatePlacement.h:288
Aws::EC2::Model::LaunchTemplatePlacement::WithAvailabilityZone
LaunchTemplatePlacement & WithAvailabilityZone(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:71
Tenancy.h
Aws::EC2::Model::LaunchTemplatePlacement::WithPartitionNumber
LaunchTemplatePlacement & WithPartitionNumber(int value)
Definition: LaunchTemplatePlacement.h:354
Aws::EC2::Model::LaunchTemplatePlacement::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplatePlacement::SetSpreadDomain
void SetSpreadDomain(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:268
Aws::EC2::Model::LaunchTemplatePlacement::WithAffinity
LaunchTemplatePlacement & WithAffinity(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:112
Aws::EC2::Model::LaunchTemplatePlacement::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:143
Aws::EC2::Model::LaunchTemplatePlacement::GetHostId
const Aws::String & GetHostId() const
Definition: LaunchTemplatePlacement.h:169
Aws::EC2::Model::LaunchTemplatePlacement::SetHostId
void SetHostId(const char *value)
Definition: LaunchTemplatePlacement.h:189
AWSString.h
Aws::EC2::Model::LaunchTemplatePlacement::GetSpreadDomain
const Aws::String & GetSpreadDomain() const
Definition: LaunchTemplatePlacement.h:253
Aws::EC2::Model::LaunchTemplatePlacement::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: LaunchTemplatePlacement.h:46
Aws::EC2::Model::LaunchTemplatePlacement::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:138
Aws::EC2::Model::LaunchTemplatePlacement::WithAffinity
LaunchTemplatePlacement & WithAffinity(const char *value)
Definition: LaunchTemplatePlacement.h:122
Aws::EC2::Model::LaunchTemplatePlacement::WithHostResourceGroupArn
LaunchTemplatePlacement & WithHostResourceGroupArn(const char *value)
Definition: LaunchTemplatePlacement.h:329
Aws::EC2::Model::LaunchTemplatePlacement::WithAvailabilityZone
LaunchTemplatePlacement & WithAvailabilityZone(const char *value)
Definition: LaunchTemplatePlacement.h:81
Aws::EC2::Model::LaunchTemplatePlacement::WithGroupName
LaunchTemplatePlacement & WithGroupName(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:153
Aws::EC2::Model::LaunchTemplatePlacement::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:61
Aws::EC2::Model::LaunchTemplatePlacement::WithSpreadDomain
LaunchTemplatePlacement & WithSpreadDomain(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:283
Aws::EC2::Model::LaunchTemplatePlacement::WithSpreadDomain
LaunchTemplatePlacement & WithSpreadDomain(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:278
Aws::EC2::Model::LaunchTemplatePlacement::LaunchTemplatePlacement
LaunchTemplatePlacement()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplatePlacement::HostResourceGroupArnHasBeenSet
bool HostResourceGroupArnHasBeenSet() const
Definition: LaunchTemplatePlacement.h:299
Aws::EC2::Model::LaunchTemplatePlacement::SetAffinity
void SetAffinity(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:97
Aws::EC2::Model::LaunchTemplatePlacement::SetHostResourceGroupArn
void SetHostResourceGroupArn(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:309
Aws::EC2::Model::LaunchTemplatePlacement::GetGroupName
const Aws::String & GetGroupName() const
Definition: LaunchTemplatePlacement.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchTemplatePlacement::SetHostId
void SetHostId(const Aws::String &value)
Definition: LaunchTemplatePlacement.h:179
Aws::EC2::Model::LaunchTemplatePlacement::SetHostId
void SetHostId(Aws::String &&value)
Definition: LaunchTemplatePlacement.h:184
Aws::EC2::Model::LaunchTemplatePlacement::SetSpreadDomain
void SetSpreadDomain(const char *value)
Definition: LaunchTemplatePlacement.h:273
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplatePlacement::SetGroupName
void SetGroupName(const char *value)
Definition: LaunchTemplatePlacement.h:148
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplatePlacement::operator=
LaunchTemplatePlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplatePlacement::SetAffinity
void SetAffinity(const char *value)
Definition: LaunchTemplatePlacement.h:107
Aws::EC2::Model::LaunchTemplatePlacement::WithHostId
LaunchTemplatePlacement & WithHostId(const char *value)
Definition: LaunchTemplatePlacement.h:204