/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes association information for an Elastic IP address (IPv4 only), or a
* Carrier IP address (for a network interface which resides in a subnet in a
* Wavelength Zone).See Also:
AWS
* API Reference
The allocation ID.
*/ inline const Aws::String& GetAllocationId() const{ return m_allocationId; } /** *The allocation ID.
*/ inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; } /** *The allocation ID.
*/ inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; } /** *The allocation ID.
*/ inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); } /** *The allocation ID.
*/ inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); } /** *The allocation ID.
*/ inline NetworkInterfaceAssociation& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;} /** *The allocation ID.
*/ inline NetworkInterfaceAssociation& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;} /** *The allocation ID.
*/ inline NetworkInterfaceAssociation& WithAllocationId(const char* value) { SetAllocationId(value); return *this;} /** *The association ID.
*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *The association ID.
*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *The association ID.
*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *The association ID.
*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *The association ID.
*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *The association ID.
*/ inline NetworkInterfaceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *The association ID.
*/ inline NetworkInterfaceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *The association ID.
*/ inline NetworkInterfaceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *The ID of the Elastic IP address owner.
*/ inline const Aws::String& GetIpOwnerId() const{ return m_ipOwnerId; } /** *The ID of the Elastic IP address owner.
*/ inline bool IpOwnerIdHasBeenSet() const { return m_ipOwnerIdHasBeenSet; } /** *The ID of the Elastic IP address owner.
*/ inline void SetIpOwnerId(const Aws::String& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = value; } /** *The ID of the Elastic IP address owner.
*/ inline void SetIpOwnerId(Aws::String&& value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId = std::move(value); } /** *The ID of the Elastic IP address owner.
*/ inline void SetIpOwnerId(const char* value) { m_ipOwnerIdHasBeenSet = true; m_ipOwnerId.assign(value); } /** *The ID of the Elastic IP address owner.
*/ inline NetworkInterfaceAssociation& WithIpOwnerId(const Aws::String& value) { SetIpOwnerId(value); return *this;} /** *The ID of the Elastic IP address owner.
*/ inline NetworkInterfaceAssociation& WithIpOwnerId(Aws::String&& value) { SetIpOwnerId(std::move(value)); return *this;} /** *The ID of the Elastic IP address owner.
*/ inline NetworkInterfaceAssociation& WithIpOwnerId(const char* value) { SetIpOwnerId(value); return *this;} /** *The public DNS name.
*/ inline const Aws::String& GetPublicDnsName() const{ return m_publicDnsName; } /** *The public DNS name.
*/ inline bool PublicDnsNameHasBeenSet() const { return m_publicDnsNameHasBeenSet; } /** *The public DNS name.
*/ inline void SetPublicDnsName(const Aws::String& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = value; } /** *The public DNS name.
*/ inline void SetPublicDnsName(Aws::String&& value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName = std::move(value); } /** *The public DNS name.
*/ inline void SetPublicDnsName(const char* value) { m_publicDnsNameHasBeenSet = true; m_publicDnsName.assign(value); } /** *The public DNS name.
*/ inline NetworkInterfaceAssociation& WithPublicDnsName(const Aws::String& value) { SetPublicDnsName(value); return *this;} /** *The public DNS name.
*/ inline NetworkInterfaceAssociation& WithPublicDnsName(Aws::String&& value) { SetPublicDnsName(std::move(value)); return *this;} /** *The public DNS name.
*/ inline NetworkInterfaceAssociation& WithPublicDnsName(const char* value) { SetPublicDnsName(value); return *this;} /** *The address of the Elastic IP address bound to the network interface.
*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *The address of the Elastic IP address bound to the network interface.
*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *The address of the Elastic IP address bound to the network interface.
*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *The address of the Elastic IP address bound to the network interface.
*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *The address of the Elastic IP address bound to the network interface.
*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *The address of the Elastic IP address bound to the network interface.
*/ inline NetworkInterfaceAssociation& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *The address of the Elastic IP address bound to the network interface.
*/ inline NetworkInterfaceAssociation& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *The address of the Elastic IP address bound to the network interface.
*/ inline NetworkInterfaceAssociation& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *The customer-owned IP address associated with the network interface.
*/ inline const Aws::String& GetCustomerOwnedIp() const{ return m_customerOwnedIp; } /** *The customer-owned IP address associated with the network interface.
*/ inline bool CustomerOwnedIpHasBeenSet() const { return m_customerOwnedIpHasBeenSet; } /** *The customer-owned IP address associated with the network interface.
*/ inline void SetCustomerOwnedIp(const Aws::String& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = value; } /** *The customer-owned IP address associated with the network interface.
*/ inline void SetCustomerOwnedIp(Aws::String&& value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp = std::move(value); } /** *The customer-owned IP address associated with the network interface.
*/ inline void SetCustomerOwnedIp(const char* value) { m_customerOwnedIpHasBeenSet = true; m_customerOwnedIp.assign(value); } /** *The customer-owned IP address associated with the network interface.
*/ inline NetworkInterfaceAssociation& WithCustomerOwnedIp(const Aws::String& value) { SetCustomerOwnedIp(value); return *this;} /** *The customer-owned IP address associated with the network interface.
*/ inline NetworkInterfaceAssociation& WithCustomerOwnedIp(Aws::String&& value) { SetCustomerOwnedIp(std::move(value)); return *this;} /** *The customer-owned IP address associated with the network interface.
*/ inline NetworkInterfaceAssociation& WithCustomerOwnedIp(const char* value) { SetCustomerOwnedIp(value); return *this;} /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline const Aws::String& GetCarrierIp() const{ return m_carrierIp; } /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline bool CarrierIpHasBeenSet() const { return m_carrierIpHasBeenSet; } /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline void SetCarrierIp(const Aws::String& value) { m_carrierIpHasBeenSet = true; m_carrierIp = value; } /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline void SetCarrierIp(Aws::String&& value) { m_carrierIpHasBeenSet = true; m_carrierIp = std::move(value); } /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline void SetCarrierIp(const char* value) { m_carrierIpHasBeenSet = true; m_carrierIp.assign(value); } /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline NetworkInterfaceAssociation& WithCarrierIp(const Aws::String& value) { SetCarrierIp(value); return *this;} /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline NetworkInterfaceAssociation& WithCarrierIp(Aws::String&& value) { SetCarrierIp(std::move(value)); return *this;} /** *The carrier IP address associated with the network interface.
This * option is only available when the network interface is in a subnet which is * associated with a Wavelength Zone.
*/ inline NetworkInterfaceAssociation& WithCarrierIp(const char* value) { SetCarrierIp(value); return *this;} private: Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_ipOwnerId; bool m_ipOwnerIdHasBeenSet = false; Aws::String m_publicDnsName; bool m_publicDnsNameHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_customerOwnedIp; bool m_customerOwnedIpHasBeenSet = false; Aws::String m_carrierIp; bool m_carrierIpHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws