AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyInstancePlacementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/Affinity.h>
11#include <aws/ec2/model/HostTenancy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API ModifyInstancePlacementRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstancePlacement"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
45 inline const Aws::String& GetGroupName() const { return m_groupName; }
46 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
47 template <typename GroupNameT = Aws::String>
48 void SetGroupName(GroupNameT&& value) {
49 m_groupNameHasBeenSet = true;
50 m_groupName = std::forward<GroupNameT>(value);
51 }
52 template <typename GroupNameT = Aws::String>
54 SetGroupName(std::forward<GroupNameT>(value));
55 return *this;
56 }
58
60
64 inline int GetPartitionNumber() const { return m_partitionNumber; }
65 inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; }
66 inline void SetPartitionNumber(int value) {
67 m_partitionNumberHasBeenSet = true;
68 m_partitionNumber = value;
69 }
71 SetPartitionNumber(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetHostResourceGroupArn() const { return m_hostResourceGroupArn; }
82 inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; }
83 template <typename HostResourceGroupArnT = Aws::String>
84 void SetHostResourceGroupArn(HostResourceGroupArnT&& value) {
85 m_hostResourceGroupArnHasBeenSet = true;
86 m_hostResourceGroupArn = std::forward<HostResourceGroupArnT>(value);
87 }
88 template <typename HostResourceGroupArnT = Aws::String>
90 SetHostResourceGroupArn(std::forward<HostResourceGroupArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetGroupId() const { return m_groupId; }
101 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
102 template <typename GroupIdT = Aws::String>
103 void SetGroupId(GroupIdT&& value) {
104 m_groupIdHasBeenSet = true;
105 m_groupId = std::forward<GroupIdT>(value);
106 }
107 template <typename GroupIdT = Aws::String>
109 SetGroupId(std::forward<GroupIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
119 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
120 template <typename InstanceIdT = Aws::String>
121 void SetInstanceId(InstanceIdT&& value) {
122 m_instanceIdHasBeenSet = true;
123 m_instanceId = std::forward<InstanceIdT>(value);
124 }
125 template <typename InstanceIdT = Aws::String>
127 SetInstanceId(std::forward<InstanceIdT>(value));
128 return *this;
129 }
131
133
140 inline HostTenancy GetTenancy() const { return m_tenancy; }
141 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
142 inline void SetTenancy(HostTenancy value) {
143 m_tenancyHasBeenSet = true;
144 m_tenancy = value;
145 }
147 SetTenancy(value);
148 return *this;
149 }
151
153
158 inline Affinity GetAffinity() const { return m_affinity; }
159 inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; }
160 inline void SetAffinity(Affinity value) {
161 m_affinityHasBeenSet = true;
162 m_affinity = value;
163 }
165 SetAffinity(value);
166 return *this;
167 }
169
171
174 inline const Aws::String& GetHostId() const { return m_hostId; }
175 inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; }
176 template <typename HostIdT = Aws::String>
177 void SetHostId(HostIdT&& value) {
178 m_hostIdHasBeenSet = true;
179 m_hostId = std::forward<HostIdT>(value);
180 }
181 template <typename HostIdT = Aws::String>
183 SetHostId(std::forward<HostIdT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_groupName;
189
190 int m_partitionNumber{0};
191
192 Aws::String m_hostResourceGroupArn;
193
194 Aws::String m_groupId;
195
196 Aws::String m_instanceId;
197
199
200 Affinity m_affinity{Affinity::NOT_SET};
201
202 Aws::String m_hostId;
203 bool m_groupNameHasBeenSet = false;
204 bool m_partitionNumberHasBeenSet = false;
205 bool m_hostResourceGroupArnHasBeenSet = false;
206 bool m_groupIdHasBeenSet = false;
207 bool m_instanceIdHasBeenSet = false;
208 bool m_tenancyHasBeenSet = false;
209 bool m_affinityHasBeenSet = false;
210 bool m_hostIdHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace EC2
215} // namespace Aws
ModifyInstancePlacementRequest & WithHostId(HostIdT &&value)
ModifyInstancePlacementRequest & WithInstanceId(InstanceIdT &&value)
ModifyInstancePlacementRequest & WithPartitionNumber(int value)
ModifyInstancePlacementRequest & WithGroupId(GroupIdT &&value)
ModifyInstancePlacementRequest & WithHostResourceGroupArn(HostResourceGroupArnT &&value)
ModifyInstancePlacementRequest & WithTenancy(HostTenancy value)
ModifyInstancePlacementRequest & WithGroupName(GroupNameT &&value)
ModifyInstancePlacementRequest & WithAffinity(Affinity 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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String