AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstancePlacementRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/HostTenancy.h>
11#include <aws/ec2/model/Affinity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
49 inline const Aws::String& GetGroupName() const{ return m_groupName; }
50 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
51 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
52 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
53 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
54 inline ModifyInstancePlacementRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
55 inline ModifyInstancePlacementRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
56 inline ModifyInstancePlacementRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
58
60
64 inline int GetPartitionNumber() const{ return m_partitionNumber; }
65 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
66 inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; }
67 inline ModifyInstancePlacementRequest& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;}
69
71
75 inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; }
76 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
77 inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; }
78 inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); }
79 inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); }
82 inline ModifyInstancePlacementRequest& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;}
84
86
90 inline const Aws::String& GetGroupId() const{ return m_groupId; }
91 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
92 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
93 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
94 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
95 inline ModifyInstancePlacementRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
96 inline ModifyInstancePlacementRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
97 inline ModifyInstancePlacementRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
99
101
104 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
105 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
106 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
107 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
108 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
109 inline ModifyInstancePlacementRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
110 inline ModifyInstancePlacementRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
111 inline ModifyInstancePlacementRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
113
115
122 inline const HostTenancy& GetTenancy() const{ return m_tenancy; }
123 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
124 inline void SetTenancy(const HostTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
125 inline void SetTenancy(HostTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
126 inline ModifyInstancePlacementRequest& WithTenancy(const HostTenancy& value) { SetTenancy(value); return *this;}
127 inline ModifyInstancePlacementRequest& WithTenancy(HostTenancy&& value) { SetTenancy(std::move(value)); return *this;}
129
131
136 inline const Affinity& GetAffinity() const{ return m_affinity; }
137 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
138 inline void SetAffinity(const Affinity& value) { m_affinityHasBeenSet = true; m_affinity = value; }
139 inline void SetAffinity(Affinity&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); }
140 inline ModifyInstancePlacementRequest& WithAffinity(const Affinity& value) { SetAffinity(value); return *this;}
141 inline ModifyInstancePlacementRequest& WithAffinity(Affinity&& value) { SetAffinity(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetHostId() const{ return m_hostId; }
149 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
150 inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; }
151 inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); }
152 inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); }
153 inline ModifyInstancePlacementRequest& WithHostId(const Aws::String& value) { SetHostId(value); return *this;}
154 inline ModifyInstancePlacementRequest& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;}
155 inline ModifyInstancePlacementRequest& WithHostId(const char* value) { SetHostId(value); return *this;}
157 private:
158
159 Aws::String m_groupName;
160 bool m_groupNameHasBeenSet = false;
161
162 int m_partitionNumber;
163 bool m_partitionNumberHasBeenSet = false;
164
165 Aws::String m_hostResourceGroupArn;
166 bool m_hostResourceGroupArnHasBeenSet = false;
167
168 Aws::String m_groupId;
169 bool m_groupIdHasBeenSet = false;
170
171 Aws::String m_instanceId;
172 bool m_instanceIdHasBeenSet = false;
173
174 HostTenancy m_tenancy;
175 bool m_tenancyHasBeenSet = false;
176
177 Affinity m_affinity;
178 bool m_affinityHasBeenSet = false;
179
180 Aws::String m_hostId;
181 bool m_hostIdHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace EC2
186} // namespace Aws
ModifyInstancePlacementRequest & WithAffinity(const Affinity &value)
ModifyInstancePlacementRequest & WithTenancy(HostTenancy &&value)
ModifyInstancePlacementRequest & WithGroupName(const Aws::String &value)
ModifyInstancePlacementRequest & WithPartitionNumber(int value)
ModifyInstancePlacementRequest & WithTenancy(const HostTenancy &value)
ModifyInstancePlacementRequest & WithGroupId(const Aws::String &value)
ModifyInstancePlacementRequest & WithInstanceId(Aws::String &&value)
ModifyInstancePlacementRequest & WithGroupName(const char *value)
ModifyInstancePlacementRequest & WithInstanceId(const Aws::String &value)
ModifyInstancePlacementRequest & WithInstanceId(const char *value)
ModifyInstancePlacementRequest & WithGroupId(Aws::String &&value)
ModifyInstancePlacementRequest & WithHostResourceGroupArn(Aws::String &&value)
ModifyInstancePlacementRequest & WithHostId(const Aws::String &value)
ModifyInstancePlacementRequest & WithAffinity(Affinity &&value)
ModifyInstancePlacementRequest & WithHostId(const char *value)
ModifyInstancePlacementRequest & WithGroupId(const char *value)
ModifyInstancePlacementRequest & WithGroupName(Aws::String &&value)
ModifyInstancePlacementRequest & WithHostResourceGroupArn(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ModifyInstancePlacementRequest & WithHostResourceGroupArn(const char *value)
ModifyInstancePlacementRequest & WithHostId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String