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

Describes the private IPv4 address of a network interface.

See * Also:

AWS * API Reference

*/ class NetworkInterfacePrivateIpAddress { public: AWS_EC2_API NetworkInterfacePrivateIpAddress(); AWS_EC2_API NetworkInterfacePrivateIpAddress(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API NetworkInterfacePrivateIpAddress& 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 association information for an Elastic IP address (IPv4) associated with * the network interface.

*/ inline const NetworkInterfaceAssociation& GetAssociation() const{ return m_association; } /** *

The association information for an Elastic IP address (IPv4) associated with * the network interface.

*/ inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; } /** *

The association information for an Elastic IP address (IPv4) associated with * the network interface.

*/ inline void SetAssociation(const NetworkInterfaceAssociation& value) { m_associationHasBeenSet = true; m_association = value; } /** *

The association information for an Elastic IP address (IPv4) associated with * the network interface.

*/ inline void SetAssociation(NetworkInterfaceAssociation&& value) { m_associationHasBeenSet = true; m_association = std::move(value); } /** *

The association information for an Elastic IP address (IPv4) associated with * the network interface.

*/ inline NetworkInterfacePrivateIpAddress& WithAssociation(const NetworkInterfaceAssociation& value) { SetAssociation(value); return *this;} /** *

The association information for an Elastic IP address (IPv4) associated with * the network interface.

*/ inline NetworkInterfacePrivateIpAddress& WithAssociation(NetworkInterfaceAssociation&& value) { SetAssociation(std::move(value)); return *this;} /** *

Indicates whether this IPv4 address is the primary private IPv4 address of * the network interface.

*/ inline bool GetPrimary() const{ return m_primary; } /** *

Indicates whether this IPv4 address is the primary private IPv4 address of * the network interface.

*/ inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; } /** *

Indicates whether this IPv4 address is the primary private IPv4 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 IPv4 address of * the network interface.

*/ inline NetworkInterfacePrivateIpAddress& WithPrimary(bool value) { SetPrimary(value); return *this;} /** *

The private DNS name.

*/ inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } /** *

The private DNS name.

*/ inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } /** *

The private DNS name.

*/ inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } /** *

The private DNS name.

*/ inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } /** *

The private DNS name.

*/ inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } /** *

The private DNS name.

*/ inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *

The private DNS name.

*/ inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} /** *

The private DNS name.

*/ inline NetworkInterfacePrivateIpAddress& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} /** *

The private IPv4 address.

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

The private IPv4 address.

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

The private IPv4 address.

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

The private IPv4 address.

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

The private IPv4 address.

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

The private IPv4 address.

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

The private IPv4 address.

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

The private IPv4 address.

*/ inline NetworkInterfacePrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} private: NetworkInterfaceAssociation 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