AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
AllocateAddressResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DomainType.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API AllocateAddressResponse() = default;
31
33
36 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
37 template <typename AllocationIdT = Aws::String>
38 void SetAllocationId(AllocationIdT&& value) {
39 m_allocationIdHasBeenSet = true;
40 m_allocationId = std::forward<AllocationIdT>(value);
41 }
42 template <typename AllocationIdT = Aws::String>
43 AllocateAddressResponse& WithAllocationId(AllocationIdT&& value) {
44 SetAllocationId(std::forward<AllocationIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
54 template <typename PublicIpv4PoolT = Aws::String>
55 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) {
56 m_publicIpv4PoolHasBeenSet = true;
57 m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value);
58 }
59 template <typename PublicIpv4PoolT = Aws::String>
60 AllocateAddressResponse& WithPublicIpv4Pool(PublicIpv4PoolT&& value) {
61 SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
72 template <typename NetworkBorderGroupT = Aws::String>
73 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
74 m_networkBorderGroupHasBeenSet = true;
75 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
76 }
77 template <typename NetworkBorderGroupT = Aws::String>
78 AllocateAddressResponse& WithNetworkBorderGroup(NetworkBorderGroupT&& value) {
79 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
80 return *this;
81 }
83
85
88 inline DomainType GetDomain() const { return m_domain; }
89 inline void SetDomain(DomainType value) {
90 m_domainHasBeenSet = true;
91 m_domain = value;
92 }
94 SetDomain(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
104 template <typename CustomerOwnedIpT = Aws::String>
105 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) {
106 m_customerOwnedIpHasBeenSet = true;
107 m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value);
108 }
109 template <typename CustomerOwnedIpT = Aws::String>
110 AllocateAddressResponse& WithCustomerOwnedIp(CustomerOwnedIpT&& value) {
111 SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
121 template <typename CustomerOwnedIpv4PoolT = Aws::String>
122 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
123 m_customerOwnedIpv4PoolHasBeenSet = true;
124 m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value);
125 }
126 template <typename CustomerOwnedIpv4PoolT = Aws::String>
127 AllocateAddressResponse& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
128 SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
139 template <typename CarrierIpT = Aws::String>
140 void SetCarrierIp(CarrierIpT&& value) {
141 m_carrierIpHasBeenSet = true;
142 m_carrierIp = std::forward<CarrierIpT>(value);
143 }
144 template <typename CarrierIpT = Aws::String>
146 SetCarrierIp(std::forward<CarrierIpT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
157 template <typename PublicIpT = Aws::String>
158 void SetPublicIp(PublicIpT&& value) {
159 m_publicIpHasBeenSet = true;
160 m_publicIp = std::forward<PublicIpT>(value);
161 }
162 template <typename PublicIpT = Aws::String>
164 SetPublicIp(std::forward<PublicIpT>(value));
165 return *this;
166 }
168
170
171 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
172 template <typename ResponseMetadataT = ResponseMetadata>
173 void SetResponseMetadata(ResponseMetadataT&& value) {
174 m_responseMetadataHasBeenSet = true;
175 m_responseMetadata = std::forward<ResponseMetadataT>(value);
176 }
177 template <typename ResponseMetadataT = ResponseMetadata>
178 AllocateAddressResponse& WithResponseMetadata(ResponseMetadataT&& value) {
179 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
180 return *this;
181 }
183 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
184
185 private:
186 Aws::String m_allocationId;
187
188 Aws::String m_publicIpv4Pool;
189
190 Aws::String m_networkBorderGroup;
191
193
194 Aws::String m_customerOwnedIp;
195
196 Aws::String m_customerOwnedIpv4Pool;
197
198 Aws::String m_carrierIp;
199
200 Aws::String m_publicIp;
201
202 ResponseMetadata m_responseMetadata;
203 Aws::Http::HttpResponseCode m_HttpResponseCode;
204 bool m_allocationIdHasBeenSet = false;
205 bool m_publicIpv4PoolHasBeenSet = false;
206 bool m_networkBorderGroupHasBeenSet = false;
207 bool m_domainHasBeenSet = false;
208 bool m_customerOwnedIpHasBeenSet = false;
209 bool m_customerOwnedIpv4PoolHasBeenSet = false;
210 bool m_carrierIpHasBeenSet = false;
211 bool m_publicIpHasBeenSet = false;
212 bool m_responseMetadataHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace EC2
217} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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