/** * 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 status of a moving Elastic IP address.

See Also:

* AWS * API Reference

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

The status of the Elastic IP address that's being moved to the EC2-VPC * platform, or restored to the EC2-Classic platform.

*/ inline const MoveStatus& GetMoveStatus() const{ return m_moveStatus; } /** *

The status of the Elastic IP address that's being moved to the EC2-VPC * platform, or restored to the EC2-Classic platform.

*/ inline bool MoveStatusHasBeenSet() const { return m_moveStatusHasBeenSet; } /** *

The status of the Elastic IP address that's being moved to the EC2-VPC * platform, or restored to the EC2-Classic platform.

*/ inline void SetMoveStatus(const MoveStatus& value) { m_moveStatusHasBeenSet = true; m_moveStatus = value; } /** *

The status of the Elastic IP address that's being moved to the EC2-VPC * platform, or restored to the EC2-Classic platform.

*/ inline void SetMoveStatus(MoveStatus&& value) { m_moveStatusHasBeenSet = true; m_moveStatus = std::move(value); } /** *

The status of the Elastic IP address that's being moved to the EC2-VPC * platform, or restored to the EC2-Classic platform.

*/ inline MovingAddressStatus& WithMoveStatus(const MoveStatus& value) { SetMoveStatus(value); return *this;} /** *

The status of the Elastic IP address that's being moved to the EC2-VPC * platform, or restored to the EC2-Classic platform.

*/ inline MovingAddressStatus& WithMoveStatus(MoveStatus&& value) { SetMoveStatus(std::move(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 MovingAddressStatus& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

The Elastic IP address.

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

The Elastic IP address.

*/ inline MovingAddressStatus& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} private: MoveStatus m_moveStatus; bool m_moveStatusHasBeenSet; Aws::String m_publicIp; bool m_publicIpHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws