AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/DomainType.h>
12#include <aws/ec2/model/ServiceManaged.h>
13#include <aws/ec2/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
32class Address {
33 public:
34 AWS_EC2_API Address() = default;
35 AWS_EC2_API Address(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API Address& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
46 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
47 template <typename AllocationIdT = Aws::String>
48 void SetAllocationId(AllocationIdT&& value) {
49 m_allocationIdHasBeenSet = true;
50 m_allocationId = std::forward<AllocationIdT>(value);
51 }
52 template <typename AllocationIdT = Aws::String>
53 Address& WithAllocationId(AllocationIdT&& value) {
54 SetAllocationId(std::forward<AllocationIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAssociationId() const { return m_associationId; }
64 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
65 template <typename AssociationIdT = Aws::String>
66 void SetAssociationId(AssociationIdT&& value) {
67 m_associationIdHasBeenSet = true;
68 m_associationId = std::forward<AssociationIdT>(value);
69 }
70 template <typename AssociationIdT = Aws::String>
71 Address& WithAssociationId(AssociationIdT&& value) {
72 SetAssociationId(std::forward<AssociationIdT>(value));
73 return *this;
74 }
76
78
81 inline DomainType GetDomain() const { return m_domain; }
82 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
83 inline void SetDomain(DomainType value) {
84 m_domainHasBeenSet = true;
85 m_domain = value;
86 }
87 inline Address& WithDomain(DomainType value) {
88 SetDomain(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
98 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
99 template <typename NetworkInterfaceIdT = Aws::String>
100 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
101 m_networkInterfaceIdHasBeenSet = true;
102 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
103 }
104 template <typename NetworkInterfaceIdT = Aws::String>
105 Address& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) {
106 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetNetworkInterfaceOwnerId() const { return m_networkInterfaceOwnerId; }
117 inline bool NetworkInterfaceOwnerIdHasBeenSet() const { return m_networkInterfaceOwnerIdHasBeenSet; }
118 template <typename NetworkInterfaceOwnerIdT = Aws::String>
119 void SetNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT&& value) {
120 m_networkInterfaceOwnerIdHasBeenSet = true;
121 m_networkInterfaceOwnerId = std::forward<NetworkInterfaceOwnerIdT>(value);
122 }
123 template <typename NetworkInterfaceOwnerIdT = Aws::String>
124 Address& WithNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT&& value) {
125 SetNetworkInterfaceOwnerId(std::forward<NetworkInterfaceOwnerIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
135 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
136 template <typename PrivateIpAddressT = Aws::String>
137 void SetPrivateIpAddress(PrivateIpAddressT&& value) {
138 m_privateIpAddressHasBeenSet = true;
139 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
140 }
141 template <typename PrivateIpAddressT = Aws::String>
142 Address& WithPrivateIpAddress(PrivateIpAddressT&& value) {
143 SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Vector<Tag>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Vector<Tag>>
160 Address& WithTags(TagsT&& value) {
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsT = Tag>
165 Address& AddTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace_back(std::forward<TagsT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
177 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
178 template <typename PublicIpv4PoolT = Aws::String>
179 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) {
180 m_publicIpv4PoolHasBeenSet = true;
181 m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value);
182 }
183 template <typename PublicIpv4PoolT = Aws::String>
184 Address& WithPublicIpv4Pool(PublicIpv4PoolT&& value) {
185 SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
196 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
197 template <typename NetworkBorderGroupT = Aws::String>
198 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
199 m_networkBorderGroupHasBeenSet = true;
200 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
201 }
202 template <typename NetworkBorderGroupT = Aws::String>
203 Address& WithNetworkBorderGroup(NetworkBorderGroupT&& value) {
204 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
214 inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
215 template <typename CustomerOwnedIpT = Aws::String>
216 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) {
217 m_customerOwnedIpHasBeenSet = true;
218 m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value);
219 }
220 template <typename CustomerOwnedIpT = Aws::String>
221 Address& WithCustomerOwnedIp(CustomerOwnedIpT&& value) {
222 SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
232 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
233 template <typename CustomerOwnedIpv4PoolT = Aws::String>
234 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
235 m_customerOwnedIpv4PoolHasBeenSet = true;
236 m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value);
237 }
238 template <typename CustomerOwnedIpv4PoolT = Aws::String>
239 Address& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
240 SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value));
241 return *this;
242 }
244
246
251 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
252 inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
253 template <typename CarrierIpT = Aws::String>
254 void SetCarrierIp(CarrierIpT&& value) {
255 m_carrierIpHasBeenSet = true;
256 m_carrierIp = std::forward<CarrierIpT>(value);
257 }
258 template <typename CarrierIpT = Aws::String>
259 Address& WithCarrierIp(CarrierIpT&& value) {
260 SetCarrierIp(std::forward<CarrierIpT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
270 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
271 template <typename SubnetIdT = Aws::String>
272 void SetSubnetId(SubnetIdT&& value) {
273 m_subnetIdHasBeenSet = true;
274 m_subnetId = std::forward<SubnetIdT>(value);
275 }
276 template <typename SubnetIdT = Aws::String>
277 Address& WithSubnetId(SubnetIdT&& value) {
278 SetSubnetId(std::forward<SubnetIdT>(value));
279 return *this;
280 }
282
284
288 inline ServiceManaged GetServiceManaged() const { return m_serviceManaged; }
289 inline bool ServiceManagedHasBeenSet() const { return m_serviceManagedHasBeenSet; }
291 m_serviceManagedHasBeenSet = true;
292 m_serviceManaged = value;
293 }
295 SetServiceManaged(value);
296 return *this;
297 }
299
301
304 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
305 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
306 template <typename InstanceIdT = Aws::String>
307 void SetInstanceId(InstanceIdT&& value) {
308 m_instanceIdHasBeenSet = true;
309 m_instanceId = std::forward<InstanceIdT>(value);
310 }
311 template <typename InstanceIdT = Aws::String>
312 Address& WithInstanceId(InstanceIdT&& value) {
313 SetInstanceId(std::forward<InstanceIdT>(value));
314 return *this;
315 }
317
319
322 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
323 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
324 template <typename PublicIpT = Aws::String>
325 void SetPublicIp(PublicIpT&& value) {
326 m_publicIpHasBeenSet = true;
327 m_publicIp = std::forward<PublicIpT>(value);
328 }
329 template <typename PublicIpT = Aws::String>
330 Address& WithPublicIp(PublicIpT&& value) {
331 SetPublicIp(std::forward<PublicIpT>(value));
332 return *this;
333 }
335 private:
336 Aws::String m_allocationId;
337
338 Aws::String m_associationId;
339
341
342 Aws::String m_networkInterfaceId;
343
344 Aws::String m_networkInterfaceOwnerId;
345
346 Aws::String m_privateIpAddress;
347
348 Aws::Vector<Tag> m_tags;
349
350 Aws::String m_publicIpv4Pool;
351
352 Aws::String m_networkBorderGroup;
353
354 Aws::String m_customerOwnedIp;
355
356 Aws::String m_customerOwnedIpv4Pool;
357
358 Aws::String m_carrierIp;
359
360 Aws::String m_subnetId;
361
362 ServiceManaged m_serviceManaged{ServiceManaged::NOT_SET};
363
364 Aws::String m_instanceId;
365
366 Aws::String m_publicIp;
367 bool m_allocationIdHasBeenSet = false;
368 bool m_associationIdHasBeenSet = false;
369 bool m_domainHasBeenSet = false;
370 bool m_networkInterfaceIdHasBeenSet = false;
371 bool m_networkInterfaceOwnerIdHasBeenSet = false;
372 bool m_privateIpAddressHasBeenSet = false;
373 bool m_tagsHasBeenSet = false;
374 bool m_publicIpv4PoolHasBeenSet = false;
375 bool m_networkBorderGroupHasBeenSet = false;
376 bool m_customerOwnedIpHasBeenSet = false;
377 bool m_customerOwnedIpv4PoolHasBeenSet = false;
378 bool m_carrierIpHasBeenSet = false;
379 bool m_subnetIdHasBeenSet = false;
380 bool m_serviceManagedHasBeenSet = false;
381 bool m_instanceIdHasBeenSet = false;
382 bool m_publicIpHasBeenSet = false;
383};
384
385} // namespace Model
386} // namespace EC2
387} // namespace Aws
void SetSubnetId(SubnetIdT &&value)
Definition Address.h:272
Address & WithCustomerOwnedIp(CustomerOwnedIpT &&value)
Definition Address.h:221
const Aws::String & GetPublicIpv4Pool() const
Definition Address.h:176
Address & AddTags(TagsT &&value)
Definition Address.h:165
bool AllocationIdHasBeenSet() const
Definition Address.h:46
Address & WithServiceManaged(ServiceManaged value)
Definition Address.h:294
ServiceManaged GetServiceManaged() const
Definition Address.h:288
void SetPublicIp(PublicIpT &&value)
Definition Address.h:325
const Aws::Vector< Tag > & GetTags() const
Definition Address.h:152
bool NetworkBorderGroupHasBeenSet() const
Definition Address.h:196
bool DomainHasBeenSet() const
Definition Address.h:82
void SetServiceManaged(ServiceManaged value)
Definition Address.h:290
bool AssociationIdHasBeenSet() const
Definition Address.h:64
void SetDomain(DomainType value)
Definition Address.h:83
Address & WithSubnetId(SubnetIdT &&value)
Definition Address.h:277
const Aws::String & GetPrivateIpAddress() const
Definition Address.h:134
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Address & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
Definition Address.h:203
const Aws::String & GetAllocationId() const
Definition Address.h:45
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition Address.h:232
bool SubnetIdHasBeenSet() const
Definition Address.h:270
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
Definition Address.h:100
bool InstanceIdHasBeenSet() const
Definition Address.h:305
Address & WithPublicIp(PublicIpT &&value)
Definition Address.h:330
bool PublicIpHasBeenSet() const
Definition Address.h:323
bool NetworkInterfaceIdHasBeenSet() const
Definition Address.h:98
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Address.h:234
Address & WithAllocationId(AllocationIdT &&value)
Definition Address.h:53
bool CarrierIpHasBeenSet() const
Definition Address.h:252
void SetCustomerOwnedIp(CustomerOwnedIpT &&value)
Definition Address.h:216
const Aws::String & GetInstanceId() const
Definition Address.h:304
void SetAllocationId(AllocationIdT &&value)
Definition Address.h:48
Address & WithCarrierIp(CarrierIpT &&value)
Definition Address.h:259
const Aws::String & GetCustomerOwnedIp() const
Definition Address.h:213
const Aws::String & GetNetworkBorderGroup() const
Definition Address.h:195
Address & WithNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT &&value)
Definition Address.h:124
const Aws::String & GetCarrierIp() const
Definition Address.h:251
void SetPublicIpv4Pool(PublicIpv4PoolT &&value)
Definition Address.h:179
const Aws::String & GetNetworkInterfaceId() const
Definition Address.h:97
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
Definition Address.h:198
void SetNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT &&value)
Definition Address.h:119
Address & WithAssociationId(AssociationIdT &&value)
Definition Address.h:71
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition Address.h:231
const Aws::String & GetSubnetId() const
Definition Address.h:269
bool PublicIpv4PoolHasBeenSet() const
Definition Address.h:177
AWS_EC2_API Address()=default
AWS_EC2_API Address & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CustomerOwnedIpHasBeenSet() const
Definition Address.h:214
void SetInstanceId(InstanceIdT &&value)
Definition Address.h:307
bool NetworkInterfaceOwnerIdHasBeenSet() const
Definition Address.h:117
bool TagsHasBeenSet() const
Definition Address.h:153
AWS_EC2_API Address(const Aws::Utils::Xml::XmlNode &xmlNode)
Address & WithTags(TagsT &&value)
Definition Address.h:160
Address & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
Definition Address.h:105
void SetCarrierIp(CarrierIpT &&value)
Definition Address.h:254
void SetAssociationId(AssociationIdT &&value)
Definition Address.h:66
const Aws::String & GetNetworkInterfaceOwnerId() const
Definition Address.h:116
Address & WithInstanceId(InstanceIdT &&value)
Definition Address.h:312
Address & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
Definition Address.h:184
DomainType GetDomain() const
Definition Address.h:81
Address & WithDomain(DomainType value)
Definition Address.h:87
void SetPrivateIpAddress(PrivateIpAddressT &&value)
Definition Address.h:137
void SetTags(TagsT &&value)
Definition Address.h:155
bool PrivateIpAddressHasBeenSet() const
Definition Address.h:135
Address & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Address.h:239
Address & WithPrivateIpAddress(PrivateIpAddressT &&value)
Definition Address.h:142
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetAssociationId() const
Definition Address.h:63
bool ServiceManagedHasBeenSet() const
Definition Address.h:289
const Aws::String & GetPublicIp() const
Definition Address.h:322
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream