AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IpamDiscoveredPublicAddress.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/IpamPublicAddressAssociationStatus.h>
13#include <aws/ec2/model/IpamPublicAddressAwsService.h>
14#include <aws/ec2/model/IpamPublicAddressSecurityGroup.h>
15#include <aws/ec2/model/IpamPublicAddressTags.h>
16#include <aws/ec2/model/IpamPublicAddressType.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Xml {
23class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2 {
27namespace Model {
28
35 public:
36 AWS_EC2_API IpamDiscoveredPublicAddress() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetIpamResourceDiscoveryId() const { return m_ipamResourceDiscoveryId; }
48 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
49 template <typename IpamResourceDiscoveryIdT = Aws::String>
50 void SetIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) {
51 m_ipamResourceDiscoveryIdHasBeenSet = true;
52 m_ipamResourceDiscoveryId = std::forward<IpamResourceDiscoveryIdT>(value);
53 }
54 template <typename IpamResourceDiscoveryIdT = Aws::String>
55 IpamDiscoveredPublicAddress& WithIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) {
56 SetIpamResourceDiscoveryId(std::forward<IpamResourceDiscoveryIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetAddressRegion() const { return m_addressRegion; }
66 inline bool AddressRegionHasBeenSet() const { return m_addressRegionHasBeenSet; }
67 template <typename AddressRegionT = Aws::String>
68 void SetAddressRegion(AddressRegionT&& value) {
69 m_addressRegionHasBeenSet = true;
70 m_addressRegion = std::forward<AddressRegionT>(value);
71 }
72 template <typename AddressRegionT = Aws::String>
74 SetAddressRegion(std::forward<AddressRegionT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetAddress() const { return m_address; }
84 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
85 template <typename AddressT = Aws::String>
86 void SetAddress(AddressT&& value) {
87 m_addressHasBeenSet = true;
88 m_address = std::forward<AddressT>(value);
89 }
90 template <typename AddressT = Aws::String>
92 SetAddress(std::forward<AddressT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetAddressOwnerId() const { return m_addressOwnerId; }
102 inline bool AddressOwnerIdHasBeenSet() const { return m_addressOwnerIdHasBeenSet; }
103 template <typename AddressOwnerIdT = Aws::String>
104 void SetAddressOwnerId(AddressOwnerIdT&& value) {
105 m_addressOwnerIdHasBeenSet = true;
106 m_addressOwnerId = std::forward<AddressOwnerIdT>(value);
107 }
108 template <typename AddressOwnerIdT = Aws::String>
110 SetAddressOwnerId(std::forward<AddressOwnerIdT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetAddressAllocationId() const { return m_addressAllocationId; }
120 inline bool AddressAllocationIdHasBeenSet() const { return m_addressAllocationIdHasBeenSet; }
121 template <typename AddressAllocationIdT = Aws::String>
122 void SetAddressAllocationId(AddressAllocationIdT&& value) {
123 m_addressAllocationIdHasBeenSet = true;
124 m_addressAllocationId = std::forward<AddressAllocationIdT>(value);
125 }
126 template <typename AddressAllocationIdT = Aws::String>
128 SetAddressAllocationId(std::forward<AddressAllocationIdT>(value));
129 return *this;
130 }
132
134
137 inline IpamPublicAddressAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
138 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
140 m_associationStatusHasBeenSet = true;
141 m_associationStatus = value;
142 }
145 return *this;
146 }
148
150
153 inline IpamPublicAddressType GetAddressType() const { return m_addressType; }
154 inline bool AddressTypeHasBeenSet() const { return m_addressTypeHasBeenSet; }
156 m_addressTypeHasBeenSet = true;
157 m_addressType = value;
158 }
160 SetAddressType(value);
161 return *this;
162 }
164
166
169 inline IpamPublicAddressAwsService GetService() const { return m_service; }
170 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
172 m_serviceHasBeenSet = true;
173 m_service = value;
174 }
176 SetService(value);
177 return *this;
178 }
180
182
185 inline const Aws::String& GetServiceResource() const { return m_serviceResource; }
186 inline bool ServiceResourceHasBeenSet() const { return m_serviceResourceHasBeenSet; }
187 template <typename ServiceResourceT = Aws::String>
188 void SetServiceResource(ServiceResourceT&& value) {
189 m_serviceResourceHasBeenSet = true;
190 m_serviceResource = std::forward<ServiceResourceT>(value);
191 }
192 template <typename ServiceResourceT = Aws::String>
194 SetServiceResource(std::forward<ServiceResourceT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetVpcId() const { return m_vpcId; }
204 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
205 template <typename VpcIdT = Aws::String>
206 void SetVpcId(VpcIdT&& value) {
207 m_vpcIdHasBeenSet = true;
208 m_vpcId = std::forward<VpcIdT>(value);
209 }
210 template <typename VpcIdT = Aws::String>
212 SetVpcId(std::forward<VpcIdT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
223 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
224 template <typename SubnetIdT = Aws::String>
225 void SetSubnetId(SubnetIdT&& value) {
226 m_subnetIdHasBeenSet = true;
227 m_subnetId = std::forward<SubnetIdT>(value);
228 }
229 template <typename SubnetIdT = Aws::String>
231 SetSubnetId(std::forward<SubnetIdT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetPublicIpv4PoolId() const { return m_publicIpv4PoolId; }
242 inline bool PublicIpv4PoolIdHasBeenSet() const { return m_publicIpv4PoolIdHasBeenSet; }
243 template <typename PublicIpv4PoolIdT = Aws::String>
244 void SetPublicIpv4PoolId(PublicIpv4PoolIdT&& value) {
245 m_publicIpv4PoolIdHasBeenSet = true;
246 m_publicIpv4PoolId = std::forward<PublicIpv4PoolIdT>(value);
247 }
248 template <typename PublicIpv4PoolIdT = Aws::String>
250 SetPublicIpv4PoolId(std::forward<PublicIpv4PoolIdT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
260 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
261 template <typename NetworkInterfaceIdT = Aws::String>
262 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
263 m_networkInterfaceIdHasBeenSet = true;
264 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
265 }
266 template <typename NetworkInterfaceIdT = Aws::String>
268 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::String& GetNetworkInterfaceDescription() const { return m_networkInterfaceDescription; }
278 inline bool NetworkInterfaceDescriptionHasBeenSet() const { return m_networkInterfaceDescriptionHasBeenSet; }
279 template <typename NetworkInterfaceDescriptionT = Aws::String>
280 void SetNetworkInterfaceDescription(NetworkInterfaceDescriptionT&& value) {
281 m_networkInterfaceDescriptionHasBeenSet = true;
282 m_networkInterfaceDescription = std::forward<NetworkInterfaceDescriptionT>(value);
283 }
284 template <typename NetworkInterfaceDescriptionT = Aws::String>
285 IpamDiscoveredPublicAddress& WithNetworkInterfaceDescription(NetworkInterfaceDescriptionT&& value) {
286 SetNetworkInterfaceDescription(std::forward<NetworkInterfaceDescriptionT>(value));
287 return *this;
288 }
290
292
295 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
296 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
297 template <typename InstanceIdT = Aws::String>
298 void SetInstanceId(InstanceIdT&& value) {
299 m_instanceIdHasBeenSet = true;
300 m_instanceId = std::forward<InstanceIdT>(value);
301 }
302 template <typename InstanceIdT = Aws::String>
304 SetInstanceId(std::forward<InstanceIdT>(value));
305 return *this;
306 }
308
310
313 inline const IpamPublicAddressTags& GetTags() const { return m_tags; }
314 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
315 template <typename TagsT = IpamPublicAddressTags>
316 void SetTags(TagsT&& value) {
317 m_tagsHasBeenSet = true;
318 m_tags = std::forward<TagsT>(value);
319 }
320 template <typename TagsT = IpamPublicAddressTags>
322 SetTags(std::forward<TagsT>(value));
323 return *this;
324 }
326
328
335 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
336 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
337 template <typename NetworkBorderGroupT = Aws::String>
338 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) {
339 m_networkBorderGroupHasBeenSet = true;
340 m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value);
341 }
342 template <typename NetworkBorderGroupT = Aws::String>
344 SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value));
345 return *this;
346 }
348
350
354 inline const Aws::Vector<IpamPublicAddressSecurityGroup>& GetSecurityGroups() const { return m_securityGroups; }
355 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
356 template <typename SecurityGroupsT = Aws::Vector<IpamPublicAddressSecurityGroup>>
357 void SetSecurityGroups(SecurityGroupsT&& value) {
358 m_securityGroupsHasBeenSet = true;
359 m_securityGroups = std::forward<SecurityGroupsT>(value);
360 }
361 template <typename SecurityGroupsT = Aws::Vector<IpamPublicAddressSecurityGroup>>
363 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
364 return *this;
365 }
366 template <typename SecurityGroupsT = IpamPublicAddressSecurityGroup>
368 m_securityGroupsHasBeenSet = true;
369 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
370 return *this;
371 }
373
375
378 inline const Aws::Utils::DateTime& GetSampleTime() const { return m_sampleTime; }
379 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
380 template <typename SampleTimeT = Aws::Utils::DateTime>
381 void SetSampleTime(SampleTimeT&& value) {
382 m_sampleTimeHasBeenSet = true;
383 m_sampleTime = std::forward<SampleTimeT>(value);
384 }
385 template <typename SampleTimeT = Aws::Utils::DateTime>
387 SetSampleTime(std::forward<SampleTimeT>(value));
388 return *this;
389 }
391 private:
392 Aws::String m_ipamResourceDiscoveryId;
393
394 Aws::String m_addressRegion;
395
396 Aws::String m_address;
397
398 Aws::String m_addressOwnerId;
399
400 Aws::String m_addressAllocationId;
401
403
405
407
408 Aws::String m_serviceResource;
409
410 Aws::String m_vpcId;
411
412 Aws::String m_subnetId;
413
414 Aws::String m_publicIpv4PoolId;
415
416 Aws::String m_networkInterfaceId;
417
418 Aws::String m_networkInterfaceDescription;
419
420 Aws::String m_instanceId;
421
422 IpamPublicAddressTags m_tags;
423
424 Aws::String m_networkBorderGroup;
425
427
428 Aws::Utils::DateTime m_sampleTime{};
429 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
430 bool m_addressRegionHasBeenSet = false;
431 bool m_addressHasBeenSet = false;
432 bool m_addressOwnerIdHasBeenSet = false;
433 bool m_addressAllocationIdHasBeenSet = false;
434 bool m_associationStatusHasBeenSet = false;
435 bool m_addressTypeHasBeenSet = false;
436 bool m_serviceHasBeenSet = false;
437 bool m_serviceResourceHasBeenSet = false;
438 bool m_vpcIdHasBeenSet = false;
439 bool m_subnetIdHasBeenSet = false;
440 bool m_publicIpv4PoolIdHasBeenSet = false;
441 bool m_networkInterfaceIdHasBeenSet = false;
442 bool m_networkInterfaceDescriptionHasBeenSet = false;
443 bool m_instanceIdHasBeenSet = false;
444 bool m_tagsHasBeenSet = false;
445 bool m_networkBorderGroupHasBeenSet = false;
446 bool m_securityGroupsHasBeenSet = false;
447 bool m_sampleTimeHasBeenSet = false;
448};
449
450} // namespace Model
451} // namespace EC2
452} // namespace Aws
IpamDiscoveredPublicAddress & WithService(IpamPublicAddressAwsService value)
IpamDiscoveredPublicAddress & WithSecurityGroups(SecurityGroupsT &&value)
AWS_EC2_API IpamDiscoveredPublicAddress(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamDiscoveredPublicAddress & WithAddress(AddressT &&value)
void SetAddressAllocationId(AddressAllocationIdT &&value)
IpamPublicAddressAssociationStatus GetAssociationStatus() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamDiscoveredPublicAddress & WithSampleTime(SampleTimeT &&value)
IpamDiscoveredPublicAddress & WithServiceResource(ServiceResourceT &&value)
IpamDiscoveredPublicAddress & WithSubnetId(SubnetIdT &&value)
IpamDiscoveredPublicAddress & WithPublicIpv4PoolId(PublicIpv4PoolIdT &&value)
IpamDiscoveredPublicAddress & WithAssociationStatus(IpamPublicAddressAssociationStatus value)
IpamDiscoveredPublicAddress & WithAddressAllocationId(AddressAllocationIdT &&value)
const Aws::Vector< IpamPublicAddressSecurityGroup > & GetSecurityGroups() const
void SetAssociationStatus(IpamPublicAddressAssociationStatus value)
void SetIpamResourceDiscoveryId(IpamResourceDiscoveryIdT &&value)
void SetNetworkInterfaceDescription(NetworkInterfaceDescriptionT &&value)
IpamDiscoveredPublicAddress & WithIpamResourceDiscoveryId(IpamResourceDiscoveryIdT &&value)
IpamDiscoveredPublicAddress & WithAddressOwnerId(AddressOwnerIdT &&value)
IpamDiscoveredPublicAddress & AddSecurityGroups(SecurityGroupsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamDiscoveredPublicAddress & WithAddressRegion(AddressRegionT &&value)
IpamDiscoveredPublicAddress & WithAddressType(IpamPublicAddressType value)
IpamDiscoveredPublicAddress & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
IpamDiscoveredPublicAddress & WithVpcId(VpcIdT &&value)
IpamDiscoveredPublicAddress & WithNetworkInterfaceDescription(NetworkInterfaceDescriptionT &&value)
IpamDiscoveredPublicAddress & WithNetworkBorderGroup(NetworkBorderGroupT &&value)
IpamDiscoveredPublicAddress & WithInstanceId(InstanceIdT &&value)
AWS_EC2_API IpamDiscoveredPublicAddress()=default
AWS_EC2_API IpamDiscoveredPublicAddress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamDiscoveredPublicAddress & WithTags(TagsT &&value)
void SetService(IpamPublicAddressAwsService value)
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