/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a private IPv4 address.See Also:
AWS
* API Reference
The association information for an Elastic IP address for the network * interface.
*/ inline const InstanceNetworkInterfaceAssociation& GetAssociation() const{ return m_association; } /** *The association information for an Elastic IP address for the network * interface.
*/ inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; } /** *The association information for an Elastic IP address for the network * interface.
*/ inline void SetAssociation(const InstanceNetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; } /** *The association information for an Elastic IP address for the network * interface.
*/ inline void SetAssociation(InstanceNetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); } /** *The association information for an Elastic IP address for the network * interface.
*/ inline InstancePrivateIpAddress& WithAssociation(const InstanceNetworkInterfaceAssociation& value) { SetAssociation(value); return *this;} /** *The association information for an Elastic IP address for the network * interface.
*/ inline InstancePrivateIpAddress& WithAssociation(InstanceNetworkInterfaceAssociation&& value) { SetAssociation(std::move(value)); return *this;} /** *Indicates whether this IPv4 address is the primary private IP address of the * network interface.
*/ inline bool GetPrimary() const{ return m_primary; } /** *Indicates whether this IPv4 address is the primary private IP address of the * network interface.
*/ inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; } /** *Indicates whether this IPv4 address is the primary private IP address of the * network interface.
*/ inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; } /** *Indicates whether this IPv4 address is the primary private IP address of the * network interface.
*/ inline InstancePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;} /** *The private IPv4 DNS name.
*/ inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } /** *The private IPv4 DNS name.
*/ inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } /** *The private IPv4 DNS name.
*/ inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } /** *The private IPv4 DNS name.
*/ inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } /** *The private IPv4 DNS name.
*/ inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } /** *The private IPv4 DNS name.
*/ inline InstancePrivateIpAddress& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *The private IPv4 DNS name.
*/ inline InstancePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} /** *The private IPv4 DNS name.
*/ inline InstancePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} /** *The private IPv4 address of the network interface.
*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *The private IPv4 address of the network interface.
*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *The private IPv4 address of the network interface.
*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *The private IPv4 address of the network interface.
*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *The private IPv4 address of the network interface.
*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *The private IPv4 address of the network interface.
*/ inline InstancePrivateIpAddress& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *The private IPv4 address of the network interface.
*/ inline InstancePrivateIpAddress& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *The private IPv4 address of the network interface.
*/ inline InstancePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} private: InstanceNetworkInterfaceAssociation m_association; bool m_associationHasBeenSet = false; bool m_primary; bool m_primaryHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws