AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/DomainType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ServiceManaged.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 class Address
37 {
38 public:
39 AWS_EC2_API Address() = default;
40 AWS_EC2_API Address(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_EC2_API Address& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetAllocationId() const { return m_allocationId; }
52 inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; }
53 template<typename AllocationIdT = Aws::String>
54 void SetAllocationId(AllocationIdT&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::forward<AllocationIdT>(value); }
55 template<typename AllocationIdT = Aws::String>
56 Address& WithAllocationId(AllocationIdT&& value) { SetAllocationId(std::forward<AllocationIdT>(value)); return *this;}
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) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
67 template<typename AssociationIdT = Aws::String>
68 Address& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
70
72
75 inline DomainType GetDomain() const { return m_domain; }
76 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
77 inline void SetDomain(DomainType value) { m_domainHasBeenSet = true; m_domain = value; }
78 inline Address& WithDomain(DomainType value) { SetDomain(value); return *this;}
80
82
85 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
86 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
87 template<typename NetworkInterfaceIdT = Aws::String>
88 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
89 template<typename NetworkInterfaceIdT = Aws::String>
90 Address& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
92
94
98 inline const Aws::String& GetNetworkInterfaceOwnerId() const { return m_networkInterfaceOwnerId; }
99 inline bool NetworkInterfaceOwnerIdHasBeenSet() const { return m_networkInterfaceOwnerIdHasBeenSet; }
100 template<typename NetworkInterfaceOwnerIdT = Aws::String>
101 void SetNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT&& value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId = std::forward<NetworkInterfaceOwnerIdT>(value); }
102 template<typename NetworkInterfaceOwnerIdT = Aws::String>
103 Address& WithNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT&& value) { SetNetworkInterfaceOwnerId(std::forward<NetworkInterfaceOwnerIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
111 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
112 template<typename PrivateIpAddressT = Aws::String>
113 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
114 template<typename PrivateIpAddressT = Aws::String>
115 Address& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
117
119
122 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Vector<Tag>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Vector<Tag>>
127 Address& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsT = Tag>
129 Address& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
131
133
136 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
137 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
138 template<typename PublicIpv4PoolT = Aws::String>
139 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value); }
140 template<typename PublicIpv4PoolT = Aws::String>
141 Address& WithPublicIpv4Pool(PublicIpv4PoolT&& value) { SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value)); return *this;}
143
145
149 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
150 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
151 template<typename NetworkBorderGroupT = Aws::String>
152 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value); }
153 template<typename NetworkBorderGroupT = Aws::String>
154 Address& WithNetworkBorderGroup(NetworkBorderGroupT&& value) { SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value)); return *this;}
156
158
161 inline const Aws::String& GetCustomerOwnedIp() const { return m_customerOwnedIp; }
162 inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; }
163 template<typename CustomerOwnedIpT = Aws::String>
164 void SetCustomerOwnedIp(CustomerOwnedIpT&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::forward<CustomerOwnedIpT>(value); }
165 template<typename CustomerOwnedIpT = Aws::String>
166 Address& WithCustomerOwnedIp(CustomerOwnedIpT&& value) { SetCustomerOwnedIp(std::forward<CustomerOwnedIpT>(value)); return *this;}
168
170
173 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
174 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
175 template<typename CustomerOwnedIpv4PoolT = Aws::String>
176 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value); }
177 template<typename CustomerOwnedIpv4PoolT = Aws::String>
178 Address& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value)); return *this;}
180
182
187 inline const Aws::String& GetCarrierIp() const { return m_carrierIp; }
188 inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; }
189 template<typename CarrierIpT = Aws::String>
190 void SetCarrierIp(CarrierIpT&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::forward<CarrierIpT>(value); }
191 template<typename CarrierIpT = Aws::String>
192 Address& WithCarrierIp(CarrierIpT&& value) { SetCarrierIp(std::forward<CarrierIpT>(value)); return *this;}
194
196
199 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
200 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
201 template<typename SubnetIdT = Aws::String>
202 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
203 template<typename SubnetIdT = Aws::String>
204 Address& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
206
208
212 inline ServiceManaged GetServiceManaged() const { return m_serviceManaged; }
213 inline bool ServiceManagedHasBeenSet() const { return m_serviceManagedHasBeenSet; }
214 inline void SetServiceManaged(ServiceManaged value) { m_serviceManagedHasBeenSet = true; m_serviceManaged = value; }
215 inline Address& WithServiceManaged(ServiceManaged value) { SetServiceManaged(value); return *this;}
217
219
222 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
223 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
224 template<typename InstanceIdT = Aws::String>
225 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
226 template<typename InstanceIdT = Aws::String>
227 Address& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
229
231
234 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
235 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
236 template<typename PublicIpT = Aws::String>
237 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
238 template<typename PublicIpT = Aws::String>
239 Address& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
241 private:
242
243 Aws::String m_allocationId;
244 bool m_allocationIdHasBeenSet = false;
245
246 Aws::String m_associationId;
247 bool m_associationIdHasBeenSet = false;
248
250 bool m_domainHasBeenSet = false;
251
252 Aws::String m_networkInterfaceId;
253 bool m_networkInterfaceIdHasBeenSet = false;
254
255 Aws::String m_networkInterfaceOwnerId;
256 bool m_networkInterfaceOwnerIdHasBeenSet = false;
257
258 Aws::String m_privateIpAddress;
259 bool m_privateIpAddressHasBeenSet = false;
260
261 Aws::Vector<Tag> m_tags;
262 bool m_tagsHasBeenSet = false;
263
264 Aws::String m_publicIpv4Pool;
265 bool m_publicIpv4PoolHasBeenSet = false;
266
267 Aws::String m_networkBorderGroup;
268 bool m_networkBorderGroupHasBeenSet = false;
269
270 Aws::String m_customerOwnedIp;
271 bool m_customerOwnedIpHasBeenSet = false;
272
273 Aws::String m_customerOwnedIpv4Pool;
274 bool m_customerOwnedIpv4PoolHasBeenSet = false;
275
276 Aws::String m_carrierIp;
277 bool m_carrierIpHasBeenSet = false;
278
279 Aws::String m_subnetId;
280 bool m_subnetIdHasBeenSet = false;
281
282 ServiceManaged m_serviceManaged{ServiceManaged::NOT_SET};
283 bool m_serviceManagedHasBeenSet = false;
284
285 Aws::String m_instanceId;
286 bool m_instanceIdHasBeenSet = false;
287
288 Aws::String m_publicIp;
289 bool m_publicIpHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace EC2
294} // namespace Aws
void SetSubnetId(SubnetIdT &&value)
Definition Address.h:202
Address & WithCustomerOwnedIp(CustomerOwnedIpT &&value)
Definition Address.h:166
const Aws::String & GetPublicIpv4Pool() const
Definition Address.h:136
Address & AddTags(TagsT &&value)
Definition Address.h:129
bool AllocationIdHasBeenSet() const
Definition Address.h:52
Address & WithServiceManaged(ServiceManaged value)
Definition Address.h:215
ServiceManaged GetServiceManaged() const
Definition Address.h:212
void SetPublicIp(PublicIpT &&value)
Definition Address.h:237
const Aws::Vector< Tag > & GetTags() const
Definition Address.h:122
bool NetworkBorderGroupHasBeenSet() const
Definition Address.h:150
bool DomainHasBeenSet() const
Definition Address.h:76
void SetServiceManaged(ServiceManaged value)
Definition Address.h:214
bool AssociationIdHasBeenSet() const
Definition Address.h:64
void SetDomain(DomainType value)
Definition Address.h:77
Address & WithSubnetId(SubnetIdT &&value)
Definition Address.h:204
const Aws::String & GetPrivateIpAddress() const
Definition Address.h:110
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Address & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
Definition Address.h:154
const Aws::String & GetAllocationId() const
Definition Address.h:51
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition Address.h:174
bool SubnetIdHasBeenSet() const
Definition Address.h:200
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
Definition Address.h:88
bool InstanceIdHasBeenSet() const
Definition Address.h:223
Address & WithPublicIp(PublicIpT &&value)
Definition Address.h:239
bool PublicIpHasBeenSet() const
Definition Address.h:235
bool NetworkInterfaceIdHasBeenSet() const
Definition Address.h:86
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Address.h:176
Address & WithAllocationId(AllocationIdT &&value)
Definition Address.h:56
bool CarrierIpHasBeenSet() const
Definition Address.h:188
void SetCustomerOwnedIp(CustomerOwnedIpT &&value)
Definition Address.h:164
const Aws::String & GetInstanceId() const
Definition Address.h:222
void SetAllocationId(AllocationIdT &&value)
Definition Address.h:54
Address & WithCarrierIp(CarrierIpT &&value)
Definition Address.h:192
const Aws::String & GetCustomerOwnedIp() const
Definition Address.h:161
const Aws::String & GetNetworkBorderGroup() const
Definition Address.h:149
Address & WithNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT &&value)
Definition Address.h:103
const Aws::String & GetCarrierIp() const
Definition Address.h:187
void SetPublicIpv4Pool(PublicIpv4PoolT &&value)
Definition Address.h:139
const Aws::String & GetNetworkInterfaceId() const
Definition Address.h:85
void SetNetworkBorderGroup(NetworkBorderGroupT &&value)
Definition Address.h:152
void SetNetworkInterfaceOwnerId(NetworkInterfaceOwnerIdT &&value)
Definition Address.h:101
Address & WithAssociationId(AssociationIdT &&value)
Definition Address.h:68
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition Address.h:173
const Aws::String & GetSubnetId() const
Definition Address.h:199
bool PublicIpv4PoolHasBeenSet() const
Definition Address.h:137
AWS_EC2_API Address()=default
AWS_EC2_API Address & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CustomerOwnedIpHasBeenSet() const
Definition Address.h:162
void SetInstanceId(InstanceIdT &&value)
Definition Address.h:225
bool NetworkInterfaceOwnerIdHasBeenSet() const
Definition Address.h:99
bool TagsHasBeenSet() const
Definition Address.h:123
AWS_EC2_API Address(const Aws::Utils::Xml::XmlNode &xmlNode)
Address & WithTags(TagsT &&value)
Definition Address.h:127
Address & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
Definition Address.h:90
void SetCarrierIp(CarrierIpT &&value)
Definition Address.h:190
void SetAssociationId(AssociationIdT &&value)
Definition Address.h:66
const Aws::String & GetNetworkInterfaceOwnerId() const
Definition Address.h:98
Address & WithInstanceId(InstanceIdT &&value)
Definition Address.h:227
Address & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
Definition Address.h:141
DomainType GetDomain() const
Definition Address.h:75
Address & WithDomain(DomainType value)
Definition Address.h:78
void SetPrivateIpAddress(PrivateIpAddressT &&value)
Definition Address.h:113
void SetTags(TagsT &&value)
Definition Address.h:125
bool PrivateIpAddressHasBeenSet() const
Definition Address.h:111
Address & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Address.h:178
Address & WithPrivateIpAddress(PrivateIpAddressT &&value)
Definition Address.h:115
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:213
const Aws::String & GetPublicIp() const
Definition Address.h:234
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