AWS SDK for C++  1.9.15
AWS SDK for C++
ModifyInstancePlacementRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ModifyInstancePlacement"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Affinity& GetAffinity() const{ return m_affinity; }
45 
49  inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
50 
54  inline void SetAffinity(const Affinity& value) { m_affinityHasBeenSet = true; m_affinity = value; }
55 
59  inline void SetAffinity(Affinity&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
60 
64  inline ModifyInstancePlacementRequest& WithAffinity(const Affinity& value) { SetAffinity(value); return *this;}
65 
69  inline ModifyInstancePlacementRequest& WithAffinity(Affinity&& value) { SetAffinity(std::move(value)); return *this;}
70 
71 
79  inline const Aws::String& GetGroupName() const{ return m_groupName; }
80 
88  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
89 
97  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
98 
106  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
107 
115  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
116 
124  inline ModifyInstancePlacementRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
125 
133  inline ModifyInstancePlacementRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
134 
142  inline ModifyInstancePlacementRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
143 
144 
148  inline const Aws::String& GetHostId() const{ return m_hostId; }
149 
153  inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
154 
158  inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
159 
163  inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
164 
168  inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
169 
173  inline ModifyInstancePlacementRequest& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
174 
178  inline ModifyInstancePlacementRequest& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
179 
183  inline ModifyInstancePlacementRequest& WithHostId(const char* value) { SetHostId(value); return *this;}
184 
185 
189  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
190 
194  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
195 
199  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
200 
204  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
205 
209  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
210 
214  inline ModifyInstancePlacementRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
215 
219  inline ModifyInstancePlacementRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
220 
224  inline ModifyInstancePlacementRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
225 
226 
230  inline const HostTenancy& GetTenancy() const{ return m_tenancy; }
231 
235  inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
236 
240  inline void SetTenancy(const HostTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
241 
245  inline void SetTenancy(HostTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
246 
250  inline ModifyInstancePlacementRequest& WithTenancy(const HostTenancy& value) { SetTenancy(value); return *this;}
251 
255  inline ModifyInstancePlacementRequest& WithTenancy(HostTenancy&& value) { SetTenancy(std::move(value)); return *this;}
256 
257 
261  inline int GetPartitionNumber() const{ return m_partitionNumber; }
262 
266  inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
267 
271  inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
272 
276  inline ModifyInstancePlacementRequest& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
277 
278 
282  inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
283 
287  inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
288 
292  inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
293 
297  inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
298 
302  inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
303 
307  inline ModifyInstancePlacementRequest& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;}
308 
312  inline ModifyInstancePlacementRequest& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;}
313 
317  inline ModifyInstancePlacementRequest& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
318 
319  private:
320 
321  Affinity m_affinity;
322  bool m_affinityHasBeenSet;
323 
324  Aws::String m_groupName;
325  bool m_groupNameHasBeenSet;
326 
327  Aws::String m_hostId;
328  bool m_hostIdHasBeenSet;
329 
330  Aws::String m_instanceId;
331  bool m_instanceIdHasBeenSet;
332 
333  HostTenancy m_tenancy;
334  bool m_tenancyHasBeenSet;
335 
336  int m_partitionNumber;
337  bool m_partitionNumberHasBeenSet;
338 
339  Aws::String m_hostResourceGroupArn;
340  bool m_hostResourceGroupArnHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace EC2
345 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyInstancePlacementRequest::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:106
Aws::EC2::Model::ModifyInstancePlacementRequest::SetTenancy
void SetTenancy(HostTenancy &&value)
Definition: ModifyInstancePlacementRequest.h:245
Aws::EC2::Model::ModifyInstancePlacementRequest::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:97
Aws::EC2::Model::ModifyInstancePlacementRequest::AffinityHasBeenSet
bool AffinityHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:49
Aws::EC2::Model::ModifyInstancePlacementRequest::WithTenancy
ModifyInstancePlacementRequest & WithTenancy(HostTenancy &&value)
Definition: ModifyInstancePlacementRequest.h:255
Aws::EC2::Model::ModifyInstancePlacementRequest::PartitionNumberHasBeenSet
bool PartitionNumberHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:266
Aws::EC2::Model::ModifyInstancePlacementRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyInstancePlacementRequest::HostIdHasBeenSet
bool HostIdHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:153
Aws::EC2::Model::ModifyInstancePlacementRequest::WithTenancy
ModifyInstancePlacementRequest & WithTenancy(const HostTenancy &value)
Definition: ModifyInstancePlacementRequest.h:250
Aws::EC2::Model::ModifyInstancePlacementRequest::GetGroupName
const Aws::String & GetGroupName() const
Definition: ModifyInstancePlacementRequest.h:79
Aws::EC2::Model::ModifyInstancePlacementRequest::WithGroupName
ModifyInstancePlacementRequest & WithGroupName(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:133
Aws::EC2::Model::ModifyInstancePlacementRequest::WithAffinity
ModifyInstancePlacementRequest & WithAffinity(Affinity &&value)
Definition: ModifyInstancePlacementRequest.h:69
Aws::EC2::Model::ModifyInstancePlacementRequest::SetHostResourceGroupArn
void SetHostResourceGroupArn(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:297
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyInstancePlacementRequest::SetAffinity
void SetAffinity(const Affinity &value)
Definition: ModifyInstancePlacementRequest.h:54
Aws::EC2::Model::ModifyInstancePlacementRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:194
Aws::EC2::Model::ModifyInstancePlacementRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ModifyInstancePlacementRequest.h:189
Aws::EC2::Model::ModifyInstancePlacementRequest::SetHostId
void SetHostId(const char *value)
Definition: ModifyInstancePlacementRequest.h:168
Aws::EC2::Model::ModifyInstancePlacementRequest::GetHostId
const Aws::String & GetHostId() const
Definition: ModifyInstancePlacementRequest.h:148
Aws::EC2::Model::ModifyInstancePlacementRequest::WithGroupName
ModifyInstancePlacementRequest & WithGroupName(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:124
Aws::EC2::Model::ModifyInstancePlacementRequest::GetPartitionNumber
int GetPartitionNumber() const
Definition: ModifyInstancePlacementRequest.h:261
Aws::EC2::Model::ModifyInstancePlacementRequest::WithPartitionNumber
ModifyInstancePlacementRequest & WithPartitionNumber(int value)
Definition: ModifyInstancePlacementRequest.h:276
Aws::EC2::Model::ModifyInstancePlacementRequest::WithInstanceId
ModifyInstancePlacementRequest & WithInstanceId(const char *value)
Definition: ModifyInstancePlacementRequest.h:224
Aws::EC2::Model::ModifyInstancePlacementRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyInstancePlacementRequest::WithAffinity
ModifyInstancePlacementRequest & WithAffinity(const Affinity &value)
Definition: ModifyInstancePlacementRequest.h:64
Aws::EC2::Model::ModifyInstancePlacementRequest::WithHostResourceGroupArn
ModifyInstancePlacementRequest & WithHostResourceGroupArn(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:312
Aws::EC2::Model::ModifyInstancePlacementRequest::SetGroupName
void SetGroupName(const char *value)
Definition: ModifyInstancePlacementRequest.h:115
Aws::EC2::Model::ModifyInstancePlacementRequest::WithHostResourceGroupArn
ModifyInstancePlacementRequest & WithHostResourceGroupArn(const char *value)
Definition: ModifyInstancePlacementRequest.h:317
Aws::EC2::Model::ModifyInstancePlacementRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:199
Aws::EC2::Model::ModifyInstancePlacementRequest::WithHostId
ModifyInstancePlacementRequest & WithHostId(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:178
Aws::EC2::Model::HostTenancy
HostTenancy
Definition: HostTenancy.h:17
Aws::EC2::Model::ModifyInstancePlacementRequest::WithHostId
ModifyInstancePlacementRequest & WithHostId(const char *value)
Definition: ModifyInstancePlacementRequest.h:183
Aws::EC2::Model::ModifyInstancePlacementRequest::TenancyHasBeenSet
bool TenancyHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:235
Aws::EC2::Model::ModifyInstancePlacementRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:204
Aws::EC2::Model::ModifyInstancePlacementRequest::WithInstanceId
ModifyInstancePlacementRequest & WithInstanceId(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:219
EC2Request.h
Aws::EC2::Model::ModifyInstancePlacementRequest::WithInstanceId
ModifyInstancePlacementRequest & WithInstanceId(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:214
Affinity.h
Aws::EC2::Model::ModifyInstancePlacementRequest::SetHostResourceGroupArn
void SetHostResourceGroupArn(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:292
AWSString.h
Aws::EC2::Model::ModifyInstancePlacementRequest::SetHostId
void SetHostId(Aws::String &&value)
Definition: ModifyInstancePlacementRequest.h:163
Aws::EC2::Model::ModifyInstancePlacementRequest::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:88
Aws::EC2::Model::ModifyInstancePlacementRequest::SetHostResourceGroupArn
void SetHostResourceGroupArn(const char *value)
Definition: ModifyInstancePlacementRequest.h:302
Aws::EC2::Model::ModifyInstancePlacementRequest::GetTenancy
const HostTenancy & GetTenancy() const
Definition: ModifyInstancePlacementRequest.h:230
Aws::EC2::Model::ModifyInstancePlacementRequest::ModifyInstancePlacementRequest
ModifyInstancePlacementRequest()
Aws::EC2::Model::ModifyInstancePlacementRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyInstancePlacementRequest.h:32
Aws::EC2::Model::ModifyInstancePlacementRequest::WithHostResourceGroupArn
ModifyInstancePlacementRequest & WithHostResourceGroupArn(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:307
Aws::EC2::Model::ModifyInstancePlacementRequest::HostResourceGroupArnHasBeenSet
bool HostResourceGroupArnHasBeenSet() const
Definition: ModifyInstancePlacementRequest.h:287
Aws::EC2::Model::ModifyInstancePlacementRequest::SetHostId
void SetHostId(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:158
Aws::EC2::Model::ModifyInstancePlacementRequest::WithHostId
ModifyInstancePlacementRequest & WithHostId(const Aws::String &value)
Definition: ModifyInstancePlacementRequest.h:173
Aws::EC2::Model::ModifyInstancePlacementRequest
Definition: ModifyInstancePlacementRequest.h:24
Aws
Definition: AccessManagementClient.h:15
HostTenancy.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyInstancePlacementRequest::SetPartitionNumber
void SetPartitionNumber(int value)
Definition: ModifyInstancePlacementRequest.h:271
Aws::EC2::Model::ModifyInstancePlacementRequest::GetAffinity
const Affinity & GetAffinity() const
Definition: ModifyInstancePlacementRequest.h:44
Aws::EC2::Model::Affinity
Affinity
Definition: Affinity.h:17
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyInstancePlacementRequest::WithGroupName
ModifyInstancePlacementRequest & WithGroupName(const char *value)
Definition: ModifyInstancePlacementRequest.h:142
Aws::EC2::Model::ModifyInstancePlacementRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ModifyInstancePlacementRequest.h:209
Aws::EC2::Model::ModifyInstancePlacementRequest::GetHostResourceGroupArn
const Aws::String & GetHostResourceGroupArn() const
Definition: ModifyInstancePlacementRequest.h:282
Aws::EC2::Model::ModifyInstancePlacementRequest::SetAffinity
void SetAffinity(Affinity &&value)
Definition: ModifyInstancePlacementRequest.h:59
EC2_EXPORTS.h
Aws::EC2::Model::ModifyInstancePlacementRequest::SetTenancy
void SetTenancy(const HostTenancy &value)
Definition: ModifyInstancePlacementRequest.h:240