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>
54 template<
typename AvailabilityZoneIdT = Aws::String>
55 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) { m_availabilityZoneIdHasBeenSet =
true; m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value); }
56 template<
typename AvailabilityZoneIdT = Aws::String>
70 template<
typename AffinityT = Aws::String>
71 void SetAffinity(AffinityT&& value) { m_affinityHasBeenSet =
true; m_affinity = std::forward<AffinityT>(value); }
72 template<
typename AffinityT = Aws::String>
83 template<
typename GroupNameT = Aws::String>
84 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet =
true; m_groupName = std::forward<GroupNameT>(value); }
85 template<
typename GroupNameT = Aws::String>
98 inline void SetPartitionNumber(
int value) { m_partitionNumberHasBeenSet =
true; m_partitionNumber = value; }
112 template<
typename HostIdT = Aws::String>
113 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet =
true; m_hostId = std::forward<HostIdT>(value); }
114 template<
typename HostIdT = Aws::String>
141 template<
typename SpreadDomainT = Aws::String>
142 void SetSpreadDomain(SpreadDomainT&& value) { m_spreadDomainHasBeenSet =
true; m_spreadDomain = std::forward<SpreadDomainT>(value); }
143 template<
typename SpreadDomainT = Aws::String>
156 template<
typename HostResourceGroupArnT = Aws::String>
157 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) { m_hostResourceGroupArnHasBeenSet =
true; m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value); }
158 template<
typename HostResourceGroupArnT = Aws::String>
169 template<
typename GroupIdT = Aws::String>
170 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet =
true; m_groupId = std::forward<GroupIdT>(value); }
171 template<
typename GroupIdT = Aws::String>
186 template<
typename AvailabilityZoneT = Aws::String>
187 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
188 template<
typename AvailabilityZoneT = Aws::String>
194 bool m_availabilityZoneIdHasBeenSet =
false;
197 bool m_affinityHasBeenSet =
false;
200 bool m_groupNameHasBeenSet =
false;
202 int m_partitionNumber{0};
203 bool m_partitionNumberHasBeenSet =
false;
206 bool m_hostIdHasBeenSet =
false;
209 bool m_tenancyHasBeenSet =
false;
212 bool m_spreadDomainHasBeenSet =
false;
215 bool m_hostResourceGroupArnHasBeenSet =
false;
218 bool m_groupIdHasBeenSet =
false;
221 bool m_availabilityZoneHasBeenSet =
false;
const Aws::String & GetSpreadDomain() const
bool HostResourceGroupArnHasBeenSet() const
const Aws::String & GetAffinity() const
bool PartitionNumberHasBeenSet() const
void SetSpreadDomain(SpreadDomainT &&value)
bool TenancyHasBeenSet() const
Placement & WithGroupId(GroupIdT &&value)
AWS_EC2_API Placement()=default
void SetTenancy(Tenancy value)
void SetPartitionNumber(int value)
Placement & WithHostResourceGroupArn(HostResourceGroupArnT &&value)
bool AvailabilityZoneIdHasBeenSet() const
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetGroupId(GroupIdT &&value)
Placement & WithGroupName(GroupNameT &&value)
const Aws::String & GetHostResourceGroupArn() const
AWS_EC2_API Placement & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Placement & WithHostId(HostIdT &&value)
AWS_EC2_API Placement(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SpreadDomainHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetAvailabilityZoneId() const
Placement & WithAffinity(AffinityT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAvailabilityZone() const
void SetHostId(HostIdT &&value)
Placement & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Placement & WithSpreadDomain(SpreadDomainT &&value)
int GetPartitionNumber() const
bool AvailabilityZoneHasBeenSet() const
const Aws::String & GetGroupId() const
const Aws::String & GetGroupName() const
bool AffinityHasBeenSet() const
void SetGroupName(GroupNameT &&value)
bool GroupIdHasBeenSet() const
void SetHostResourceGroupArn(HostResourceGroupArnT &&value)
Placement & WithTenancy(Tenancy value)
void SetAffinity(AffinityT &&value)
const Aws::String & GetHostId() const
bool GroupNameHasBeenSet() const
Placement & WithAvailabilityZone(AvailabilityZoneT &&value)
Placement & WithPartitionNumber(int value)
bool HostIdHasBeenSet() const
Tenancy GetTenancy() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream