AWS SDK for C++  1.9.66
AWS SDK for C++
PlacementGroup.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <aws/ec2/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
29 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
49  inline const Aws::String& GetGroupName() const{ return m_groupName; }
50 
54  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
55 
59  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
60 
64  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
65 
69  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
70 
74  inline PlacementGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
75 
79  inline PlacementGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
80 
84  inline PlacementGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
85 
86 
90  inline const PlacementGroupState& GetState() const{ return m_state; }
91 
95  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
96 
100  inline void SetState(const PlacementGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
101 
105  inline void SetState(PlacementGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
106 
110  inline PlacementGroup& WithState(const PlacementGroupState& value) { SetState(value); return *this;}
111 
115  inline PlacementGroup& WithState(PlacementGroupState&& value) { SetState(std::move(value)); return *this;}
116 
117 
121  inline const PlacementStrategy& GetStrategy() const{ return m_strategy; }
122 
126  inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
127 
131  inline void SetStrategy(const PlacementStrategy& value) { m_strategyHasBeenSet = true; m_strategy = value; }
132 
136  inline void SetStrategy(PlacementStrategy&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
137 
141  inline PlacementGroup& WithStrategy(const PlacementStrategy& value) { SetStrategy(value); return *this;}
142 
146  inline PlacementGroup& WithStrategy(PlacementStrategy&& value) { SetStrategy(std::move(value)); return *this;}
147 
148 
153  inline int GetPartitionCount() const{ return m_partitionCount; }
154 
159  inline bool PartitionCountHasBeenSet() const { return m_partitionCountHasBeenSet; }
160 
165  inline void SetPartitionCount(int value) { m_partitionCountHasBeenSet = true; m_partitionCount = value; }
166 
171  inline PlacementGroup& WithPartitionCount(int value) { SetPartitionCount(value); return *this;}
172 
173 
177  inline const Aws::String& GetGroupId() const{ return m_groupId; }
178 
182  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
183 
187  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
188 
192  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
193 
197  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
198 
202  inline PlacementGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
203 
207  inline PlacementGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
208 
212  inline PlacementGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
213 
214 
218  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
219 
223  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 
228  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
229 
233  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
234 
238  inline PlacementGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
239 
243  inline PlacementGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
244 
248  inline PlacementGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
249 
253  inline PlacementGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
254 
255  private:
256 
257  Aws::String m_groupName;
258  bool m_groupNameHasBeenSet;
259 
260  PlacementGroupState m_state;
261  bool m_stateHasBeenSet;
262 
263  PlacementStrategy m_strategy;
264  bool m_strategyHasBeenSet;
265 
266  int m_partitionCount;
267  bool m_partitionCountHasBeenSet;
268 
269  Aws::String m_groupId;
270  bool m_groupIdHasBeenSet;
271 
272  Aws::Vector<Tag> m_tags;
273  bool m_tagsHasBeenSet;
274  };
275 
276 } // namespace Model
277 } // namespace EC2
278 } // namespace Aws
Aws::EC2::Model::PlacementGroup::WithGroupId
PlacementGroup & WithGroupId(const char *value)
Definition: PlacementGroup.h:212
Aws::EC2::Model::PlacementGroup::WithGroupName
PlacementGroup & WithGroupName(Aws::String &&value)
Definition: PlacementGroup.h:79
Aws::EC2::Model::PlacementGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PlacementGroup::GetPartitionCount
int GetPartitionCount() const
Definition: PlacementGroup.h:153
Aws::EC2::Model::PlacementStrategy
PlacementStrategy
Definition: PlacementStrategy.h:17
Aws::EC2::Model::PlacementGroup::WithTags
PlacementGroup & WithTags(Aws::Vector< Tag > &&value)
Definition: PlacementGroup.h:243
Aws::EC2::Model::PlacementGroup::SetGroupId
void SetGroupId(const char *value)
Definition: PlacementGroup.h:197
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::PlacementGroup::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: PlacementGroup.h:54
Aws::EC2::Model::PlacementGroup::WithGroupId
PlacementGroup & WithGroupId(Aws::String &&value)
Definition: PlacementGroup.h:207
Aws::EC2::Model::PlacementGroup::SetPartitionCount
void SetPartitionCount(int value)
Definition: PlacementGroup.h:165
Aws::EC2::Model::PlacementGroup::SetStrategy
void SetStrategy(PlacementStrategy &&value)
Definition: PlacementGroup.h:136
Aws::EC2::Model::PlacementGroup::SetState
void SetState(PlacementGroupState &&value)
Definition: PlacementGroup.h:105
Aws::EC2::Model::PlacementGroupState
PlacementGroupState
Definition: PlacementGroupState.h:17
Aws::EC2::Model::PlacementGroup::WithTags
PlacementGroup & WithTags(const Aws::Vector< Tag > &value)
Definition: PlacementGroup.h:238
PlacementStrategy.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PlacementGroup::WithStrategy
PlacementGroup & WithStrategy(PlacementStrategy &&value)
Definition: PlacementGroup.h:146
Aws::EC2::Model::PlacementGroup::PlacementGroup
PlacementGroup()
Aws::EC2::Model::PlacementGroup::StateHasBeenSet
bool StateHasBeenSet() const
Definition: PlacementGroup.h:95
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::PlacementGroup::SetGroupName
void SetGroupName(const char *value)
Definition: PlacementGroup.h:69
Aws::EC2::Model::PlacementGroup::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: PlacementGroup.h:182
Aws::EC2::Model::PlacementGroup::WithStrategy
PlacementGroup & WithStrategy(const PlacementStrategy &value)
Definition: PlacementGroup.h:141
Aws::EC2::Model::PlacementGroup::WithGroupName
PlacementGroup & WithGroupName(const char *value)
Definition: PlacementGroup.h:84
AWSStreamFwd.h
Aws::EC2::Model::PlacementGroup::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: PlacementGroup.h:228
AWSVector.h
Tag.h
Aws::EC2::Model::PlacementGroup::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: PlacementGroup.h:187
Aws::EC2::Model::PlacementGroup::GetGroupId
const Aws::String & GetGroupId() const
Definition: PlacementGroup.h:177
Aws::EC2::Model::PlacementGroup::WithGroupId
PlacementGroup & WithGroupId(const Aws::String &value)
Definition: PlacementGroup.h:202
Aws::EC2::Model::PlacementGroup::GetGroupName
const Aws::String & GetGroupName() const
Definition: PlacementGroup.h:49
Aws::EC2::Model::PlacementGroup::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: PlacementGroup.h:64
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PlacementGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PlacementGroup::GetStrategy
const PlacementStrategy & GetStrategy() const
Definition: PlacementGroup.h:121
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PlacementGroup::PartitionCountHasBeenSet
bool PartitionCountHasBeenSet() const
Definition: PlacementGroup.h:159
Aws::EC2::Model::PlacementGroup::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: PlacementGroup.h:59
Aws::EC2::Model::PlacementGroup::GetState
const PlacementGroupState & GetState() const
Definition: PlacementGroup.h:90
Aws::EC2::Model::PlacementGroup::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: PlacementGroup.h:192
Aws::EC2::Model::PlacementGroup::SetState
void SetState(const PlacementGroupState &value)
Definition: PlacementGroup.h:100
Aws::EC2::Model::PlacementGroup::WithState
PlacementGroup & WithState(const PlacementGroupState &value)
Definition: PlacementGroup.h:110
AWSString.h
Aws::EC2::Model::PlacementGroup::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: PlacementGroup.h:233
Aws::EC2::Model::PlacementGroup::WithGroupName
PlacementGroup & WithGroupName(const Aws::String &value)
Definition: PlacementGroup.h:74
Aws::EC2::Model::PlacementGroup::SetStrategy
void SetStrategy(const PlacementStrategy &value)
Definition: PlacementGroup.h:131
Aws::EC2::Model::PlacementGroup::WithState
PlacementGroup & WithState(PlacementGroupState &&value)
Definition: PlacementGroup.h:115
Aws::EC2::Model::PlacementGroup
Definition: PlacementGroup.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PlacementGroup::AddTags
PlacementGroup & AddTags(const Tag &value)
Definition: PlacementGroup.h:248
Aws::EC2::Model::PlacementGroup::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: PlacementGroup.h:218
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PlacementGroup::AddTags
PlacementGroup & AddTags(Tag &&value)
Definition: PlacementGroup.h:253
Aws::EC2::Model::PlacementGroup::StrategyHasBeenSet
bool StrategyHasBeenSet() const
Definition: PlacementGroup.h:126
Aws::EC2::Model::PlacementGroup::operator=
PlacementGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EC2_EXPORTS.h
Aws::EC2::Model::PlacementGroup::PlacementGroup
PlacementGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PlacementGroup::WithPartitionCount
PlacementGroup & WithPartitionCount(int value)
Definition: PlacementGroup.h:171
PlacementGroupState.h
Aws::EC2::Model::PlacementGroup::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PlacementGroup.h:223