AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplatePlacement.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:
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
47 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
48 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
49 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
50 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
51 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
52 inline LaunchTemplatePlacement& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
53 inline LaunchTemplatePlacement& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
54 inline LaunchTemplatePlacement& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
56
58
61 inline const Aws::String& GetAffinity() const{ return m_affinity; }
62 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
63 inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; }
64 inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
65 inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); }
66 inline LaunchTemplatePlacement& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;}
67 inline LaunchTemplatePlacement& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;}
68 inline LaunchTemplatePlacement& WithAffinity(const char* value) { SetAffinity(value); return *this;}
70
72
75 inline const Aws::String& GetGroupName() const{ return m_groupName; }
76 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
77 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
78 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
79 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
80 inline LaunchTemplatePlacement& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
81 inline LaunchTemplatePlacement& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
82 inline LaunchTemplatePlacement& WithGroupName(const char* value) { SetGroupName(value); return *this;}
84
86
89 inline const Aws::String& GetHostId() const{ return m_hostId; }
90 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
91 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
92 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
93 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
94 inline LaunchTemplatePlacement& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
95 inline LaunchTemplatePlacement& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
96 inline LaunchTemplatePlacement& WithHostId(const char* value) { SetHostId(value); return *this;}
98
100
104 inline const Tenancy& GetTenancy() const{ return m_tenancy; }
105 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
106 inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
107 inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
108 inline LaunchTemplatePlacement& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
109 inline LaunchTemplatePlacement& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; }
117 inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
118 inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; }
119 inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); }
120 inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); }
121 inline LaunchTemplatePlacement& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;}
122 inline LaunchTemplatePlacement& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;}
123 inline LaunchTemplatePlacement& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;}
125
127
130 inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
131 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
132 inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
133 inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
134 inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
136 inline LaunchTemplatePlacement& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
137 inline LaunchTemplatePlacement& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
139
141
145 inline int GetPartitionNumber() const{ return m_partitionNumber; }
146 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
147 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
148 inline LaunchTemplatePlacement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
150
152
156 inline const Aws::String& GetGroupId() const{ return m_groupId; }
157 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
158 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
159 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
160 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
161 inline LaunchTemplatePlacement& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
162 inline LaunchTemplatePlacement& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
163 inline LaunchTemplatePlacement& WithGroupId(const char* value) { SetGroupId(value); return *this;}
165 private:
166
167 Aws::String m_availabilityZone;
168 bool m_availabilityZoneHasBeenSet = false;
169
170 Aws::String m_affinity;
171 bool m_affinityHasBeenSet = false;
172
173 Aws::String m_groupName;
174 bool m_groupNameHasBeenSet = false;
175
176 Aws::String m_hostId;
177 bool m_hostIdHasBeenSet = false;
178
179 Tenancy m_tenancy;
180 bool m_tenancyHasBeenSet = false;
181
182 Aws::String m_spreadDomain;
183 bool m_spreadDomainHasBeenSet = false;
184
185 Aws::String m_hostResourceGroupArn;
186 bool m_hostResourceGroupArnHasBeenSet = false;
187
188 int m_partitionNumber;
189 bool m_partitionNumberHasBeenSet = false;
190
191 Aws::String m_groupId;
192 bool m_groupIdHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace EC2
197} // namespace Aws
LaunchTemplatePlacement & WithTenancy(const Tenancy &value)
LaunchTemplatePlacement & WithHostResourceGroupArn(const Aws::String &value)
LaunchTemplatePlacement & WithAffinity(const Aws::String &value)
LaunchTemplatePlacement & WithHostResourceGroupArn(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplatePlacement & WithSpreadDomain(const Aws::String &value)
LaunchTemplatePlacement & WithTenancy(Tenancy &&value)
AWS_EC2_API LaunchTemplatePlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplatePlacement & WithHostId(Aws::String &&value)
LaunchTemplatePlacement & WithGroupId(const Aws::String &value)
LaunchTemplatePlacement & WithSpreadDomain(const char *value)
LaunchTemplatePlacement & WithAffinity(Aws::String &&value)
LaunchTemplatePlacement & WithGroupName(const char *value)
AWS_EC2_API LaunchTemplatePlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplatePlacement & WithAvailabilityZone(Aws::String &&value)
LaunchTemplatePlacement & WithGroupName(Aws::String &&value)
LaunchTemplatePlacement & WithAffinity(const char *value)
LaunchTemplatePlacement & WithHostId(const char *value)
LaunchTemplatePlacement & WithSpreadDomain(Aws::String &&value)
LaunchTemplatePlacement & WithGroupName(const Aws::String &value)
LaunchTemplatePlacement & WithHostResourceGroupArn(const char *value)
void SetHostResourceGroupArn(const Aws::String &value)
LaunchTemplatePlacement & WithHostId(const Aws::String &value)
LaunchTemplatePlacement & WithAvailabilityZone(const Aws::String &value)
LaunchTemplatePlacement & WithAvailabilityZone(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplatePlacement & WithPartitionNumber(int value)
LaunchTemplatePlacement & WithGroupId(const char *value)
LaunchTemplatePlacement & WithGroupId(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream