AWS SDK for C++  1.9.125
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 
207  inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; }
208 
219  inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
220 
231  inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; }
232 
243  inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); }
244 
255  inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); }
256 
267  inline AllocateAddressRequest& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;}
268 
279  inline AllocateAddressRequest& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;}
280 
291  inline AllocateAddressRequest& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;}
292 
293 
299  inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
300 
306  inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
307 
313  inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
314 
320  inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
321 
327  inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
328 
334  inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;}
335 
341  inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
342 
348  inline AllocateAddressRequest& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
349 
350 
357  inline bool GetDryRun() const{ return m_dryRun; }
358 
365  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
366 
373  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
374 
381  inline AllocateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
382 
383 
387  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
388 
392  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
393 
397  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
398 
402  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
403 
407  inline AllocateAddressRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
408 
412  inline AllocateAddressRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
413 
417  inline AllocateAddressRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
418 
422  inline AllocateAddressRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
423 
424  private:
425 
426  DomainType m_domain;
427  bool m_domainHasBeenSet;
428 
429  Aws::String m_address;
430  bool m_addressHasBeenSet;
431 
432  Aws::String m_publicIpv4Pool;
433  bool m_publicIpv4PoolHasBeenSet;
434 
435  Aws::String m_networkBorderGroup;
436  bool m_networkBorderGroupHasBeenSet;
437 
438  Aws::String m_customerOwnedIpv4Pool;
439  bool m_customerOwnedIpv4PoolHasBeenSet;
440 
441  bool m_dryRun;
442  bool m_dryRunHasBeenSet;
443 
444  Aws::Vector<TagSpecification> m_tagSpecifications;
445  bool m_tagSpecificationsHasBeenSet;
446  };
447 
448 } // namespace Model
449 } // namespace EC2
450 } // 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:381
Aws::EC2::Model::AllocateAddressRequest
Definition: AllocateAddressRequest.h:25
Aws::EC2::Model::AllocateAddressRequest::CustomerOwnedIpv4PoolHasBeenSet
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition: AllocateAddressRequest.h:306
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:412
Aws::EC2::Model::AllocateAddressRequest::AllocateAddressRequest
AllocateAddressRequest()
Aws::EC2::Model::AllocateAddressRequest::WithNetworkBorderGroup
AllocateAddressRequest & WithNetworkBorderGroup(const char *value)
Definition: AllocateAddressRequest.h:291
Aws::EC2::Model::AllocateAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(Aws::String &&value)
Definition: AllocateAddressRequest.h:243
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:357
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:422
Aws::EC2::Model::AllocateAddressRequest::SetNetworkBorderGroup
void SetNetworkBorderGroup(const char *value)
Definition: AllocateAddressRequest.h:255
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:402
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:417
Aws::EC2::Model::AllocateAddressRequest::WithCustomerOwnedIpv4Pool
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(const char *value)
Definition: AllocateAddressRequest.h:348
Aws::EC2::Model::AllocateAddressRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AllocateAddressRequest::WithCustomerOwnedIpv4Pool
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(Aws::String &&value)
Definition: AllocateAddressRequest.h:341
Aws::EC2::Model::AllocateAddressRequest::SetCustomerOwnedIpv4Pool
void SetCustomerOwnedIpv4Pool(Aws::String &&value)
Definition: AllocateAddressRequest.h:320
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:313
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:327
Aws::EC2::Model::AllocateAddressRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: AllocateAddressRequest.h:397
AWSString.h
Aws::EC2::Model::AllocateAddressRequest::NetworkBorderGroupHasBeenSet
bool NetworkBorderGroupHasBeenSet() const
Definition: AllocateAddressRequest.h:219
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:334
Aws::EC2::Model::AllocateAddressRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: AllocateAddressRequest.h:387
Aws::EC2::Model::AllocateAddressRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AllocateAddressRequest.h:365
Aws::EC2::Model::AllocateAddressRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: AllocateAddressRequest.h:392
Aws::EC2::Model::AllocateAddressRequest::WithTagSpecifications
AllocateAddressRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: AllocateAddressRequest.h:407
Aws::EC2::Model::AllocateAddressRequest::SetDryRun
void SetDryRun(bool value)
Definition: AllocateAddressRequest.h:373
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:299
Aws::EC2::Model::AllocateAddressRequest::WithNetworkBorderGroup
AllocateAddressRequest & WithNetworkBorderGroup(Aws::String &&value)
Definition: AllocateAddressRequest.h:279
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:267
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:231
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::AllocateAddressRequest::GetNetworkBorderGroup
const Aws::String & GetNetworkBorderGroup() const
Definition: AllocateAddressRequest.h:207
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