AWS SDK for C++  1.9.71
AWS SDK for C++
LaunchTemplatePlacementRequest.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 LaunchTemplatePlacementRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
72 
76  inline LaunchTemplatePlacementRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
77 
81  inline LaunchTemplatePlacementRequest& 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 LaunchTemplatePlacementRequest& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;}
113 
117  inline LaunchTemplatePlacementRequest& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;}
118 
122  inline LaunchTemplatePlacementRequest& 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 LaunchTemplatePlacementRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
154 
158  inline LaunchTemplatePlacementRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
159 
163  inline LaunchTemplatePlacementRequest& 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 LaunchTemplatePlacementRequest& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
195 
199  inline LaunchTemplatePlacementRequest& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
200 
204  inline LaunchTemplatePlacementRequest& WithHostId(const char* value) { SetHostId(value); return *this;}
205 
206 
211  inline const Tenancy& GetTenancy() const{ return m_tenancy; }
212 
217  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
218 
223  inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
224 
229  inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
230 
235  inline LaunchTemplatePlacementRequest& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
236 
241  inline LaunchTemplatePlacementRequest& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
242 
243 
247  inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; }
248 
252  inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
253 
257  inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; }
258 
262  inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); }
263 
267  inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); }
268 
272  inline LaunchTemplatePlacementRequest& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;}
273 
277  inline LaunchTemplatePlacementRequest& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;}
278 
282  inline LaunchTemplatePlacementRequest& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;}
283 
284 
290  inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
291 
297  inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
298 
304  inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
305 
311  inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
312 
318  inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
319 
325  inline LaunchTemplatePlacementRequest& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;}
326 
332  inline LaunchTemplatePlacementRequest& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
333 
339  inline LaunchTemplatePlacementRequest& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
340 
341 
346  inline int GetPartitionNumber() const{ return m_partitionNumber; }
347 
352  inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
353 
358  inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
359 
364  inline LaunchTemplatePlacementRequest& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
365 
366  private:
367 
368  Aws::String m_availabilityZone;
369  bool m_availabilityZoneHasBeenSet;
370 
371  Aws::String m_affinity;
372  bool m_affinityHasBeenSet;
373 
374  Aws::String m_groupName;
375  bool m_groupNameHasBeenSet;
376 
377  Aws::String m_hostId;
378  bool m_hostIdHasBeenSet;
379 
380  Tenancy m_tenancy;
381  bool m_tenancyHasBeenSet;
382 
383  Aws::String m_spreadDomain;
384  bool m_spreadDomainHasBeenSet;
385 
386  Aws::String m_hostResourceGroupArn;
387  bool m_hostResourceGroupArnHasBeenSet;
388 
389  int m_partitionNumber;
390  bool m_partitionNumberHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace EC2
395 } // namespace Aws
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithAffinity
LaunchTemplatePlacementRequest & WithAffinity(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:117
Aws::EC2::Model::LaunchTemplatePlacementRequest::HostResourceGroupArnHasBeenSet
bool HostResourceGroupArnHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:297
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithHostId
LaunchTemplatePlacementRequest & WithHostId(const char *value)
Definition: LaunchTemplatePlacementRequest.h:204
Aws::EC2::Model::LaunchTemplatePlacementRequest::TenancyHasBeenSet
bool TenancyHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:217
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: LaunchTemplatePlacementRequest.h:128
Aws::EC2::Model::LaunchTemplatePlacementRequest::PartitionNumberHasBeenSet
bool PartitionNumberHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:352
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithTenancy
LaunchTemplatePlacementRequest & WithTenancy(const Tenancy &value)
Definition: LaunchTemplatePlacementRequest.h:235
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetHostResourceGroupArn
void SetHostResourceGroupArn(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:304
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithHostId
LaunchTemplatePlacementRequest & WithHostId(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:199
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:56
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetPartitionNumber
int GetPartitionNumber() const
Definition: LaunchTemplatePlacementRequest.h:346
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithAvailabilityZone
LaunchTemplatePlacementRequest & WithAvailabilityZone(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:76
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithGroupName
LaunchTemplatePlacementRequest & WithGroupName(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:158
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:143
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetSpreadDomain
void SetSpreadDomain(const char *value)
Definition: LaunchTemplatePlacementRequest.h:267
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithHostResourceGroupArn
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:325
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithSpreadDomain
LaunchTemplatePlacementRequest & WithSpreadDomain(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:272
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithHostResourceGroupArn
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:332
Aws::EC2::Model::LaunchTemplatePlacementRequest::HostIdHasBeenSet
bool HostIdHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:174
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithTenancy
LaunchTemplatePlacementRequest & WithTenancy(Tenancy &&value)
Definition: LaunchTemplatePlacementRequest.h:241
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetHostResourceGroupArn
void SetHostResourceGroupArn(const char *value)
Definition: LaunchTemplatePlacementRequest.h:318
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithAffinity
LaunchTemplatePlacementRequest & WithAffinity(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:112
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetTenancy
void SetTenancy(const Tenancy &value)
Definition: LaunchTemplatePlacementRequest.h:223
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:138
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetSpreadDomain
void SetSpreadDomain(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:262
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetAffinity
const Aws::String & GetAffinity() const
Definition: LaunchTemplatePlacementRequest.h:87
Aws::EC2::Model::LaunchTemplatePlacementRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetHostId
void SetHostId(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:179
Aws::EC2::Model::LaunchTemplatePlacementRequest::LaunchTemplatePlacementRequest
LaunchTemplatePlacementRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Tenancy
Tenancy
Definition: Tenancy.h:17
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetSpreadDomain
void SetSpreadDomain(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:257
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: LaunchTemplatePlacementRequest.h:66
Tenancy.h
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithPartitionNumber
LaunchTemplatePlacementRequest & WithPartitionNumber(int value)
Definition: LaunchTemplatePlacementRequest.h:364
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetAffinity
void SetAffinity(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:102
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: LaunchTemplatePlacementRequest.h:46
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetSpreadDomain
const Aws::String & GetSpreadDomain() const
Definition: LaunchTemplatePlacementRequest.h:247
Aws::EC2::Model::LaunchTemplatePlacementRequest::AffinityHasBeenSet
bool AffinityHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:92
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithHostResourceGroupArn
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(const char *value)
Definition: LaunchTemplatePlacementRequest.h:339
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithGroupName
LaunchTemplatePlacementRequest & WithGroupName(const char *value)
Definition: LaunchTemplatePlacementRequest.h:163
Aws::EC2::Model::LaunchTemplatePlacementRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:133
AWSString.h
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithSpreadDomain
LaunchTemplatePlacementRequest & WithSpreadDomain(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:277
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetTenancy
void SetTenancy(Tenancy &&value)
Definition: LaunchTemplatePlacementRequest.h:229
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetAffinity
void SetAffinity(const char *value)
Definition: LaunchTemplatePlacementRequest.h:107
Aws::EC2::Model::LaunchTemplatePlacementRequest::operator=
LaunchTemplatePlacementRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithAvailabilityZone
LaunchTemplatePlacementRequest & WithAvailabilityZone(const char *value)
Definition: LaunchTemplatePlacementRequest.h:81
Aws::EC2::Model::LaunchTemplatePlacementRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetAffinity
void SetAffinity(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:97
Aws::EC2::Model::LaunchTemplatePlacementRequest::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetHostResourceGroupArn
const Aws::String & GetHostResourceGroupArn() const
Definition: LaunchTemplatePlacementRequest.h:290
Aws::EC2::Model::LaunchTemplatePlacementRequest::SpreadDomainHasBeenSet
bool SpreadDomainHasBeenSet() const
Definition: LaunchTemplatePlacementRequest.h:252
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithAffinity
LaunchTemplatePlacementRequest & WithAffinity(const char *value)
Definition: LaunchTemplatePlacementRequest.h:122
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetGroupName
void SetGroupName(const char *value)
Definition: LaunchTemplatePlacementRequest.h:148
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetHostResourceGroupArn
void SetHostResourceGroupArn(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:311
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchTemplatePlacementRequest::LaunchTemplatePlacementRequest
LaunchTemplatePlacementRequest()
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetHostId
void SetHostId(const char *value)
Definition: LaunchTemplatePlacementRequest.h:189
Aws::EC2::Model::LaunchTemplatePlacementRequest
Definition: LaunchTemplatePlacementRequest.h:33
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetPartitionNumber
void SetPartitionNumber(int value)
Definition: LaunchTemplatePlacementRequest.h:358
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithGroupName
LaunchTemplatePlacementRequest & WithGroupName(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:153
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetTenancy
const Tenancy & GetTenancy() const
Definition: LaunchTemplatePlacementRequest.h:211
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithHostId
LaunchTemplatePlacementRequest & WithHostId(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:194
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithAvailabilityZone
LaunchTemplatePlacementRequest & WithAvailabilityZone(const Aws::String &value)
Definition: LaunchTemplatePlacementRequest.h:71
Aws::EC2::Model::LaunchTemplatePlacementRequest::WithSpreadDomain
LaunchTemplatePlacementRequest & WithSpreadDomain(const char *value)
Definition: LaunchTemplatePlacementRequest.h:282
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetHostId
void SetHostId(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:184
Aws::EC2::Model::LaunchTemplatePlacementRequest::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: LaunchTemplatePlacementRequest.h:61
Aws::EC2::Model::LaunchTemplatePlacementRequest::GetHostId
const Aws::String & GetHostId() const
Definition: LaunchTemplatePlacementRequest.h:169