AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IpamScopeIdT = Aws::String>
67 void SetIpamScopeId(IpamScopeIdT&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::forward<IpamScopeIdT>(value); }
68 template<typename IpamScopeIdT = Aws::String>
69 CreateIpamPoolRequest& WithIpamScopeId(IpamScopeIdT&& value) { SetIpamScopeId(std::forward<IpamScopeIdT>(value)); return *this;}
71
73
85 inline const Aws::String& GetLocale() const { return m_locale; }
86 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
87 template<typename LocaleT = Aws::String>
88 void SetLocale(LocaleT&& value) { m_localeHasBeenSet = true; m_locale = std::forward<LocaleT>(value); }
89 template<typename LocaleT = Aws::String>
90 CreateIpamPoolRequest& WithLocale(LocaleT&& value) { SetLocale(std::forward<LocaleT>(value)); return *this;}
92
94
99 inline const Aws::String& GetSourceIpamPoolId() const { return m_sourceIpamPoolId; }
100 inline bool SourceIpamPoolIdHasBeenSet() const { return m_sourceIpamPoolIdHasBeenSet; }
101 template<typename SourceIpamPoolIdT = Aws::String>
102 void SetSourceIpamPoolId(SourceIpamPoolIdT&& value) { m_sourceIpamPoolIdHasBeenSet = true; m_sourceIpamPoolId = std::forward<SourceIpamPoolIdT>(value); }
103 template<typename SourceIpamPoolIdT = Aws::String>
104 CreateIpamPoolRequest& WithSourceIpamPoolId(SourceIpamPoolIdT&& value) { SetSourceIpamPoolId(std::forward<SourceIpamPoolIdT>(value)); return *this;}
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 template<typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
115 template<typename DescriptionT = Aws::String>
116 CreateIpamPoolRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
118
120
124 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
125 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
126 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
129
131
143 inline bool GetAutoImport() const { return m_autoImport; }
144 inline bool AutoImportHasBeenSet() const { return m_autoImportHasBeenSet; }
145 inline void SetAutoImport(bool value) { m_autoImportHasBeenSet = true; m_autoImport = value; }
146 inline CreateIpamPoolRequest& WithAutoImport(bool value) { SetAutoImport(value); return *this;}
148
150
155 inline bool GetPubliclyAdvertisable() const { return m_publiclyAdvertisable; }
156 inline bool PubliclyAdvertisableHasBeenSet() const { return m_publiclyAdvertisableHasBeenSet; }
157 inline void SetPubliclyAdvertisable(bool value) { m_publiclyAdvertisableHasBeenSet = true; m_publiclyAdvertisable = value; }
158 inline CreateIpamPoolRequest& WithPubliclyAdvertisable(bool value) { SetPubliclyAdvertisable(value); return *this;}
160
162
168 inline int GetAllocationMinNetmaskLength() const { return m_allocationMinNetmaskLength; }
169 inline bool AllocationMinNetmaskLengthHasBeenSet() const { return m_allocationMinNetmaskLengthHasBeenSet; }
170 inline void SetAllocationMinNetmaskLength(int value) { m_allocationMinNetmaskLengthHasBeenSet = true; m_allocationMinNetmaskLength = value; }
173
175
181 inline int GetAllocationMaxNetmaskLength() const { return m_allocationMaxNetmaskLength; }
182 inline bool AllocationMaxNetmaskLengthHasBeenSet() const { return m_allocationMaxNetmaskLengthHasBeenSet; }
183 inline void SetAllocationMaxNetmaskLength(int value) { m_allocationMaxNetmaskLengthHasBeenSet = true; m_allocationMaxNetmaskLength = value; }
186
188
193 inline int GetAllocationDefaultNetmaskLength() const { return m_allocationDefaultNetmaskLength; }
194 inline bool AllocationDefaultNetmaskLengthHasBeenSet() const { return m_allocationDefaultNetmaskLengthHasBeenSet; }
195 inline void SetAllocationDefaultNetmaskLength(int value) { m_allocationDefaultNetmaskLengthHasBeenSet = true; m_allocationDefaultNetmaskLength = value; }
198
200
207 inline const Aws::Vector<RequestIpamResourceTag>& GetAllocationResourceTags() const { return m_allocationResourceTags; }
208 inline bool AllocationResourceTagsHasBeenSet() const { return m_allocationResourceTagsHasBeenSet; }
209 template<typename AllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
210 void SetAllocationResourceTags(AllocationResourceTagsT&& value) { m_allocationResourceTagsHasBeenSet = true; m_allocationResourceTags = std::forward<AllocationResourceTagsT>(value); }
211 template<typename AllocationResourceTagsT = Aws::Vector<RequestIpamResourceTag>>
212 CreateIpamPoolRequest& WithAllocationResourceTags(AllocationResourceTagsT&& value) { SetAllocationResourceTags(std::forward<AllocationResourceTagsT>(value)); return *this;}
213 template<typename AllocationResourceTagsT = RequestIpamResourceTag>
214 CreateIpamPoolRequest& AddAllocationResourceTags(AllocationResourceTagsT&& value) { m_allocationResourceTagsHasBeenSet = true; m_allocationResourceTags.emplace_back(std::forward<AllocationResourceTagsT>(value)); return *this; }
216
218
225 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
226 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
227 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
228 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
229 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
230 CreateIpamPoolRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
231 template<typename TagSpecificationsT = TagSpecification>
232 CreateIpamPoolRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
234
236
242 inline const Aws::String& GetClientToken() const { return m_clientToken; }
243 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
244 template<typename ClientTokenT = Aws::String>
245 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
246 template<typename ClientTokenT = Aws::String>
247 CreateIpamPoolRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
249
251
256 inline IpamPoolAwsService GetAwsService() const { return m_awsService; }
257 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
258 inline void SetAwsService(IpamPoolAwsService value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
261
263
275 inline IpamPoolPublicIpSource GetPublicIpSource() const { return m_publicIpSource; }
276 inline bool PublicIpSourceHasBeenSet() const { return m_publicIpSourceHasBeenSet; }
277 inline void SetPublicIpSource(IpamPoolPublicIpSource value) { m_publicIpSourceHasBeenSet = true; m_publicIpSource = value; }
280
282
285 inline const IpamPoolSourceResourceRequest& GetSourceResource() const { return m_sourceResource; }
286 inline bool SourceResourceHasBeenSet() const { return m_sourceResourceHasBeenSet; }
287 template<typename SourceResourceT = IpamPoolSourceResourceRequest>
288 void SetSourceResource(SourceResourceT&& value) { m_sourceResourceHasBeenSet = true; m_sourceResource = std::forward<SourceResourceT>(value); }
289 template<typename SourceResourceT = IpamPoolSourceResourceRequest>
290 CreateIpamPoolRequest& WithSourceResource(SourceResourceT&& value) { SetSourceResource(std::forward<SourceResourceT>(value)); return *this;}
292 private:
293
294 bool m_dryRun{false};
295 bool m_dryRunHasBeenSet = false;
296
297 Aws::String m_ipamScopeId;
298 bool m_ipamScopeIdHasBeenSet = false;
299
300 Aws::String m_locale;
301 bool m_localeHasBeenSet = false;
302
303 Aws::String m_sourceIpamPoolId;
304 bool m_sourceIpamPoolIdHasBeenSet = false;
305
306 Aws::String m_description;
307 bool m_descriptionHasBeenSet = false;
308
309 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
310 bool m_addressFamilyHasBeenSet = false;
311
312 bool m_autoImport{false};
313 bool m_autoImportHasBeenSet = false;
314
315 bool m_publiclyAdvertisable{false};
316 bool m_publiclyAdvertisableHasBeenSet = false;
317
318 int m_allocationMinNetmaskLength{0};
319 bool m_allocationMinNetmaskLengthHasBeenSet = false;
320
321 int m_allocationMaxNetmaskLength{0};
322 bool m_allocationMaxNetmaskLengthHasBeenSet = false;
323
324 int m_allocationDefaultNetmaskLength{0};
325 bool m_allocationDefaultNetmaskLengthHasBeenSet = false;
326
327 Aws::Vector<RequestIpamResourceTag> m_allocationResourceTags;
328 bool m_allocationResourceTagsHasBeenSet = false;
329
330 Aws::Vector<TagSpecification> m_tagSpecifications;
331 bool m_tagSpecificationsHasBeenSet = false;
332
334 bool m_clientTokenHasBeenSet = true;
335
337 bool m_awsServiceHasBeenSet = false;
338
340 bool m_publicIpSourceHasBeenSet = false;
341
342 IpamPoolSourceResourceRequest m_sourceResource;
343 bool m_sourceResourceHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace EC2
348} // namespace Aws
CreateIpamPoolRequest & AddAllocationResourceTags(AllocationResourceTagsT &&value)
CreateIpamPoolRequest & WithPublicIpSource(IpamPoolPublicIpSource value)
CreateIpamPoolRequest & WithDescription(DescriptionT &&value)
CreateIpamPoolRequest & WithClientToken(ClientTokenT &&value)
CreateIpamPoolRequest & WithIpamScopeId(IpamScopeIdT &&value)
AWS_EC2_API CreateIpamPoolRequest()=default
CreateIpamPoolRequest & WithLocale(LocaleT &&value)
CreateIpamPoolRequest & WithPubliclyAdvertisable(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
IpamPoolPublicIpSource GetPublicIpSource() const
CreateIpamPoolRequest & WithSourceIpamPoolId(SourceIpamPoolIdT &&value)
const Aws::String & GetSourceIpamPoolId() const
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(TagSpecificationsT &&value)
CreateIpamPoolRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< RequestIpamResourceTag > & GetAllocationResourceTags() const
CreateIpamPoolRequest & WithAddressFamily(AddressFamily value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateIpamPoolRequest & WithAllocationDefaultNetmaskLength(int value)
CreateIpamPoolRequest & WithAllocationResourceTags(AllocationResourceTagsT &&value)
const IpamPoolSourceResourceRequest & GetSourceResource() const
CreateIpamPoolRequest & WithAutoImport(bool value)
CreateIpamPoolRequest & WithSourceResource(SourceResourceT &&value)
void SetPublicIpSource(IpamPoolPublicIpSource value)
CreateIpamPoolRequest & WithAwsService(IpamPoolAwsService value)
CreateIpamPoolRequest & WithDryRun(bool value)
CreateIpamPoolRequest & WithAllocationMinNetmaskLength(int value)
CreateIpamPoolRequest & AddTagSpecifications(TagSpecificationsT &&value)
void SetAwsService(IpamPoolAwsService value)
void SetSourceResource(SourceResourceT &&value)
void SetAllocationResourceTags(AllocationResourceTagsT &&value)
CreateIpamPoolRequest & WithAllocationMaxNetmaskLength(int value)
void SetSourceIpamPoolId(SourceIpamPoolIdT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector