AWS SDK for C++  1.9.129
AWS SDK for C++
CreatePlacementGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreatePlacementGroup"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline CreatePlacementGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
79  inline const Aws::String& GetGroupName() const{ return m_groupName; }
80 
85  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
86 
91  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
92 
97  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
98 
103  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
104 
109  inline CreatePlacementGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
110 
115  inline CreatePlacementGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
116 
121  inline CreatePlacementGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
122 
123 
127  inline const PlacementStrategy& GetStrategy() const{ return m_strategy; }
128 
132  inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
133 
137  inline void SetStrategy(const PlacementStrategy& value) { m_strategyHasBeenSet = true; m_strategy = value; }
138 
142  inline void SetStrategy(PlacementStrategy&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
143 
147  inline CreatePlacementGroupRequest& WithStrategy(const PlacementStrategy& value) { SetStrategy(value); return *this;}
148 
152  inline CreatePlacementGroupRequest& WithStrategy(PlacementStrategy&& value) { SetStrategy(std::move(value)); return *this;}
153 
154 
159  inline int GetPartitionCount() const{ return m_partitionCount; }
160 
165  inline bool PartitionCountHasBeenSet() const { return m_partitionCountHasBeenSet; }
166 
171  inline void SetPartitionCount(int value) { m_partitionCountHasBeenSet = true; m_partitionCount = value; }
172 
177  inline CreatePlacementGroupRequest& WithPartitionCount(int value) { SetPartitionCount(value); return *this;}
178 
179 
183  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
184 
188  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
189 
193  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
194 
198  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
199 
203  inline CreatePlacementGroupRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
204 
208  inline CreatePlacementGroupRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
209 
213  inline CreatePlacementGroupRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
214 
218  inline CreatePlacementGroupRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
219 
220  private:
221 
222  bool m_dryRun;
223  bool m_dryRunHasBeenSet;
224 
225  Aws::String m_groupName;
226  bool m_groupNameHasBeenSet;
227 
228  PlacementStrategy m_strategy;
229  bool m_strategyHasBeenSet;
230 
231  int m_partitionCount;
232  bool m_partitionCountHasBeenSet;
233 
234  Aws::Vector<TagSpecification> m_tagSpecifications;
235  bool m_tagSpecificationsHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace EC2
240 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::CreatePlacementGroupRequest::WithDryRun
CreatePlacementGroupRequest & WithDryRun(bool value)
Definition: CreatePlacementGroupRequest.h:72
Aws::EC2::Model::PlacementStrategy
PlacementStrategy
Definition: PlacementStrategy.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreatePlacementGroupRequest::WithGroupName
CreatePlacementGroupRequest & WithGroupName(Aws::String &&value)
Definition: CreatePlacementGroupRequest.h:115
Aws::EC2::Model::CreatePlacementGroupRequest::WithPartitionCount
CreatePlacementGroupRequest & WithPartitionCount(int value)
Definition: CreatePlacementGroupRequest.h:177
Aws::EC2::Model::CreatePlacementGroupRequest::SetPartitionCount
void SetPartitionCount(int value)
Definition: CreatePlacementGroupRequest.h:171
Aws::EC2::Model::CreatePlacementGroupRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: CreatePlacementGroupRequest.h:79
Aws::EC2::Model::CreatePlacementGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePlacementGroupRequest.h:33
PlacementStrategy.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreatePlacementGroupRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreatePlacementGroupRequest.h:198
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreatePlacementGroupRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: CreatePlacementGroupRequest.h:97
AWSVector.h
Aws::EC2::Model::CreatePlacementGroupRequest::WithGroupName
CreatePlacementGroupRequest & WithGroupName(const Aws::String &value)
Definition: CreatePlacementGroupRequest.h:109
Aws::EC2::Model::CreatePlacementGroupRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreatePlacementGroupRequest.h:56
Aws::EC2::Model::CreatePlacementGroupRequest::StrategyHasBeenSet
bool StrategyHasBeenSet() const
Definition: CreatePlacementGroupRequest.h:132
Aws::EC2::Model::CreatePlacementGroupRequest::WithGroupName
CreatePlacementGroupRequest & WithGroupName(const char *value)
Definition: CreatePlacementGroupRequest.h:121
Aws::EC2::Model::CreatePlacementGroupRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: CreatePlacementGroupRequest.h:85
Aws::EC2::Model::CreatePlacementGroupRequest::SetStrategy
void SetStrategy(PlacementStrategy &&value)
Definition: CreatePlacementGroupRequest.h:142
Aws::EC2::Model::CreatePlacementGroupRequest::WithStrategy
CreatePlacementGroupRequest & WithStrategy(PlacementStrategy &&value)
Definition: CreatePlacementGroupRequest.h:152
EC2Request.h
Aws::EC2::Model::CreatePlacementGroupRequest::GetStrategy
const PlacementStrategy & GetStrategy() const
Definition: CreatePlacementGroupRequest.h:127
Aws::EC2::Model::CreatePlacementGroupRequest::AddTagSpecifications
CreatePlacementGroupRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreatePlacementGroupRequest.h:218
AWSString.h
Aws::EC2::Model::CreatePlacementGroupRequest::WithTagSpecifications
CreatePlacementGroupRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreatePlacementGroupRequest.h:203
Aws::EC2::Model::CreatePlacementGroupRequest::GetDryRun
bool GetDryRun() const
Definition: CreatePlacementGroupRequest.h:48
Aws::EC2::Model::CreatePlacementGroupRequest::GetPartitionCount
int GetPartitionCount() const
Definition: CreatePlacementGroupRequest.h:159
Aws::EC2::Model::CreatePlacementGroupRequest
Definition: CreatePlacementGroupRequest.h:25
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreatePlacementGroupRequest::WithStrategy
CreatePlacementGroupRequest & WithStrategy(const PlacementStrategy &value)
Definition: CreatePlacementGroupRequest.h:147
Aws::EC2::Model::CreatePlacementGroupRequest::WithTagSpecifications
CreatePlacementGroupRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreatePlacementGroupRequest.h:208
Aws::EC2::Model::CreatePlacementGroupRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: CreatePlacementGroupRequest.h:91
Aws::EC2::Model::CreatePlacementGroupRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreatePlacementGroupRequest.h:193
Aws::EC2::Model::CreatePlacementGroupRequest::PartitionCountHasBeenSet
bool PartitionCountHasBeenSet() const
Definition: CreatePlacementGroupRequest.h:165
Aws::EC2::Model::CreatePlacementGroupRequest::CreatePlacementGroupRequest
CreatePlacementGroupRequest()
Aws::EC2::Model::CreatePlacementGroupRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreatePlacementGroupRequest.h:183
Aws::EC2::Model::CreatePlacementGroupRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreatePlacementGroupRequest.h:188
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreatePlacementGroupRequest::SetGroupName
void SetGroupName(const char *value)
Definition: CreatePlacementGroupRequest.h:103
Aws::EC2::Model::CreatePlacementGroupRequest::AddTagSpecifications
CreatePlacementGroupRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreatePlacementGroupRequest.h:213
Aws::EC2::Model::CreatePlacementGroupRequest::SetStrategy
void SetStrategy(const PlacementStrategy &value)
Definition: CreatePlacementGroupRequest.h:137
Aws::EC2::Model::CreatePlacementGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreatePlacementGroupRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreatePlacementGroupRequest.h:64
Aws::EC2::Model::CreatePlacementGroupRequest::SerializePayload
Aws::String SerializePayload() const override