AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IpamDiscoveredPublicAddress.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/IpamPublicAddressAssociationStatus.h>
11#include <aws/ec2/model/IpamPublicAddressType.h>
12#include <aws/ec2/model/IpamPublicAddressAwsService.h>
13#include <aws/ec2/model/IpamPublicAddressTags.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/ec2/model/IpamPublicAddressSecurityGroup.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_EC2_API IpamDiscoveredPublicAddress() = default;
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetIpamResourceDiscoveryId() const { return m_ipamResourceDiscoveryId; }
54 inline bool IpamResourceDiscoveryIdHasBeenSet() const { return m_ipamResourceDiscoveryIdHasBeenSet; }
55 template<typename IpamResourceDiscoveryIdT = Aws::String>
56 void SetIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) { m_ipamResourceDiscoveryIdHasBeenSet = true; m_ipamResourceDiscoveryId = std::forward<IpamResourceDiscoveryIdT>(value); }
57 template<typename IpamResourceDiscoveryIdT = Aws::String>
58 IpamDiscoveredPublicAddress& WithIpamResourceDiscoveryId(IpamResourceDiscoveryIdT&& value) { SetIpamResourceDiscoveryId(std::forward<IpamResourceDiscoveryIdT>(value)); return *this;}
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) { m_addressRegionHasBeenSet = true; m_addressRegion = std::forward<AddressRegionT>(value); }
69 template<typename AddressRegionT = Aws::String>
70 IpamDiscoveredPublicAddress& WithAddressRegion(AddressRegionT&& value) { SetAddressRegion(std::forward<AddressRegionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetAddress() const { return m_address; }
78 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
79 template<typename AddressT = Aws::String>
80 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
81 template<typename AddressT = Aws::String>
82 IpamDiscoveredPublicAddress& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
84
86
89 inline const Aws::String& GetAddressOwnerId() const { return m_addressOwnerId; }
90 inline bool AddressOwnerIdHasBeenSet() const { return m_addressOwnerIdHasBeenSet; }
91 template<typename AddressOwnerIdT = Aws::String>
92 void SetAddressOwnerId(AddressOwnerIdT&& value) { m_addressOwnerIdHasBeenSet = true; m_addressOwnerId = std::forward<AddressOwnerIdT>(value); }
93 template<typename AddressOwnerIdT = Aws::String>
94 IpamDiscoveredPublicAddress& WithAddressOwnerId(AddressOwnerIdT&& value) { SetAddressOwnerId(std::forward<AddressOwnerIdT>(value)); return *this;}
96
98
101 inline const Aws::String& GetAddressAllocationId() const { return m_addressAllocationId; }
102 inline bool AddressAllocationIdHasBeenSet() const { return m_addressAllocationIdHasBeenSet; }
103 template<typename AddressAllocationIdT = Aws::String>
104 void SetAddressAllocationId(AddressAllocationIdT&& value) { m_addressAllocationIdHasBeenSet = true; m_addressAllocationId = std::forward<AddressAllocationIdT>(value); }
105 template<typename AddressAllocationIdT = Aws::String>
106 IpamDiscoveredPublicAddress& WithAddressAllocationId(AddressAllocationIdT&& value) { SetAddressAllocationId(std::forward<AddressAllocationIdT>(value)); return *this;}
108
110
113 inline IpamPublicAddressAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
114 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
115 inline void SetAssociationStatus(IpamPublicAddressAssociationStatus value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
118
120
123 inline IpamPublicAddressType GetAddressType() const { return m_addressType; }
124 inline bool AddressTypeHasBeenSet() const { return m_addressTypeHasBeenSet; }
125 inline void SetAddressType(IpamPublicAddressType value) { m_addressTypeHasBeenSet = true; m_addressType = value; }
128
130
133 inline IpamPublicAddressAwsService GetService() const { return m_service; }
134 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
135 inline void SetService(IpamPublicAddressAwsService value) { m_serviceHasBeenSet = true; m_service = value; }
138
140
143 inline const Aws::String& GetServiceResource() const { return m_serviceResource; }
144 inline bool ServiceResourceHasBeenSet() const { return m_serviceResourceHasBeenSet; }
145 template<typename ServiceResourceT = Aws::String>
146 void SetServiceResource(ServiceResourceT&& value) { m_serviceResourceHasBeenSet = true; m_serviceResource = std::forward<ServiceResourceT>(value); }
147 template<typename ServiceResourceT = Aws::String>
148 IpamDiscoveredPublicAddress& WithServiceResource(ServiceResourceT&& value) { SetServiceResource(std::forward<ServiceResourceT>(value)); return *this;}
150
152
155 inline const Aws::String& GetVpcId() const { return m_vpcId; }
156 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
157 template<typename VpcIdT = Aws::String>
158 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
159 template<typename VpcIdT = Aws::String>
160 IpamDiscoveredPublicAddress& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
162
164
168 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
169 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
170 template<typename SubnetIdT = Aws::String>
171 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
172 template<typename SubnetIdT = Aws::String>
173 IpamDiscoveredPublicAddress& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
175
177
181 inline const Aws::String& GetPublicIpv4PoolId() const { return m_publicIpv4PoolId; }
182 inline bool PublicIpv4PoolIdHasBeenSet() const { return m_publicIpv4PoolIdHasBeenSet; }
183 template<typename PublicIpv4PoolIdT = Aws::String>
184 void SetPublicIpv4PoolId(PublicIpv4PoolIdT&& value) { m_publicIpv4PoolIdHasBeenSet = true; m_publicIpv4PoolId = std::forward<PublicIpv4PoolIdT>(value); }
185 template<typename PublicIpv4PoolIdT = Aws::String>
186 IpamDiscoveredPublicAddress& WithPublicIpv4PoolId(PublicIpv4PoolIdT&& value) { SetPublicIpv4PoolId(std::forward<PublicIpv4PoolIdT>(value)); return *this;}
188
190
193 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
194 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
195 template<typename NetworkInterfaceIdT = Aws::String>
196 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
197 template<typename NetworkInterfaceIdT = Aws::String>
198 IpamDiscoveredPublicAddress& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
200
202
205 inline const Aws::String& GetNetworkInterfaceDescription() const { return m_networkInterfaceDescription; }
206 inline bool NetworkInterfaceDescriptionHasBeenSet() const { return m_networkInterfaceDescriptionHasBeenSet; }
207 template<typename NetworkInterfaceDescriptionT = Aws::String>
208 void SetNetworkInterfaceDescription(NetworkInterfaceDescriptionT&& value) { m_networkInterfaceDescriptionHasBeenSet = true; m_networkInterfaceDescription = std::forward<NetworkInterfaceDescriptionT>(value); }
209 template<typename NetworkInterfaceDescriptionT = Aws::String>
210 IpamDiscoveredPublicAddress& WithNetworkInterfaceDescription(NetworkInterfaceDescriptionT&& value) { SetNetworkInterfaceDescription(std::forward<NetworkInterfaceDescriptionT>(value)); return *this;}
212
214
217 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
218 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
219 template<typename InstanceIdT = Aws::String>
220 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
221 template<typename InstanceIdT = Aws::String>
222 IpamDiscoveredPublicAddress& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
224
226
229 inline const IpamPublicAddressTags& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template<typename TagsT = IpamPublicAddressTags>
232 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
233 template<typename TagsT = IpamPublicAddressTags>
234 IpamDiscoveredPublicAddress& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
236
238
245 inline const Aws::String& GetNetworkBorderGroup() const { return m_networkBorderGroup; }
246 inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; }
247 template<typename NetworkBorderGroupT = Aws::String>
248 void SetNetworkBorderGroup(NetworkBorderGroupT&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::forward<NetworkBorderGroupT>(value); }
249 template<typename NetworkBorderGroupT = Aws::String>
250 IpamDiscoveredPublicAddress& WithNetworkBorderGroup(NetworkBorderGroupT&& value) { SetNetworkBorderGroup(std::forward<NetworkBorderGroupT>(value)); return *this;}
252
254
258 inline const Aws::Vector<IpamPublicAddressSecurityGroup>& GetSecurityGroups() const { return m_securityGroups; }
259 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
260 template<typename SecurityGroupsT = Aws::Vector<IpamPublicAddressSecurityGroup>>
261 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
262 template<typename SecurityGroupsT = Aws::Vector<IpamPublicAddressSecurityGroup>>
263 IpamDiscoveredPublicAddress& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
264 template<typename SecurityGroupsT = IpamPublicAddressSecurityGroup>
265 IpamDiscoveredPublicAddress& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
267
269
272 inline const Aws::Utils::DateTime& GetSampleTime() const { return m_sampleTime; }
273 inline bool SampleTimeHasBeenSet() const { return m_sampleTimeHasBeenSet; }
274 template<typename SampleTimeT = Aws::Utils::DateTime>
275 void SetSampleTime(SampleTimeT&& value) { m_sampleTimeHasBeenSet = true; m_sampleTime = std::forward<SampleTimeT>(value); }
276 template<typename SampleTimeT = Aws::Utils::DateTime>
277 IpamDiscoveredPublicAddress& WithSampleTime(SampleTimeT&& value) { SetSampleTime(std::forward<SampleTimeT>(value)); return *this;}
279 private:
280
281 Aws::String m_ipamResourceDiscoveryId;
282 bool m_ipamResourceDiscoveryIdHasBeenSet = false;
283
284 Aws::String m_addressRegion;
285 bool m_addressRegionHasBeenSet = false;
286
287 Aws::String m_address;
288 bool m_addressHasBeenSet = false;
289
290 Aws::String m_addressOwnerId;
291 bool m_addressOwnerIdHasBeenSet = false;
292
293 Aws::String m_addressAllocationId;
294 bool m_addressAllocationIdHasBeenSet = false;
295
297 bool m_associationStatusHasBeenSet = false;
298
300 bool m_addressTypeHasBeenSet = false;
301
303 bool m_serviceHasBeenSet = false;
304
305 Aws::String m_serviceResource;
306 bool m_serviceResourceHasBeenSet = false;
307
308 Aws::String m_vpcId;
309 bool m_vpcIdHasBeenSet = false;
310
311 Aws::String m_subnetId;
312 bool m_subnetIdHasBeenSet = false;
313
314 Aws::String m_publicIpv4PoolId;
315 bool m_publicIpv4PoolIdHasBeenSet = false;
316
317 Aws::String m_networkInterfaceId;
318 bool m_networkInterfaceIdHasBeenSet = false;
319
320 Aws::String m_networkInterfaceDescription;
321 bool m_networkInterfaceDescriptionHasBeenSet = false;
322
323 Aws::String m_instanceId;
324 bool m_instanceIdHasBeenSet = false;
325
326 IpamPublicAddressTags m_tags;
327 bool m_tagsHasBeenSet = false;
328
329 Aws::String m_networkBorderGroup;
330 bool m_networkBorderGroupHasBeenSet = false;
331
333 bool m_securityGroupsHasBeenSet = false;
334
335 Aws::Utils::DateTime m_sampleTime{};
336 bool m_sampleTimeHasBeenSet = false;
337 };
338
339} // namespace Model
340} // namespace EC2
341} // 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