AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
35 AWS_EC2_API LaunchTemplatePlacement() = 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
47 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
48 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
49 template<typename AvailabilityZoneT = Aws::String>
50 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
51 template<typename AvailabilityZoneT = Aws::String>
52 LaunchTemplatePlacement& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAffinity() const { return m_affinity; }
60 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
61 template<typename AffinityT = Aws::String>
62 void SetAffinity(AffinityT&& value) { m_affinityHasBeenSet = true; m_affinity = std::forward<AffinityT>(value); }
63 template<typename AffinityT = Aws::String>
64 LaunchTemplatePlacement& WithAffinity(AffinityT&& value) { SetAffinity(std::forward<AffinityT>(value)); return *this;}
66
68
71 inline const Aws::String& GetGroupName() const { return m_groupName; }
72 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
73 template<typename GroupNameT = Aws::String>
74 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
75 template<typename GroupNameT = Aws::String>
76 LaunchTemplatePlacement& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetHostId() const { return m_hostId; }
84 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
85 template<typename HostIdT = Aws::String>
86 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
87 template<typename HostIdT = Aws::String>
88 LaunchTemplatePlacement& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
90
92
96 inline Tenancy GetTenancy() const { return m_tenancy; }
97 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
98 inline void SetTenancy(Tenancy value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
99 inline LaunchTemplatePlacement& WithTenancy(Tenancy value) { SetTenancy(value); return *this;}
101
103
106 inline const Aws::String& GetSpreadDomain() const { return m_spreadDomain; }
107 inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; }
108 template<typename SpreadDomainT = Aws::String>
109 void SetSpreadDomain(SpreadDomainT&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::forward<SpreadDomainT>(value); }
110 template<typename SpreadDomainT = Aws::String>
111 LaunchTemplatePlacement& WithSpreadDomain(SpreadDomainT&& value) { SetSpreadDomain(std::forward<SpreadDomainT>(value)); return *this;}
113
115
118 inline const Aws::String& GetHostResourceGroupArn() const { return m_hostResourceGroupArn; }
119 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
120 template<typename HostResourceGroupArnT = Aws::String>
121 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value); }
122 template<typename HostResourceGroupArnT = Aws::String>
123 LaunchTemplatePlacement& WithHostResourceGroupArn(HostResourceGroupArnT&& value) { SetHostResourceGroupArn(std::forward<HostResourceGroupArnT>(value)); return *this;}
125
127
131 inline int GetPartitionNumber() const { return m_partitionNumber; }
132 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
133 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
134 inline LaunchTemplatePlacement& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
136
138
142 inline const Aws::String& GetGroupId() const { return m_groupId; }
143 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
144 template<typename GroupIdT = Aws::String>
145 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
146 template<typename GroupIdT = Aws::String>
147 LaunchTemplatePlacement& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
149 private:
150
151 Aws::String m_availabilityZone;
152 bool m_availabilityZoneHasBeenSet = false;
153
154 Aws::String m_affinity;
155 bool m_affinityHasBeenSet = false;
156
157 Aws::String m_groupName;
158 bool m_groupNameHasBeenSet = false;
159
160 Aws::String m_hostId;
161 bool m_hostIdHasBeenSet = false;
162
163 Tenancy m_tenancy{Tenancy::NOT_SET};
164 bool m_tenancyHasBeenSet = false;
165
166 Aws::String m_spreadDomain;
167 bool m_spreadDomainHasBeenSet = false;
168
169 Aws::String m_hostResourceGroupArn;
170 bool m_hostResourceGroupArnHasBeenSet = false;
171
172 int m_partitionNumber{0};
173 bool m_partitionNumberHasBeenSet = false;
174
175 Aws::String m_groupId;
176 bool m_groupIdHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace EC2
181} // namespace Aws
LaunchTemplatePlacement & WithGroupName(GroupNameT &&value)
LaunchTemplatePlacement & WithHostId(HostIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchTemplatePlacement & WithAffinity(AffinityT &&value)
LaunchTemplatePlacement & WithSpreadDomain(SpreadDomainT &&value)
AWS_EC2_API LaunchTemplatePlacement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API LaunchTemplatePlacement()=default
LaunchTemplatePlacement & WithTenancy(Tenancy value)
AWS_EC2_API LaunchTemplatePlacement(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAvailabilityZone(AvailabilityZoneT &&value)
LaunchTemplatePlacement & WithHostResourceGroupArn(HostResourceGroupArnT &&value)
LaunchTemplatePlacement & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetHostResourceGroupArn(HostResourceGroupArnT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LaunchTemplatePlacement & WithPartitionNumber(int value)
LaunchTemplatePlacement & WithGroupId(GroupIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream