AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LaunchTemplatePlacementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/Tenancy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API LaunchTemplatePlacementRequest() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
44 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
45 template <typename AvailabilityZoneT = Aws::String>
46 void SetAvailabilityZone(AvailabilityZoneT&& value) {
47 m_availabilityZoneHasBeenSet = true;
48 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
49 }
50 template <typename AvailabilityZoneT = Aws::String>
52 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
64 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
65 template <typename AvailabilityZoneIdT = Aws::String>
66 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
67 m_availabilityZoneIdHasBeenSet = true;
68 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
69 }
70 template <typename AvailabilityZoneIdT = Aws::String>
72 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetAffinity() const { return m_affinity; }
82 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
83 template <typename AffinityT = Aws::String>
84 void SetAffinity(AffinityT&& value) {
85 m_affinityHasBeenSet = true;
86 m_affinity = std::forward<AffinityT>(value);
87 }
88 template <typename AffinityT = Aws::String>
90 SetAffinity(std::forward<AffinityT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetGroupName() const { return m_groupName; }
100 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
101 template <typename GroupNameT = Aws::String>
102 void SetGroupName(GroupNameT&& value) {
103 m_groupNameHasBeenSet = true;
104 m_groupName = std::forward<GroupNameT>(value);
105 }
106 template <typename GroupNameT = Aws::String>
108 SetGroupName(std::forward<GroupNameT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetHostId() const { return m_hostId; }
118 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
119 template <typename HostIdT = Aws::String>
120 void SetHostId(HostIdT&& value) {
121 m_hostIdHasBeenSet = true;
122 m_hostId = std::forward<HostIdT>(value);
123 }
124 template <typename HostIdT = Aws::String>
126 SetHostId(std::forward<HostIdT>(value));
127 return *this;
128 }
130
132
136 inline Tenancy GetTenancy() const { return m_tenancy; }
137 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
138 inline void SetTenancy(Tenancy value) {
139 m_tenancyHasBeenSet = true;
140 m_tenancy = value;
141 }
143 SetTenancy(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetSpreadDomain() const { return m_spreadDomain; }
153 inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
154 template <typename SpreadDomainT = Aws::String>
155 void SetSpreadDomain(SpreadDomainT&& value) {
156 m_spreadDomainHasBeenSet = true;
157 m_spreadDomain = std::forward<SpreadDomainT>(value);
158 }
159 template <typename SpreadDomainT = Aws::String>
161 SetSpreadDomain(std::forward<SpreadDomainT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::String& GetHostResourceGroupArn() const { return m_hostResourceGroupArn; }
173 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
174 template <typename HostResourceGroupArnT = Aws::String>
175 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) {
176 m_hostResourceGroupArnHasBeenSet = true;
177 m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value);
178 }
179 template <typename HostResourceGroupArnT = Aws::String>
181 SetHostResourceGroupArn(std::forward<HostResourceGroupArnT>(value));
182 return *this;
183 }
185
187
191 inline int GetPartitionNumber() const { return m_partitionNumber; }
192 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
193 inline void SetPartitionNumber(int value) {
194 m_partitionNumberHasBeenSet = true;
195 m_partitionNumber = value;
196 }
198 SetPartitionNumber(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetGroupId() const { return m_groupId; }
209 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
210 template <typename GroupIdT = Aws::String>
211 void SetGroupId(GroupIdT&& value) {
212 m_groupIdHasBeenSet = true;
213 m_groupId = std::forward<GroupIdT>(value);
214 }
215 template <typename GroupIdT = Aws::String>
217 SetGroupId(std::forward<GroupIdT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_availabilityZone;
223
224 Aws::String m_availabilityZoneId;
225
226 Aws::String m_affinity;
227
228 Aws::String m_groupName;
229
230 Aws::String m_hostId;
231
232 Tenancy m_tenancy{Tenancy::NOT_SET};
233
234 Aws::String m_spreadDomain;
235
236 Aws::String m_hostResourceGroupArn;
237
238 int m_partitionNumber{0};
239
240 Aws::String m_groupId;
241 bool m_availabilityZoneHasBeenSet = false;
242 bool m_availabilityZoneIdHasBeenSet = false;
243 bool m_affinityHasBeenSet = false;
244 bool m_groupNameHasBeenSet = false;
245 bool m_hostIdHasBeenSet = false;
246 bool m_tenancyHasBeenSet = false;
247 bool m_spreadDomainHasBeenSet = false;
248 bool m_hostResourceGroupArnHasBeenSet = false;
249 bool m_partitionNumberHasBeenSet = false;
250 bool m_groupIdHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace EC2
255} // namespace Aws
LaunchTemplatePlacementRequest & WithTenancy(Tenancy value)
LaunchTemplatePlacementRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
LaunchTemplatePlacementRequest & WithGroupName(GroupNameT &&value)
LaunchTemplatePlacementRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API LaunchTemplatePlacementRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplatePlacementRequest & WithPartitionNumber(int value)
LaunchTemplatePlacementRequest & WithGroupId(GroupIdT &&value)
LaunchTemplatePlacementRequest & WithSpreadDomain(SpreadDomainT &&value)
LaunchTemplatePlacementRequest & WithHostId(HostIdT &&value)
LaunchTemplatePlacementRequest & WithHostResourceGroupArn(HostResourceGroupArnT &&value)
LaunchTemplatePlacementRequest & WithAffinity(AffinityT &&value)
AWS_EC2_API LaunchTemplatePlacementRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream