AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
LaunchTemplatePlacementRequest.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 LaunchTemplatePlacementRequest() = default;
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
49 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
50 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
51 template<typename AvailabilityZoneT = Aws::String>
52 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
53 template<typename AvailabilityZoneT = Aws::String>
54 LaunchTemplatePlacementRequest& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
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) { m_availabilityZoneIdHasBeenSet = true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
67 template<typename AvailabilityZoneIdT = Aws::String>
68 LaunchTemplatePlacementRequest& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) { SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetAffinity() const { return m_affinity; }
76 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
77 template<typename AffinityT = Aws::String>
78 void SetAffinity(AffinityT&& value) { m_affinityHasBeenSet = true; m_affinity = std::forward<AffinityT>(value); }
79 template<typename AffinityT = Aws::String>
80 LaunchTemplatePlacementRequest& WithAffinity(AffinityT&& value) { SetAffinity(std::forward<AffinityT>(value)); return *this;}
82
84
87 inline const Aws::String& GetGroupName() const { return m_groupName; }
88 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
89 template<typename GroupNameT = Aws::String>
90 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
91 template<typename GroupNameT = Aws::String>
92 LaunchTemplatePlacementRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetHostId() const { return m_hostId; }
100 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
101 template<typename HostIdT = Aws::String>
102 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
103 template<typename HostIdT = Aws::String>
104 LaunchTemplatePlacementRequest& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
106
108
112 inline Tenancy GetTenancy() const { return m_tenancy; }
113 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
114 inline void SetTenancy(Tenancy value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
115 inline LaunchTemplatePlacementRequest& WithTenancy(Tenancy value) { SetTenancy(value); return *this;}
117
119
122 inline const Aws::String& GetSpreadDomain() const { return m_spreadDomain; }
123 inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
124 template<typename SpreadDomainT = Aws::String>
125 void SetSpreadDomain(SpreadDomainT&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::forward<SpreadDomainT>(value); }
126 template<typename SpreadDomainT = Aws::String>
127 LaunchTemplatePlacementRequest& WithSpreadDomain(SpreadDomainT&& value) { SetSpreadDomain(std::forward<SpreadDomainT>(value)); return *this;}
129
131
136 inline const Aws::String& GetHostResourceGroupArn() const { return m_hostResourceGroupArn; }
137 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
138 template<typename HostResourceGroupArnT = Aws::String>
139 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value); }
140 template<typename HostResourceGroupArnT = Aws::String>
141 LaunchTemplatePlacementRequest& WithHostResourceGroupArn(HostResourceGroupArnT&& value) { SetHostResourceGroupArn(std::forward<HostResourceGroupArnT>(value)); return *this;}
143
145
149 inline int GetPartitionNumber() const { return m_partitionNumber; }
150 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
151 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
154
156
160 inline const Aws::String& GetGroupId() const { return m_groupId; }
161 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
162 template<typename GroupIdT = Aws::String>
163 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
164 template<typename GroupIdT = Aws::String>
165 LaunchTemplatePlacementRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
167 private:
168
169 Aws::String m_availabilityZone;
170 bool m_availabilityZoneHasBeenSet = false;
171
172 Aws::String m_availabilityZoneId;
173 bool m_availabilityZoneIdHasBeenSet = false;
174
175 Aws::String m_affinity;
176 bool m_affinityHasBeenSet = false;
177
178 Aws::String m_groupName;
179 bool m_groupNameHasBeenSet = false;
180
181 Aws::String m_hostId;
182 bool m_hostIdHasBeenSet = false;
183
184 Tenancy m_tenancy{Tenancy::NOT_SET};
185 bool m_tenancyHasBeenSet = false;
186
187 Aws::String m_spreadDomain;
188 bool m_spreadDomainHasBeenSet = false;
189
190 Aws::String m_hostResourceGroupArn;
191 bool m_hostResourceGroupArnHasBeenSet = false;
192
193 int m_partitionNumber{0};
194 bool m_partitionNumberHasBeenSet = false;
195
196 Aws::String m_groupId;
197 bool m_groupIdHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace EC2
202} // 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