/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes an Elastic IP address, or a carrier IP address.

See * Also:

AWS API * Reference

*/ class Address { public: AWS_EC2_API Address(); AWS_EC2_API Address(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API Address& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the instance that the address is associated with (if any).

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the instance that the address is associated with (if any).

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the instance that the address is associated with (if any).

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the instance that the address is associated with (if any).

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the instance that the address is associated with (if any).

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the instance that the address is associated with (if any).

*/ inline Address& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the instance that the address is associated with (if any).

*/ inline Address& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the instance that the address is associated with (if any).

*/ inline Address& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The Elastic IP address.

*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *

The Elastic IP address.

*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *

The Elastic IP address.

*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *

The Elastic IP address.

*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *

The Elastic IP address.

*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *

The Elastic IP address.

*/ inline Address& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

The Elastic IP address.

*/ inline Address& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *

The Elastic IP address.

*/ inline Address& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *

The ID representing the allocation of the address.

*/ inline const Aws::String& GetAllocationId() const{ return m_allocationId; } /** *

The ID representing the allocation of the address.

*/ inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; } /** *

The ID representing the allocation of the address.

*/ inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; } /** *

The ID representing the allocation of the address.

*/ inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); } /** *

The ID representing the allocation of the address.

*/ inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); } /** *

The ID representing the allocation of the address.

*/ inline Address& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;} /** *

The ID representing the allocation of the address.

*/ inline Address& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;} /** *

The ID representing the allocation of the address.

*/ inline Address& WithAllocationId(const char* value) { SetAllocationId(value); return *this;} /** *

The ID representing the association of the address with an instance.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The ID representing the association of the address with an instance.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The ID representing the association of the address with an instance.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The ID representing the association of the address with an instance.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The ID representing the association of the address with an instance.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The ID representing the association of the address with an instance.

*/ inline Address& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The ID representing the association of the address with an instance.

*/ inline Address& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The ID representing the association of the address with an instance.

*/ inline Address& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The network (vpc).

*/ inline const DomainType& GetDomain() const{ return m_domain; } /** *

The network (vpc).

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The network (vpc).

*/ inline void SetDomain(const DomainType& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The network (vpc).

*/ inline void SetDomain(DomainType&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The network (vpc).

*/ inline Address& WithDomain(const DomainType& value) { SetDomain(value); return *this;} /** *

The network (vpc).

*/ inline Address& WithDomain(DomainType&& value) { SetDomain(std::move(value)); return *this;} /** *

The ID of the network interface.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The ID of the network interface.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The ID of the network interface.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The ID of the network interface.

*/ inline Address& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the network interface.

*/ inline Address& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The ID of the network interface.

*/ inline Address& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline const Aws::String& GetNetworkInterfaceOwnerId() const{ return m_networkInterfaceOwnerId; } /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline bool NetworkInterfaceOwnerIdHasBeenSet() const { return m_networkInterfaceOwnerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline void SetNetworkInterfaceOwnerId(const Aws::String& value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId = value; } /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline void SetNetworkInterfaceOwnerId(Aws::String&& value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline void SetNetworkInterfaceOwnerId(const char* value) { m_networkInterfaceOwnerIdHasBeenSet = true; m_networkInterfaceOwnerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline Address& WithNetworkInterfaceOwnerId(const Aws::String& value) { SetNetworkInterfaceOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline Address& WithNetworkInterfaceOwnerId(Aws::String&& value) { SetNetworkInterfaceOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the network * interface.

*/ inline Address& WithNetworkInterfaceOwnerId(const char* value) { SetNetworkInterfaceOwnerId(value); return *this;} /** *

The private IP address associated with the Elastic IP address.

*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *

The private IP address associated with the Elastic IP address.

*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *

The private IP address associated with the Elastic IP address.

*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *

The private IP address associated with the Elastic IP address.

*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *

The private IP address associated with the Elastic IP address.

*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *

The private IP address associated with the Elastic IP address.

*/ inline Address& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *

The private IP address associated with the Elastic IP address.

*/ inline Address& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *

The private IP address associated with the Elastic IP address.

*/ inline Address& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *

Any tags assigned to the Elastic IP address.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Any tags assigned to the Elastic IP address.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Any tags assigned to the Elastic IP address.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Any tags assigned to the Elastic IP address.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Any tags assigned to the Elastic IP address.

*/ inline Address& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Any tags assigned to the Elastic IP address.

*/ inline Address& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Any tags assigned to the Elastic IP address.

*/ inline Address& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Any tags assigned to the Elastic IP address.

*/ inline Address& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The ID of an address pool.

*/ inline const Aws::String& GetPublicIpv4Pool() const{ return m_publicIpv4Pool; } /** *

The ID of an address pool.

*/ inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; } /** *

The ID of an address pool.

*/ inline void SetPublicIpv4Pool(const Aws::String& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = value; } /** *

The ID of an address pool.

*/ inline void SetPublicIpv4Pool(Aws::String&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::move(value); } /** *

The ID of an address pool.

*/ inline void SetPublicIpv4Pool(const char* value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool.assign(value); } /** *

The ID of an address pool.

*/ inline Address& WithPublicIpv4Pool(const Aws::String& value) { SetPublicIpv4Pool(value); return *this;} /** *

The ID of an address pool.

*/ inline Address& WithPublicIpv4Pool(Aws::String&& value) { SetPublicIpv4Pool(std::move(value)); return *this;} /** *

The ID of an address pool.

*/ inline Address& WithPublicIpv4Pool(const char* value) { SetPublicIpv4Pool(value); return *this;} /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; } /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; } /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; } /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); } /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); } /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline Address& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;} /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline Address& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;} /** *

The name of the unique set of Availability Zones, Local Zones, or Wavelength * Zones from which Amazon Web Services advertises IP addresses.

*/ inline Address& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;} /** *

The customer-owned IP address.

*/ inline const Aws::String& GetCustomerOwnedIp() const{ return m_customerOwnedIp; } /** *

The customer-owned IP address.

*/ inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; } /** *

The customer-owned IP address.

*/ inline void SetCustomerOwnedIp(const Aws::String& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = value; } /** *

The customer-owned IP address.

*/ inline void SetCustomerOwnedIp(Aws::String&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::move(value); } /** *

The customer-owned IP address.

*/ inline void SetCustomerOwnedIp(const char* value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp.assign(value); } /** *

The customer-owned IP address.

*/ inline Address& WithCustomerOwnedIp(const Aws::String& value) { SetCustomerOwnedIp(value); return *this;} /** *

The customer-owned IP address.

*/ inline Address& WithCustomerOwnedIp(Aws::String&& value) { SetCustomerOwnedIp(std::move(value)); return *this;} /** *

The customer-owned IP address.

*/ inline Address& WithCustomerOwnedIp(const char* value) { SetCustomerOwnedIp(value); return *this;} /** *

The ID of the customer-owned address pool.

*/ inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; } /** *

The ID of the customer-owned address pool.

*/ inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; } /** *

The ID of the customer-owned address pool.

*/ inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; } /** *

The ID of the customer-owned address pool.

*/ inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); } /** *

The ID of the customer-owned address pool.

*/ inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); } /** *

The ID of the customer-owned address pool.

*/ inline Address& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;} /** *

The ID of the customer-owned address pool.

*/ inline Address& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;} /** *

The ID of the customer-owned address pool.

*/ inline Address& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;} /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline const Aws::String& GetCarrierIp() const{ return m_carrierIp; } /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; } /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline void SetCarrierIp(const Aws::String& value) { m_carrierIpHasBeenSet = true; m_carrierIp = value; } /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline void SetCarrierIp(Aws::String&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::move(value); } /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline void SetCarrierIp(const char* value) { m_carrierIpHasBeenSet = true; m_carrierIp.assign(value); } /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline Address& WithCarrierIp(const Aws::String& value) { SetCarrierIp(value); return *this;} /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline Address& WithCarrierIp(Aws::String&& value) { SetCarrierIp(std::move(value)); return *this;} /** *

The carrier IP address associated. This option is only available for network * interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 * instance).

*/ inline Address& WithCarrierIp(const char* value) { SetCarrierIp(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_associationId; bool m_associationIdHasBeenSet = false; DomainType m_domain; bool m_domainHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::String m_networkInterfaceOwnerId; bool m_networkInterfaceOwnerIdHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_publicIpv4Pool; bool m_publicIpv4PoolHasBeenSet = false; Aws::String m_networkBorderGroup; bool m_networkBorderGroupHasBeenSet = false; Aws::String m_customerOwnedIp; bool m_customerOwnedIpHasBeenSet = false; Aws::String m_customerOwnedIpv4Pool; bool m_customerOwnedIpv4PoolHasBeenSet = false; Aws::String m_carrierIp; bool m_carrierIpHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws