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

Describes the private IP addresses assigned to a network * interface.

See Also:

AWS * API Reference

*/ class AssignedPrivateIpAddress { public: AWS_EC2_API AssignedPrivateIpAddress(); AWS_EC2_API AssignedPrivateIpAddress(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AssignedPrivateIpAddress& 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 private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

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

The private IP address assigned to the network interface.

*/ inline AssignedPrivateIpAddress& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} private: Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws