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/PlacementGroupState.h>
12#include <aws/ec2/model/PlacementStrategy.h>
13#include <aws/ec2/model/SpreadLevel.h>
14#include <aws/ec2/model/Tag.h>
47 template <
typename GroupNameT = Aws::String>
49 m_groupNameHasBeenSet =
true;
50 m_groupName = std::forward<GroupNameT>(value);
52 template <
typename GroupNameT = Aws::String>
66 m_stateHasBeenSet =
true;
82 m_strategyHasBeenSet =
true;
99 m_partitionCountHasBeenSet =
true;
100 m_partitionCount = value;
114 template <
typename GroupIdT = Aws::String>
116 m_groupIdHasBeenSet =
true;
117 m_groupId = std::forward<GroupIdT>(value);
119 template <
typename GroupIdT = Aws::String>
132 template <
typename TagsT = Aws::Vector<Tag>>
134 m_tagsHasBeenSet =
true;
135 m_tags = std::forward<TagsT>(value);
137 template <
typename TagsT = Aws::Vector<Tag>>
139 SetTags(std::forward<TagsT>(value));
142 template <
typename TagsT = Tag>
144 m_tagsHasBeenSet =
true;
145 m_tags.emplace_back(std::forward<TagsT>(value));
156 template <
typename GroupArnT = Aws::String>
158 m_groupArnHasBeenSet =
true;
159 m_groupArn = std::forward<GroupArnT>(value);
161 template <
typename GroupArnT = Aws::String>
176 m_spreadLevelHasBeenSet =
true;
177 m_spreadLevel = value;
191 template <
typename LinkedGroupIdT = Aws::String>
193 m_linkedGroupIdHasBeenSet =
true;
194 m_linkedGroupId = std::forward<LinkedGroupIdT>(value);
196 template <
typename LinkedGroupIdT = Aws::String>
209 int m_partitionCount{0};
220 bool m_groupNameHasBeenSet =
false;
221 bool m_stateHasBeenSet =
false;
222 bool m_strategyHasBeenSet =
false;
223 bool m_partitionCountHasBeenSet =
false;
224 bool m_groupIdHasBeenSet =
false;
225 bool m_tagsHasBeenSet =
false;
226 bool m_groupArnHasBeenSet =
false;
227 bool m_spreadLevelHasBeenSet =
false;
228 bool m_linkedGroupIdHasBeenSet =
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
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
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 & AddTags(TagsT &&value)
AWS_EC2_API PlacementGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPartitionCount(int value)
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