AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AllocateAddressResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/DomainType.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
26 public:
27 AWS_EC2_API AllocateAddressResponse() = default;
30
32
35 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
36 template <typename AllocationIdT = Aws::String>
37 void SetAllocationId(AllocationIdT&& value) {
38 m_allocationIdHasBeenSet = true;
39 m_allocationId = std::forward<AllocationIdT>(value);
40 }
41 template <typename AllocationIdT = Aws::String>
42 AllocateAddressResponse& WithAllocationId(AllocationIdT&& value) {
43 SetAllocationId(std::forward<AllocationIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
53 template <typename PublicIpv4PoolT = Aws::String>
54 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) {
55 m_publicIpv4PoolHasBeenSet = true;
56 m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value);
57 }
58 template <typename PublicIpv4PoolT = Aws::String>
59 AllocateAddressResponse& WithPublicIpv4Pool(PublicIpv4PoolT&& value) {
60 SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
71 template <typename NetworkBorderGroupT = Aws::String>
72 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
73 m_networkBorderGroupHasBeenSet = true;
74 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
75 }
76 template <typename NetworkBorderGroupT = Aws::String>
77 AllocateAddressResponse& WithNetworkBorderGroup(NetworkBorderGroupT&& value) {
78 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
79 return *this;
80 }
82
84
87 inline DomainType GetDomain() const { return m_domain; }
88 inline void SetDomain(DomainType value) {
89 m_domainHasBeenSet = true;
90 m_domain = value;
91 }
93 SetDomain(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
103 template <typename CustomerOwnedIpT = Aws::String>
104 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) {
105 m_customerOwnedIpHasBeenSet = true;
106 m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value);
107 }
108 template <typename CustomerOwnedIpT = Aws::String>
109 AllocateAddressResponse& WithCustomerOwnedIp(CustomerOwnedIpT&& value) {
110 SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
120 template <typename CustomerOwnedIpv4PoolT = Aws::String>
121 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
122 m_customerOwnedIpv4PoolHasBeenSet = true;
123 m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value);
124 }
125 template <typename CustomerOwnedIpv4PoolT = Aws::String>
126 AllocateAddressResponse& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
127 SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
138 template <typename CarrierIpT = Aws::String>
139 void SetCarrierIp(CarrierIpT&& value) {
140 m_carrierIpHasBeenSet = true;
141 m_carrierIp = std::forward<CarrierIpT>(value);
142 }
143 template <typename CarrierIpT = Aws::String>
145 SetCarrierIp(std::forward<CarrierIpT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
156 template <typename PublicIpT = Aws::String>
157 void SetPublicIp(PublicIpT&& value) {
158 m_publicIpHasBeenSet = true;
159 m_publicIp = std::forward<PublicIpT>(value);
160 }
161 template <typename PublicIpT = Aws::String>
163 SetPublicIp(std::forward<PublicIpT>(value));
164 return *this;
165 }
167
169
170 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
171 template <typename ResponseMetadataT = ResponseMetadata>
172 void SetResponseMetadata(ResponseMetadataT&& value) {
173 m_responseMetadataHasBeenSet = true;
174 m_responseMetadata = std::forward<ResponseMetadataT>(value);
175 }
176 template <typename ResponseMetadataT = ResponseMetadata>
177 AllocateAddressResponse& WithResponseMetadata(ResponseMetadataT&& value) {
178 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_allocationId;
184
185 Aws::String m_publicIpv4Pool;
186
187 Aws::String m_networkBorderGroup;
188
190
191 Aws::String m_customerOwnedIp;
192
193 Aws::String m_customerOwnedIpv4Pool;
194
195 Aws::String m_carrierIp;
196
197 Aws::String m_publicIp;
198
199 ResponseMetadata m_responseMetadata;
200 bool m_allocationIdHasBeenSet = false;
201 bool m_publicIpv4PoolHasBeenSet = false;
202 bool m_networkBorderGroupHasBeenSet = false;
203 bool m_domainHasBeenSet = false;
204 bool m_customerOwnedIpHasBeenSet = false;
205 bool m_customerOwnedIpv4PoolHasBeenSet = false;
206 bool m_carrierIpHasBeenSet = false;
207 bool m_publicIpHasBeenSet = false;
208 bool m_responseMetadataHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace EC2
213} // namespace Aws
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
AllocateAddressResponse & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
void SetCustomerOwnedIp(CustomerOwnedIpT &&value)
AllocateAddressResponse & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
AllocateAddressResponse & WithDomain(DomainType value)
AWS_EC2_API AllocateAddressResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
AllocateAddressResponse & WithCustomerOwnedIp(CustomerOwnedIpT &&value)
AllocateAddressResponse & WithCarrierIp(CarrierIpT &&value)
AllocateAddressResponse & WithAllocationId(AllocationIdT &&value)
AllocateAddressResponse & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
AWS_EC2_API AllocateAddressResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AllocateAddressResponse & WithPublicIp(PublicIpT &&value)
AllocateAddressResponse & WithResponseMetadata(ResponseMetadataT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
void SetPublicIpv4Pool(PublicIpv4PoolT &&value)
AWS_EC2_API AllocateAddressResponse()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument