AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIpamPoolRequest.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/AddressFamily.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/IpamPoolAwsService.h>
13#include <aws/ec2/model/IpamPoolPublicIpSource.h>
14#include <aws/ec2/model/IpamPoolSourceResourceRequest.h>
15#include <aws/ec2/model/RequestIpamResourceTag.h>
16#include <aws/ec2/model/TagSpecification.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace EC2
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_EC2_API CreateIpamPoolRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateIpamPool"; }
39
40 AWS_EC2_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
54 inline bool GetDryRun() const{ return m_dryRun; }
55 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
57 inline CreateIpamPoolRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59
61
64 inline const Aws::String& GetIpamScopeId() const{ return m_ipamScopeId; }
65 inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; }
66 inline void SetIpamScopeId(const Aws::String& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = value; }
67 inline void SetIpamScopeId(Aws::String&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::move(value); }
68 inline void SetIpamScopeId(const char* value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId.assign(value); }
69 inline CreateIpamPoolRequest& WithIpamScopeId(const Aws::String& value) { SetIpamScopeId(value); return *this;}
70 inline CreateIpamPoolRequest& WithIpamScopeId(Aws::String&& value) { SetIpamScopeId(std::move(value)); return *this;}
71 inline CreateIpamPoolRequest& WithIpamScopeId(const char* value) { SetIpamScopeId(value); return *this;}
73
75
87 inline const Aws::String& GetLocale() const{ return m_locale; }
88 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
89 inline void SetLocale(const Aws::String& value) { m_localeHasBeenSet = true; m_locale = value; }
90 inline void SetLocale(Aws::String&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
91 inline void SetLocale(const char* value) { m_localeHasBeenSet = true; m_locale.assign(value); }
92 inline CreateIpamPoolRequest& WithLocale(const Aws::String& value) { SetLocale(value); return *this;}
93 inline CreateIpamPoolRequest& WithLocale(Aws::String&& value) { SetLocale(std::move(value)); return *this;}
94 inline CreateIpamPoolRequest& WithLocale(const char* value) { SetLocale(value); return *this;}
96
98
103 inline const Aws::String& GetSourceIpamPoolId() const{ return m_sourceIpamPoolId; }
104 inline bool SourceIpamPoolIdHasBeenSet() const { return m_sourceIpamPoolIdHasBeenSet; }
105 inline void SetSourceIpamPoolId(const Aws::String& value) { m_sourceIpamPoolIdHasBeenSet = true; m_sourceIpamPoolId = value; }
106 inline void SetSourceIpamPoolId(Aws::String&& value) { m_sourceIpamPoolIdHasBeenSet = true; m_sourceIpamPoolId = std::move(value); }
107 inline void SetSourceIpamPoolId(const char* value) { m_sourceIpamPoolIdHasBeenSet = true; m_sourceIpamPoolId.assign(value); }
108 inline CreateIpamPoolRequest& WithSourceIpamPoolId(const Aws::String& value) { SetSourceIpamPoolId(value); return *this;}
109 inline CreateIpamPoolRequest& WithSourceIpamPoolId(Aws::String&& value) { SetSourceIpamPoolId(std::move(value)); return *this;}
110 inline CreateIpamPoolRequest& WithSourceIpamPoolId(const char* value) { SetSourceIpamPoolId(value); return *this;}
112
114
117 inline const Aws::String& GetDescription() const{ return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
120 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
121 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
122 inline CreateIpamPoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
123 inline CreateIpamPoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
124 inline CreateIpamPoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
126
128
132 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
133 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
134 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
135 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
136 inline CreateIpamPoolRequest& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
137 inline CreateIpamPoolRequest& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
139
141
153 inline bool GetAutoImport() const{ return m_autoImport; }
154 inline bool AutoImportHasBeenSet() const { return m_autoImportHasBeenSet; }
155 inline void SetAutoImport(bool value) { m_autoImportHasBeenSet = true; m_autoImport = value; }
156 inline CreateIpamPoolRequest& WithAutoImport(bool value) { SetAutoImport(value); return *this;}
158
160
165 inline bool GetPubliclyAdvertisable() const{ return m_publiclyAdvertisable; }
166 inline bool PubliclyAdvertisableHasBeenSet() const { return m_publiclyAdvertisableHasBeenSet; }
167 inline void SetPubliclyAdvertisable(bool value) { m_publiclyAdvertisableHasBeenSet = true; m_publiclyAdvertisable = value; }
168 inline CreateIpamPoolRequest& WithPubliclyAdvertisable(bool value) { SetPubliclyAdvertisable(value); return *this;}
170
172
178 inline int GetAllocationMinNetmaskLength() const{ return m_allocationMinNetmaskLength; }
179 inline bool AllocationMinNetmaskLengthHasBeenSet() const { return m_allocationMinNetmaskLengthHasBeenSet; }
180 inline void SetAllocationMinNetmaskLength(int value) { m_allocationMinNetmaskLengthHasBeenSet = true; m_allocationMinNetmaskLength = value; }
183
185
191 inline int GetAllocationMaxNetmaskLength() const{ return m_allocationMaxNetmaskLength; }
192 inline bool AllocationMaxNetmaskLengthHasBeenSet() const { return m_allocationMaxNetmaskLengthHasBeenSet; }
193 inline void SetAllocationMaxNetmaskLength(int value) { m_allocationMaxNetmaskLengthHasBeenSet = true; m_allocationMaxNetmaskLength = value; }
196
198
203 inline int GetAllocationDefaultNetmaskLength() const{ return m_allocationDefaultNetmaskLength; }
204 inline bool AllocationDefaultNetmaskLengthHasBeenSet() const { return m_allocationDefaultNetmaskLengthHasBeenSet; }
205 inline void SetAllocationDefaultNetmaskLength(int value) { m_allocationDefaultNetmaskLengthHasBeenSet = true; m_allocationDefaultNetmaskLength = value; }
208
210
217 inline const Aws::Vector<RequestIpamResourceTag>& GetAllocationResourceTags() const{ return m_allocationResourceTags; }
218 inline bool AllocationResourceTagsHasBeenSet() const { return m_allocationResourceTagsHasBeenSet; }
219 inline void SetAllocationResourceTags(const Aws::Vector<RequestIpamResourceTag>& value) { m_allocationResourceTagsHasBeenSet = true; m_allocationResourceTags = value; }
220 inline void SetAllocationResourceTags(Aws::Vector<RequestIpamResourceTag>&& value) { m_allocationResourceTagsHasBeenSet = true; m_allocationResourceTags = std::move(value); }
223 inline CreateIpamPoolRequest& AddAllocationResourceTags(const RequestIpamResourceTag& value) { m_allocationResourceTagsHasBeenSet = true; m_allocationResourceTags.push_back(value); return *this; }
224 inline CreateIpamPoolRequest& AddAllocationResourceTags(RequestIpamResourceTag&& value) { m_allocationResourceTagsHasBeenSet = true; m_allocationResourceTags.push_back(std::move(value)); return *this; }
226
228
235 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
236 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
237 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
238 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
241 inline CreateIpamPoolRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
242 inline CreateIpamPoolRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
244
246
252 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
253 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
254 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
255 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
256 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
257 inline CreateIpamPoolRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
258 inline CreateIpamPoolRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
259 inline CreateIpamPoolRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
261
263
268 inline const IpamPoolAwsService& GetAwsService() const{ return m_awsService; }
269 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
270 inline void SetAwsService(const IpamPoolAwsService& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
271 inline void SetAwsService(IpamPoolAwsService&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
272 inline CreateIpamPoolRequest& WithAwsService(const IpamPoolAwsService& value) { SetAwsService(value); return *this;}
273 inline CreateIpamPoolRequest& WithAwsService(IpamPoolAwsService&& value) { SetAwsService(std::move(value)); return *this;}
275
277
289 inline const IpamPoolPublicIpSource& GetPublicIpSource() const{ return m_publicIpSource; }
290 inline bool PublicIpSourceHasBeenSet() const { return m_publicIpSourceHasBeenSet; }
291 inline void SetPublicIpSource(const IpamPoolPublicIpSource& value) { m_publicIpSourceHasBeenSet = true; m_publicIpSource = value; }
292 inline void SetPublicIpSource(IpamPoolPublicIpSource&& value) { m_publicIpSourceHasBeenSet = true; m_publicIpSource = std::move(value); }
294 inline CreateIpamPoolRequest& WithPublicIpSource(IpamPoolPublicIpSource&& value) { SetPublicIpSource(std::move(value)); return *this;}
296
298
301 inline const IpamPoolSourceResourceRequest& GetSourceResource() const{ return m_sourceResource; }
302 inline bool SourceResourceHasBeenSet() const { return m_sourceResourceHasBeenSet; }
303 inline void SetSourceResource(const IpamPoolSourceResourceRequest& value) { m_sourceResourceHasBeenSet = true; m_sourceResource = value; }
304 inline void SetSourceResource(IpamPoolSourceResourceRequest&& value) { m_sourceResourceHasBeenSet = true; m_sourceResource = std::move(value); }
308 private:
309
310 bool m_dryRun;
311 bool m_dryRunHasBeenSet = false;
312
313 Aws::String m_ipamScopeId;
314 bool m_ipamScopeIdHasBeenSet = false;
315
316 Aws::String m_locale;
317 bool m_localeHasBeenSet = false;
318
319 Aws::String m_sourceIpamPoolId;
320 bool m_sourceIpamPoolIdHasBeenSet = false;
321
322 Aws::String m_description;
323 bool m_descriptionHasBeenSet = false;
324
325 AddressFamily m_addressFamily;
326 bool m_addressFamilyHasBeenSet = false;
327
328 bool m_autoImport;
329 bool m_autoImportHasBeenSet = false;
330
331 bool m_publiclyAdvertisable;
332 bool m_publiclyAdvertisableHasBeenSet = false;
333
334 int m_allocationMinNetmaskLength;
335 bool m_allocationMinNetmaskLengthHasBeenSet = false;
336
337 int m_allocationMaxNetmaskLength;
338 bool m_allocationMaxNetmaskLengthHasBeenSet = false;
339
340 int m_allocationDefaultNetmaskLength;
341 bool m_allocationDefaultNetmaskLengthHasBeenSet = false;
342
343 Aws::Vector<RequestIpamResourceTag> m_allocationResourceTags;
344 bool m_allocationResourceTagsHasBeenSet = false;
345
346 Aws::Vector<TagSpecification> m_tagSpecifications;
347 bool m_tagSpecificationsHasBeenSet = false;
348
349 Aws::String m_clientToken;
350 bool m_clientTokenHasBeenSet = false;
351
352 IpamPoolAwsService m_awsService;
353 bool m_awsServiceHasBeenSet = false;
354
355 IpamPoolPublicIpSource m_publicIpSource;
356 bool m_publicIpSourceHasBeenSet = false;
357
358 IpamPoolSourceResourceRequest m_sourceResource;
359 bool m_sourceResourceHasBeenSet = false;
360 };
361
362} // namespace Model
363} // namespace EC2
364} // namespace Aws
CreateIpamPoolRequest & WithPublicIpSource(IpamPoolPublicIpSource &&value)
CreateIpamPoolRequest & WithAddressFamily(AddressFamily &&value)
CreateIpamPoolRequest & WithPubliclyAdvertisable(bool value)
CreateIpamPoolRequest & WithLocale(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetAddressFamily(const AddressFamily &value)
CreateIpamPoolRequest & WithAwsService(const IpamPoolAwsService &value)
const Aws::String & GetSourceIpamPoolId() const
virtual const char * GetServiceRequestName() const override
const IpamPoolPublicIpSource & GetPublicIpSource() const
void SetIpamScopeId(const Aws::String &value)
const Aws::Vector< RequestIpamResourceTag > & GetAllocationResourceTags() const
CreateIpamPoolRequest & WithAddressFamily(const AddressFamily &value)
CreateIpamPoolRequest & WithIpamScopeId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateIpamPoolRequest & AddTagSpecifications(const TagSpecification &value)
void SetAllocationResourceTags(Aws::Vector< RequestIpamResourceTag > &&value)
CreateIpamPoolRequest & WithClientToken(Aws::String &&value)
CreateIpamPoolRequest & WithAllocationDefaultNetmaskLength(int value)
CreateIpamPoolRequest & WithAwsService(IpamPoolAwsService &&value)
CreateIpamPoolRequest & AddAllocationResourceTags(const RequestIpamResourceTag &value)
void SetPublicIpSource(const IpamPoolPublicIpSource &value)
CreateIpamPoolRequest & WithClientToken(const char *value)
CreateIpamPoolRequest & WithSourceResource(const IpamPoolSourceResourceRequest &value)
CreateIpamPoolRequest & WithLocale(Aws::String &&value)
CreateIpamPoolRequest & WithAllocationResourceTags(const Aws::Vector< RequestIpamResourceTag > &value)
void SetClientToken(const Aws::String &value)
const IpamPoolAwsService & GetAwsService() const
CreateIpamPoolRequest & WithSourceResource(IpamPoolSourceResourceRequest &&value)
void SetDescription(const Aws::String &value)
CreateIpamPoolRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateIpamPoolRequest & WithDescription(const char *value)
const IpamPoolSourceResourceRequest & GetSourceResource() const
CreateIpamPoolRequest & WithAllocationResourceTags(Aws::Vector< RequestIpamResourceTag > &&value)
CreateIpamPoolRequest & WithAutoImport(bool value)
CreateIpamPoolRequest & WithDescription(const Aws::String &value)
CreateIpamPoolRequest & WithSourceIpamPoolId(const Aws::String &value)
void SetAwsService(const IpamPoolAwsService &value)
CreateIpamPoolRequest & WithIpamScopeId(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateIpamPoolRequest & WithDryRun(bool value)
CreateIpamPoolRequest & WithAllocationMinNetmaskLength(int value)
CreateIpamPoolRequest & WithClientToken(const Aws::String &value)
CreateIpamPoolRequest & WithLocale(const Aws::String &value)
CreateIpamPoolRequest & AddTagSpecifications(TagSpecification &&value)
const AddressFamily & GetAddressFamily() const
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetAwsService(IpamPoolAwsService &&value)
CreateIpamPoolRequest & AddAllocationResourceTags(RequestIpamResourceTag &&value)
CreateIpamPoolRequest & WithIpamScopeId(const char *value)
void SetLocale(const Aws::String &value)
void SetPublicIpSource(IpamPoolPublicIpSource &&value)
CreateIpamPoolRequest & WithSourceIpamPoolId(const char *value)
void SetSourceIpamPoolId(const Aws::String &value)
void SetSourceResource(const IpamPoolSourceResourceRequest &value)
CreateIpamPoolRequest & WithAllocationMaxNetmaskLength(int value)
CreateIpamPoolRequest & WithDescription(Aws::String &&value)
void SetAllocationResourceTags(const Aws::Vector< RequestIpamResourceTag > &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateIpamPoolRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetSourceResource(IpamPoolSourceResourceRequest &&value)
CreateIpamPoolRequest & WithPublicIpSource(const IpamPoolPublicIpSource &value)
CreateIpamPoolRequest & WithSourceIpamPoolId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector