7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/OperatorResponse.h>
12#include <aws/ec2/model/PlacementGroupState.h>
13#include <aws/ec2/model/PlacementStrategy.h>
14#include <aws/ec2/model/SpreadLevel.h>
15#include <aws/ec2/model/Tag.h>
48 template <
typename GroupNameT = Aws::String>
50 m_groupNameHasBeenSet =
true;
51 m_groupName = std::forward<GroupNameT>(value);
53 template <
typename GroupNameT = Aws::String>
67 m_stateHasBeenSet =
true;
83 m_strategyHasBeenSet =
true;
100 m_partitionCountHasBeenSet =
true;
101 m_partitionCount = value;
115 template <
typename GroupIdT = Aws::String>
117 m_groupIdHasBeenSet =
true;
118 m_groupId = std::forward<GroupIdT>(value);
120 template <
typename GroupIdT = Aws::String>
133 template <
typename TagsT = Aws::Vector<Tag>>
135 m_tagsHasBeenSet =
true;
136 m_tags = std::forward<TagsT>(value);
138 template <
typename TagsT = Aws::Vector<Tag>>
140 SetTags(std::forward<TagsT>(value));
143 template <
typename TagsT = Tag>
145 m_tagsHasBeenSet =
true;
146 m_tags.emplace_back(std::forward<TagsT>(value));
157 template <
typename GroupArnT = Aws::String>
159 m_groupArnHasBeenSet =
true;
160 m_groupArn = std::forward<GroupArnT>(value);
162 template <
typename GroupArnT = Aws::String>
177 m_spreadLevelHasBeenSet =
true;
178 m_spreadLevel = value;
192 template <
typename LinkedGroupIdT = Aws::String>
194 m_linkedGroupIdHasBeenSet =
true;
195 m_linkedGroupId = std::forward<LinkedGroupIdT>(value);
197 template <
typename LinkedGroupIdT = Aws::String>
210 template <
typename OperatorT = OperatorResponse>
212 m_operatorHasBeenSet =
true;
213 m_operator = std::forward<OperatorT>(value);
215 template <
typename OperatorT = OperatorResponse>
228 int m_partitionCount{0};
240 OperatorResponse m_operator;
241 bool m_groupNameHasBeenSet =
false;
242 bool m_stateHasBeenSet =
false;
243 bool m_strategyHasBeenSet =
false;
244 bool m_partitionCountHasBeenSet =
false;
245 bool m_groupIdHasBeenSet =
false;
246 bool m_tagsHasBeenSet =
false;
247 bool m_groupArnHasBeenSet =
false;
248 bool m_spreadLevelHasBeenSet =
false;
249 bool m_linkedGroupIdHasBeenSet =
false;
250 bool m_operatorHasBeenSet =
false;
const Aws::String & GetGroupId() const
PlacementGroup & WithTags(TagsT &&value)
bool GroupArnHasBeenSet() const
void SetGroupId(GroupIdT &&value)
void SetSpreadLevel(SpreadLevel value)
PlacementGroupState GetState() const
void SetLinkedGroupId(LinkedGroupIdT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool GroupNameHasBeenSet() const
bool PartitionCountHasBeenSet() const
PlacementGroup & WithGroupId(GroupIdT &&value)
int GetPartitionCount() const
AWS_EC2_API PlacementGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool LinkedGroupIdHasBeenSet() const
PlacementGroup & WithSpreadLevel(SpreadLevel value)
void SetState(PlacementGroupState value)
const Aws::String & GetGroupArn() const
bool GroupIdHasBeenSet() const
void SetOperator(OperatorT &&value)
bool StrategyHasBeenSet() const
void SetTags(TagsT &&value)
PlacementGroup & WithGroupArn(GroupArnT &&value)
void SetGroupArn(GroupArnT &&value)
bool StateHasBeenSet() const
const Aws::String & GetLinkedGroupId() const
SpreadLevel GetSpreadLevel() const
bool OperatorHasBeenSet() const
PlacementGroup & WithPartitionCount(int value)
PlacementGroup & WithGroupName(GroupNameT &&value)
bool SpreadLevelHasBeenSet() const
void SetStrategy(PlacementStrategy value)
AWS_EC2_API PlacementGroup()=default
void SetGroupName(GroupNameT &&value)
PlacementGroup & WithStrategy(PlacementStrategy value)
const Aws::String & GetGroupName() const
PlacementGroup & WithState(PlacementGroupState value)
PlacementStrategy GetStrategy() const
PlacementGroup & WithLinkedGroupId(LinkedGroupIdT &&value)
PlacementGroup & WithOperator(OperatorT &&value)
PlacementGroup & AddTags(TagsT &&value)
AWS_EC2_API PlacementGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPartitionCount(int value)
const OperatorResponse & GetOperator() const
bool TagsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream