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/PlacementGroupState.h>
11#include <aws/ec2/model/PlacementStrategy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/SpreadLevel.h>
14#include <aws/ec2/model/Tag.h>
53 template<
typename GroupNameT = Aws::String>
54 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet =
true; m_groupName = std::forward<GroupNameT>(value); }
55 template<
typename GroupNameT = Aws::String>
86 inline void SetPartitionCount(
int value) { m_partitionCountHasBeenSet =
true; m_partitionCount = value; }
96 template<
typename GroupIdT = Aws::String>
97 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet =
true; m_groupId = std::forward<GroupIdT>(value); }
98 template<
typename GroupIdT = Aws::String>
108 template<
typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
110 template<
typename TagsT = Aws::Vector<Tag>>
112 template<
typename TagsT = Tag>
113 PlacementGroup&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
122 template<
typename GroupArnT = Aws::String>
123 void SetGroupArn(GroupArnT&& value) { m_groupArnHasBeenSet =
true; m_groupArn = std::forward<GroupArnT>(value); }
124 template<
typename GroupArnT = Aws::String>
141 bool m_groupNameHasBeenSet =
false;
144 bool m_stateHasBeenSet =
false;
147 bool m_strategyHasBeenSet =
false;
149 int m_partitionCount{0};
150 bool m_partitionCountHasBeenSet =
false;
153 bool m_groupIdHasBeenSet =
false;
156 bool m_tagsHasBeenSet =
false;
159 bool m_groupArnHasBeenSet =
false;
162 bool m_spreadLevelHasBeenSet =
false;
const Aws::String & GetGroupId() const
PlacementGroup & WithTags(TagsT &&value)
bool GroupArnHasBeenSet() const
void SetGroupId(GroupIdT &&value)
void SetSpreadLevel(SpreadLevel value)
PlacementGroupState GetState() const
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
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
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 & 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