AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyIpamPoolRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/RequestIpamResourceTag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API ModifyIpamPoolRequest() = 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 "ModifyIpamPool"; }
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
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
50 inline ModifyIpamPoolRequest& WithDryRun(bool value) {
51 SetDryRun(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
61 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
62 template <typename IpamPoolIdT = Aws::String>
63 void SetIpamPoolId(IpamPoolIdT&& value) {
64 m_ipamPoolIdHasBeenSet = true;
65 m_ipamPoolId = std::forward<IpamPoolIdT>(value);
66 }
67 template <typename IpamPoolIdT = Aws::String>
68 ModifyIpamPoolRequest& WithIpamPoolId(IpamPoolIdT&& value) {
69 SetIpamPoolId(std::forward<IpamPoolIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 ModifyIpamPoolRequest& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
105 inline bool GetAutoImport() const { return m_autoImport; }
106 inline bool AutoImportHasBeenSet() const { return m_autoImportHasBeenSet; }
107 inline void SetAutoImport(bool value) {
108 m_autoImportHasBeenSet = true;
109 m_autoImport = value;
110 }
112 SetAutoImport(value);
113 return *this;
114 }
116
118
124 inline int GetAllocationMinNetmaskLength() const { return m_allocationMinNetmaskLength; }
125 inline bool AllocationMinNetmaskLengthHasBeenSet() const { return m_allocationMinNetmaskLengthHasBeenSet; }
126 inline void SetAllocationMinNetmaskLength(int value) {
127 m_allocationMinNetmaskLengthHasBeenSet = true;
128 m_allocationMinNetmaskLength = value;
129 }
132 return *this;
133 }
135
137
143 inline int GetAllocationMaxNetmaskLength() const { return m_allocationMaxNetmaskLength; }
144 inline bool AllocationMaxNetmaskLengthHasBeenSet() const { return m_allocationMaxNetmaskLengthHasBeenSet; }
145 inline void SetAllocationMaxNetmaskLength(int value) {
146 m_allocationMaxNetmaskLengthHasBeenSet = true;
147 m_allocationMaxNetmaskLength = value;
148 }
151 return *this;
152 }
154
156
161 inline int GetAllocationDefaultNetmaskLength() const { return m_allocationDefaultNetmaskLength; }
162 inline bool AllocationDefaultNetmaskLengthHasBeenSet() const { return m_allocationDefaultNetmaskLengthHasBeenSet; }
163 inline void SetAllocationDefaultNetmaskLength(int value) {
164 m_allocationDefaultNetmaskLengthHasBeenSet = true;
165 m_allocationDefaultNetmaskLength = value;
166 }
169 return *this;
170 }
172
174
177 inline bool GetClearAllocationDefaultNetmaskLength() const { return m_clearAllocationDefaultNetmaskLength; }
178 inline bool ClearAllocationDefaultNetmaskLengthHasBeenSet() const { return m_clearAllocationDefaultNetmaskLengthHasBeenSet; }
180 m_clearAllocationDefaultNetmaskLengthHasBeenSet = true;
181 m_clearAllocationDefaultNetmaskLength = value;
182 }
185 return *this;
186 }
188
190
196 inline const Aws::Vector<RequestIpamResourceTag>& GetAddAllocationResourceTags() const { return m_addAllocationResourceTags; }
197 inline bool AddAllocationResourceTagsHasBeenSet() const { return m_addAllocationResourceTagsHasBeenSet; }
198 template <typename AddAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
199 void SetAddAllocationResourceTags(AddAllocationResourceTagsT&& value) {
200 m_addAllocationResourceTagsHasBeenSet = true;
201 m_addAllocationResourceTags = std::forward<AddAllocationResourceTagsT>(value);
202 }
203 template <typename AddAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
204 ModifyIpamPoolRequest& WithAddAllocationResourceTags(AddAllocationResourceTagsT&& value) {
205 SetAddAllocationResourceTags(std::forward<AddAllocationResourceTagsT>(value));
206 return *this;
207 }
208 template <typename AddAllocationResourceTagsT = RequestIpamResourceTag>
209 ModifyIpamPoolRequest& AddAddAllocationResourceTags(AddAllocationResourceTagsT&& value) {
210 m_addAllocationResourceTagsHasBeenSet = true;
211 m_addAllocationResourceTags.emplace_back(std::forward<AddAllocationResourceTagsT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Vector<RequestIpamResourceTag>& GetRemoveAllocationResourceTags() const { return m_removeAllocationResourceTags; }
221 inline bool RemoveAllocationResourceTagsHasBeenSet() const { return m_removeAllocationResourceTagsHasBeenSet; }
222 template <typename RemoveAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
223 void SetRemoveAllocationResourceTags(RemoveAllocationResourceTagsT&& value) {
224 m_removeAllocationResourceTagsHasBeenSet = true;
225 m_removeAllocationResourceTags = std::forward<RemoveAllocationResourceTagsT>(value);
226 }
227 template <typename RemoveAllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
228 ModifyIpamPoolRequest& WithRemoveAllocationResourceTags(RemoveAllocationResourceTagsT&& value) {
229 SetRemoveAllocationResourceTags(std::forward<RemoveAllocationResourceTagsT>(value));
230 return *this;
231 }
232 template <typename RemoveAllocationResourceTagsT = RequestIpamResourceTag>
233 ModifyIpamPoolRequest& AddRemoveAllocationResourceTags(RemoveAllocationResourceTagsT&& value) {
234 m_removeAllocationResourceTagsHasBeenSet = true;
235 m_removeAllocationResourceTags.emplace_back(std::forward<RemoveAllocationResourceTagsT>(value));
236 return *this;
237 }
239 private:
240 bool m_dryRun{false};
241
242 Aws::String m_ipamPoolId;
243
244 Aws::String m_description;
245
246 bool m_autoImport{false};
247
248 int m_allocationMinNetmaskLength{0};
249
250 int m_allocationMaxNetmaskLength{0};
251
252 int m_allocationDefaultNetmaskLength{0};
253
254 bool m_clearAllocationDefaultNetmaskLength{false};
255
256 Aws::Vector<RequestIpamResourceTag> m_addAllocationResourceTags;
257
258 Aws::Vector<RequestIpamResourceTag> m_removeAllocationResourceTags;
259 bool m_dryRunHasBeenSet = false;
260 bool m_ipamPoolIdHasBeenSet = false;
261 bool m_descriptionHasBeenSet = false;
262 bool m_autoImportHasBeenSet = false;
263 bool m_allocationMinNetmaskLengthHasBeenSet = false;
264 bool m_allocationMaxNetmaskLengthHasBeenSet = false;
265 bool m_allocationDefaultNetmaskLengthHasBeenSet = false;
266 bool m_clearAllocationDefaultNetmaskLengthHasBeenSet = false;
267 bool m_addAllocationResourceTagsHasBeenSet = false;
268 bool m_removeAllocationResourceTagsHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace EC2
273} // namespace Aws
ModifyIpamPoolRequest & AddAddAllocationResourceTags(AddAllocationResourceTagsT &&value)
void SetAddAllocationResourceTags(AddAllocationResourceTagsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyIpamPoolRequest & WithAllocationMinNetmaskLength(int value)
const Aws::Vector< RequestIpamResourceTag > & GetAddAllocationResourceTags() const
virtual const char * GetServiceRequestName() const override
ModifyIpamPoolRequest & WithClearAllocationDefaultNetmaskLength(bool value)
ModifyIpamPoolRequest & WithIpamPoolId(IpamPoolIdT &&value)
AWS_EC2_API ModifyIpamPoolRequest()=default
ModifyIpamPoolRequest & WithRemoveAllocationResourceTags(RemoveAllocationResourceTagsT &&value)
const Aws::Vector< RequestIpamResourceTag > & GetRemoveAllocationResourceTags() const
ModifyIpamPoolRequest & WithDescription(DescriptionT &&value)
ModifyIpamPoolRequest & WithAutoImport(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyIpamPoolRequest & WithAddAllocationResourceTags(AddAllocationResourceTagsT &&value)
void SetRemoveAllocationResourceTags(RemoveAllocationResourceTagsT &&value)
ModifyIpamPoolRequest & WithAllocationMaxNetmaskLength(int value)
ModifyIpamPoolRequest & AddRemoveAllocationResourceTags(RemoveAllocationResourceTagsT &&value)
ModifyIpamPoolRequest & WithAllocationDefaultNetmaskLength(int value)
ModifyIpamPoolRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector