AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AllocateAddressRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/DomainType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API AllocateAddressRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline DomainType GetDomain() const { return m_domain; }
47 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
48 inline void SetDomain(DomainType value) { m_domainHasBeenSet = true; m_domain = value; }
49 inline AllocateAddressRequest& WithDomain(DomainType value) { SetDomain(value); return *this;}
51
53
57 inline const Aws::String& GetAddress() const { return m_address; }
58 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
59 template<typename AddressT = Aws::String>
60 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
61 template<typename AddressT = Aws::String>
62 AllocateAddressRequest& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
64
66
71 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
72 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
73 template<typename PublicIpv4PoolT = Aws::String>
74 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value); }
75 template<typename PublicIpv4PoolT = Aws::String>
76 AllocateAddressRequest& WithPublicIpv4Pool(PublicIpv4PoolT&& value) { SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value)); return *this;}
78
80
86 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
87 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
88 template<typename NetworkBorderGroupT = Aws::String>
89 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value); }
90 template<typename NetworkBorderGroupT = Aws::String>
91 AllocateAddressRequest& WithNetworkBorderGroup(NetworkBorderGroupT&& value) { SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value)); return *this;}
93
95
100 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
101 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
102 template<typename CustomerOwnedIpv4PoolT = Aws::String>
103 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value); }
104 template<typename CustomerOwnedIpv4PoolT = Aws::String>
105 AllocateAddressRequest& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value)); return *this;}
107
109
112 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
113 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
114 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
115 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
116 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
117 AllocateAddressRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
118 template<typename TagSpecificationsT = TagSpecification>
119 AllocateAddressRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
121
123
130 inline const Aws::String& GetIpamPoolId() const { return m_ipamPoolId; }
131 inline bool IpamPoolIdHasBeenSet() const { return m_ipamPoolIdHasBeenSet; }
132 template<typename IpamPoolIdT = Aws::String>
133 void SetIpamPoolId(IpamPoolIdT&& value) { m_ipamPoolIdHasBeenSet = true; m_ipamPoolId = std::forward<IpamPoolIdT>(value); }
134 template<typename IpamPoolIdT = Aws::String>
135 AllocateAddressRequest& WithIpamPoolId(IpamPoolIdT&& value) { SetIpamPoolId(std::forward<IpamPoolIdT>(value)); return *this;}
137
139
145 inline bool GetDryRun() const { return m_dryRun; }
146 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
147 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
148 inline AllocateAddressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
150 private:
151
153 bool m_domainHasBeenSet = false;
154
155 Aws::String m_address;
156 bool m_addressHasBeenSet = false;
157
158 Aws::String m_publicIpv4Pool;
159 bool m_publicIpv4PoolHasBeenSet = false;
160
161 Aws::String m_networkBorderGroup;
162 bool m_networkBorderGroupHasBeenSet = false;
163
164 Aws::String m_customerOwnedIpv4Pool;
165 bool m_customerOwnedIpv4PoolHasBeenSet = false;
166
167 Aws::Vector<TagSpecification> m_tagSpecifications;
168 bool m_tagSpecificationsHasBeenSet = false;
169
170 Aws::String m_ipamPoolId;
171 bool m_ipamPoolIdHasBeenSet = false;
172
173 bool m_dryRun{false};
174 bool m_dryRunHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace EC2
179} // namespace Aws
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
AllocateAddressRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API AllocateAddressRequest()=default
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetPublicIpv4Pool(PublicIpv4PoolT &&value)
AllocateAddressRequest & WithTagSpecifications(TagSpecificationsT &&value)
AllocateAddressRequest & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
const Aws::String & GetNetworkBorderGroup() const
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
AllocateAddressRequest & WithAddress(AddressT &&value)
AllocateAddressRequest & WithDryRun(bool value)
void SetTagSpecifications(TagSpecificationsT &&value)
AllocateAddressRequest & WithIpamPoolId(IpamPoolIdT &&value)
AllocateAddressRequest & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
AllocateAddressRequest & WithDomain(DomainType value)
AllocateAddressRequest & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
const Aws::String & GetCustomerOwnedIpv4Pool() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector