AWS SDK for C++  1.9.66
AWS SDK for C++
AllocateAddressRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AllocateAddress"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const DomainType& GetDomain() const{ return m_domain; }
49 
56  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
57 
64  inline void SetDomain(const DomainType& value) { m_domainHasBeenSet = true; m_domain = value; }
65 
72  inline void SetDomain(DomainType&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
73 
80  inline AllocateAddressRequest& WithDomain(const DomainType& value) { SetDomain(value); return *this;}
81 
88  inline AllocateAddressRequest& WithDomain(DomainType&& value) { SetDomain(std::move(value)); return *this;}
89 
90 
95  inline const Aws::String& GetAddress() const{ return m_address; }
96 
101  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
102 
107  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
108 
113  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
114 
119  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
120 
125  inline AllocateAddressRequest& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
126 
131  inline AllocateAddressRequest& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
132 
137  inline AllocateAddressRequest& WithAddress(const char* value) { SetAddress(value); return *this;}
138 
139 
145  inline const Aws::String& GetPublicIpv4Pool() const{ return m_publicIpv4Pool; }
146 
152  inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
153 
159  inline void SetPublicIpv4Pool(const Aws::String& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = value; }
160 
166  inline void SetPublicIpv4Pool(Aws::String&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::move(value); }
167 
173  inline void SetPublicIpv4Pool(const char* value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool.assign(value); }
174 
180  inline AllocateAddressRequest& WithPublicIpv4Pool(const Aws::String& value) { SetPublicIpv4Pool(value); return *this;}
181 
187  inline AllocateAddressRequest& WithPublicIpv4Pool(Aws::String&& value) { SetPublicIpv4Pool(std::move(value)); return *this;}
188 
194  inline AllocateAddressRequest& WithPublicIpv4Pool(const char* value) { SetPublicIpv4Pool(value); return *this;}
195 
196 
210  inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
211 
225  inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
226 
240  inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
241 
255  inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
256 
270  inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
271 
285  inline AllocateAddressRequest& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;}
286 
300  inline AllocateAddressRequest& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
301 
315  inline AllocateAddressRequest& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
316 
317 
323  inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
324 
330  inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
331 
337  inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
338 
344  inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
345 
351  inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
352 
358  inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;}
359 
365  inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
366 
372  inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
373 
374 
381  inline bool GetDryRun() const{ return m_dryRun; }
382 
389  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
390 
397  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
398 
405  inline AllocateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
406 
407 
411  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
412 
416  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
417 
421  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
422 
426  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
427 
431  inline AllocateAddressRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
432 
436  inline AllocateAddressRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
437 
441  inline AllocateAddressRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
442 
446  inline AllocateAddressRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
447 
448  private:
449 
450  DomainType m_domain;
451  bool m_domainHasBeenSet;
452 
453  Aws::String m_address;
454  bool m_addressHasBeenSet;
455 
456  Aws::String m_publicIpv4Pool;
457  bool m_publicIpv4PoolHasBeenSet;
458 
459  Aws::String m_networkBorderGroup;
460  bool m_networkBorderGroupHasBeenSet;
461 
462  Aws::String m_customerOwnedIpv4Pool;
463  bool m_customerOwnedIpv4PoolHasBeenSet;
464 
465  bool m_dryRun;
466  bool m_dryRunHasBeenSet;
467 
468  Aws::Vector<TagSpecification> m_tagSpecifications;
469  bool m_tagSpecificationsHasBeenSet;
470  };
471 
472 } // namespace Model
473 } // namespace EC2
474 } // namespace Aws
TagSpecification.h
Aws::EC2::Model::AllocateAddressRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AllocateAddressRequest.h:33
Aws::EC2::Model::AllocateAddressRequest::PublicIpv4PoolHasBeenSet
bool PublicIpv4PoolHasBeenSet() const
Definition: AllocateAddressRequest.h:152
Aws::EC2::Model::AllocateAddressRequest::WithDryRun
AllocateAddressRequest & WithDryRun(bool value)
Definition: AllocateAddressRequest.h:405
Aws::EC2::Model::AllocateAddressRequest
Definition: AllocateAddressRequest.h:25
Aws::EC2::Model::AllocateAddressRequest::CustomerOwnedIpv4PoolHasBeenSet
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition: AllocateAddressRequest.h:330
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DomainType
DomainType
Definition: DomainType.h:17
Aws::EC2::Model::AllocateAddressRequest::WithTagSpecifications
AllocateAddressRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: AllocateAddressRequest.h:436
Aws::EC2::Model::AllocateAddressRequest::AllocateAddressRequest
AllocateAddressRequest()
Aws::EC2::Model::AllocateAddressRequest::WithNetworkBorderGroup
AllocateAddressRequest & WithNetworkBorderGroup(const char *value)
Definition: AllocateAddressRequest.h:315
Aws::EC2::Model::AllocateAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(Aws::String &&value)
Definition: AllocateAddressRequest.h:255
Aws::EC2::Model::AllocateAddressRequest::SetPublicIpv4Pool
void SetPublicIpv4Pool(const Aws::String &value)
Definition: AllocateAddressRequest.h:159
Aws::EC2::Model::AllocateAddressRequest::GetDryRun
bool GetDryRun() const
Definition: AllocateAddressRequest.h:381
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AllocateAddressRequest::SetPublicIpv4Pool
void SetPublicIpv4Pool(const char *value)
Definition: AllocateAddressRequest.h:173
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::AllocateAddressRequest::AddTagSpecifications
AllocateAddressRequest & AddTagSpecifications(TagSpecification &&value)
Definition: AllocateAddressRequest.h:446
Aws::EC2::Model::AllocateAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(const char *value)
Definition: AllocateAddressRequest.h:270
Aws::EC2::Model::AllocateAddressRequest::SetPublicIpv4Pool
void SetPublicIpv4Pool(Aws::String &&value)
Definition: AllocateAddressRequest.h:166
Aws::EC2::Model::AllocateAddressRequest::SetAddress
void SetAddress(const Aws::String &value)
Definition: AllocateAddressRequest.h:107
AWSVector.h
Aws::EC2::Model::AllocateAddressRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: AllocateAddressRequest.h:426
Aws::EC2::Model::AllocateAddressRequest::WithDomain
AllocateAddressRequest & WithDomain(const DomainType &value)
Definition: AllocateAddressRequest.h:80
Aws::EC2::Model::AllocateAddressRequest::AddTagSpecifications
AllocateAddressRequest & AddTagSpecifications(const TagSpecification &value)
Definition: AllocateAddressRequest.h:441
Aws::EC2::Model::AllocateAddressRequest::WithCustomerOwnedIpv4Pool
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(const char *value)
Definition: AllocateAddressRequest.h:372
Aws::EC2::Model::AllocateAddressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AllocateAddressRequest::WithCustomerOwnedIpv4Pool
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
Definition: AllocateAddressRequest.h:365
Aws::EC2::Model::AllocateAddressRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(Aws::String &&value)
Definition: AllocateAddressRequest.h:344
Aws::EC2::Model::AllocateAddressRequest::WithAddress
AllocateAddressRequest & WithAddress(const Aws::String &value)
Definition: AllocateAddressRequest.h:125
Aws::EC2::Model::AllocateAddressRequest::WithDomain
AllocateAddressRequest & WithDomain(DomainType &&value)
Definition: AllocateAddressRequest.h:88
Aws::EC2::Model::AllocateAddressRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
DomainType.h
Aws::EC2::Model::AllocateAddressRequest::WithAddress
AllocateAddressRequest & WithAddress(Aws::String &&value)
Definition: AllocateAddressRequest.h:131
Aws::EC2::Model::AllocateAddressRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(const Aws::String &value)
Definition: AllocateAddressRequest.h:337
EC2Request.h
Aws::EC2::Model::AllocateAddressRequest::WithPublicIpv4Pool
AllocateAddressRequest & WithPublicIpv4Pool(Aws::String &&value)
Definition: AllocateAddressRequest.h:187
Aws::EC2::Model::AllocateAddressRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(const char *value)
Definition: AllocateAddressRequest.h:351
Aws::EC2::Model::AllocateAddressRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: AllocateAddressRequest.h:421
AWSString.h
Aws::EC2::Model::AllocateAddressRequest::NetworkBorderGroupHasBeenSet
bool NetworkBorderGroupHasBeenSet() const
Definition: AllocateAddressRequest.h:225
Aws::EC2::Model::AllocateAddressRequest::SetDomain
void SetDomain(DomainType &&value)
Definition: AllocateAddressRequest.h:72
Aws::EC2::Model::AllocateAddressRequest::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: AllocateAddressRequest.h:101
Aws::EC2::Model::AllocateAddressRequest::WithCustomerOwnedIpv4Pool
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(const Aws::String &value)
Definition: AllocateAddressRequest.h:358
Aws::EC2::Model::AllocateAddressRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: AllocateAddressRequest.h:411
Aws::EC2::Model::AllocateAddressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AllocateAddressRequest.h:389
Aws::EC2::Model::AllocateAddressRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: AllocateAddressRequest.h:416
Aws::EC2::Model::AllocateAddressRequest::WithTagSpecifications
AllocateAddressRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: AllocateAddressRequest.h:431
Aws::EC2::Model::AllocateAddressRequest::SetDryRun
void SetDryRun(bool value)
Definition: AllocateAddressRequest.h:397
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AllocateAddressRequest::SetAddress
void SetAddress(Aws::String &&value)
Definition: AllocateAddressRequest.h:113
Aws::EC2::Model::AllocateAddressRequest::GetCustomerOwnedIpv4Pool
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition: AllocateAddressRequest.h:323
Aws::EC2::Model::AllocateAddressRequest::WithNetworkBorderGroup
AllocateAddressRequest & WithNetworkBorderGroup(Aws::String &&value)
Definition: AllocateAddressRequest.h:300
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AllocateAddressRequest::WithAddress
AllocateAddressRequest & WithAddress(const char *value)
Definition: AllocateAddressRequest.h:137
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AllocateAddressRequest::GetAddress
const Aws::String & GetAddress() const
Definition: AllocateAddressRequest.h:95
Aws::EC2::Model::AllocateAddressRequest::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: AllocateAddressRequest.h:56
Aws::EC2::Model::AllocateAddressRequest::WithNetworkBorderGroup
AllocateAddressRequest & WithNetworkBorderGroup(const Aws::String &value)
Definition: AllocateAddressRequest.h:285
Aws::EC2::Model::AllocateAddressRequest::SetAddress
void SetAddress(const char *value)
Definition: AllocateAddressRequest.h:119
Aws::EC2::Model::AllocateAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(const Aws::String &value)
Definition: AllocateAddressRequest.h:240
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::AllocateAddressRequest::GetNetworkBorderGroup
const Aws::String & GetNetworkBorderGroup() const
Definition: AllocateAddressRequest.h:210
EC2_EXPORTS.h
Aws::EC2::Model::AllocateAddressRequest::WithPublicIpv4Pool
AllocateAddressRequest & WithPublicIpv4Pool(const char *value)
Definition: AllocateAddressRequest.h:194
Aws::EC2::Model::AllocateAddressRequest::GetPublicIpv4Pool
const Aws::String & GetPublicIpv4Pool() const
Definition: AllocateAddressRequest.h:145
Aws::EC2::Model::AllocateAddressRequest::WithPublicIpv4Pool
AllocateAddressRequest & WithPublicIpv4Pool(const Aws::String &value)
Definition: AllocateAddressRequest.h:180
Aws::EC2::Model::AllocateAddressRequest::GetDomain
const DomainType & GetDomain() const
Definition: AllocateAddressRequest.h:48
Aws::EC2::Model::AllocateAddressRequest::SetDomain
void SetDomain(const DomainType &value)
Definition: AllocateAddressRequest.h:64