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

Details on the Elastic IP address transfer. For more information, see Transfer * Elastic IP addresses in the Amazon Virtual Private Cloud User * Guide.

See Also:

AWS * API Reference

*/ class AddressTransfer { public: AWS_EC2_API AddressTransfer(); AWS_EC2_API AddressTransfer(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AddressTransfer& 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 Elastic IP address being transferred.

*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *

The Elastic IP address being transferred.

*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *

The Elastic IP address being transferred.

*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *

The Elastic IP address being transferred.

*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *

The Elastic IP address being transferred.

*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *

The Elastic IP address being transferred.

*/ inline AddressTransfer& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

The Elastic IP address being transferred.

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

The Elastic IP address being transferred.

*/ inline AddressTransfer& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *

The allocation ID of an Elastic IP address.

*/ inline const Aws::String& GetAllocationId() const{ return m_allocationId; } /** *

The allocation ID of an Elastic IP address.

*/ inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; } /** *

The allocation ID of an Elastic IP address.

*/ inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; } /** *

The allocation ID of an Elastic IP address.

*/ inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); } /** *

The allocation ID of an Elastic IP address.

*/ inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); } /** *

The allocation ID of an Elastic IP address.

*/ inline AddressTransfer& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;} /** *

The allocation ID of an Elastic IP address.

*/ inline AddressTransfer& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;} /** *

The allocation ID of an Elastic IP address.

*/ inline AddressTransfer& WithAllocationId(const char* value) { SetAllocationId(value); return *this;} /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline const Aws::String& GetTransferAccountId() const{ return m_transferAccountId; } /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline bool TransferAccountIdHasBeenSet() const { return m_transferAccountIdHasBeenSet; } /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline void SetTransferAccountId(const Aws::String& value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId = value; } /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline void SetTransferAccountId(Aws::String&& value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId = std::move(value); } /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline void SetTransferAccountId(const char* value) { m_transferAccountIdHasBeenSet = true; m_transferAccountId.assign(value); } /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline AddressTransfer& WithTransferAccountId(const Aws::String& value) { SetTransferAccountId(value); return *this;} /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline AddressTransfer& WithTransferAccountId(Aws::String&& value) { SetTransferAccountId(std::move(value)); return *this;} /** *

The ID of the account that you want to transfer the Elastic IP address * to.

*/ inline AddressTransfer& WithTransferAccountId(const char* value) { SetTransferAccountId(value); return *this;} /** *

The timestamp when the Elastic IP address transfer expired. When the source * account starts the transfer, the transfer account has seven hours to allocate * the Elastic IP address to complete the transfer, or the Elastic IP address will * return to its original owner.

*/ inline const Aws::Utils::DateTime& GetTransferOfferExpirationTimestamp() const{ return m_transferOfferExpirationTimestamp; } /** *

The timestamp when the Elastic IP address transfer expired. When the source * account starts the transfer, the transfer account has seven hours to allocate * the Elastic IP address to complete the transfer, or the Elastic IP address will * return to its original owner.

*/ inline bool TransferOfferExpirationTimestampHasBeenSet() const { return m_transferOfferExpirationTimestampHasBeenSet; } /** *

The timestamp when the Elastic IP address transfer expired. When the source * account starts the transfer, the transfer account has seven hours to allocate * the Elastic IP address to complete the transfer, or the Elastic IP address will * return to its original owner.

*/ inline void SetTransferOfferExpirationTimestamp(const Aws::Utils::DateTime& value) { m_transferOfferExpirationTimestampHasBeenSet = true; m_transferOfferExpirationTimestamp = value; } /** *

The timestamp when the Elastic IP address transfer expired. When the source * account starts the transfer, the transfer account has seven hours to allocate * the Elastic IP address to complete the transfer, or the Elastic IP address will * return to its original owner.

*/ inline void SetTransferOfferExpirationTimestamp(Aws::Utils::DateTime&& value) { m_transferOfferExpirationTimestampHasBeenSet = true; m_transferOfferExpirationTimestamp = std::move(value); } /** *

The timestamp when the Elastic IP address transfer expired. When the source * account starts the transfer, the transfer account has seven hours to allocate * the Elastic IP address to complete the transfer, or the Elastic IP address will * return to its original owner.

*/ inline AddressTransfer& WithTransferOfferExpirationTimestamp(const Aws::Utils::DateTime& value) { SetTransferOfferExpirationTimestamp(value); return *this;} /** *

The timestamp when the Elastic IP address transfer expired. When the source * account starts the transfer, the transfer account has seven hours to allocate * the Elastic IP address to complete the transfer, or the Elastic IP address will * return to its original owner.

*/ inline AddressTransfer& WithTransferOfferExpirationTimestamp(Aws::Utils::DateTime&& value) { SetTransferOfferExpirationTimestamp(std::move(value)); return *this;} /** *

The timestamp when the Elastic IP address transfer was accepted.

*/ inline const Aws::Utils::DateTime& GetTransferOfferAcceptedTimestamp() const{ return m_transferOfferAcceptedTimestamp; } /** *

The timestamp when the Elastic IP address transfer was accepted.

*/ inline bool TransferOfferAcceptedTimestampHasBeenSet() const { return m_transferOfferAcceptedTimestampHasBeenSet; } /** *

The timestamp when the Elastic IP address transfer was accepted.

*/ inline void SetTransferOfferAcceptedTimestamp(const Aws::Utils::DateTime& value) { m_transferOfferAcceptedTimestampHasBeenSet = true; m_transferOfferAcceptedTimestamp = value; } /** *

The timestamp when the Elastic IP address transfer was accepted.

*/ inline void SetTransferOfferAcceptedTimestamp(Aws::Utils::DateTime&& value) { m_transferOfferAcceptedTimestampHasBeenSet = true; m_transferOfferAcceptedTimestamp = std::move(value); } /** *

The timestamp when the Elastic IP address transfer was accepted.

*/ inline AddressTransfer& WithTransferOfferAcceptedTimestamp(const Aws::Utils::DateTime& value) { SetTransferOfferAcceptedTimestamp(value); return *this;} /** *

The timestamp when the Elastic IP address transfer was accepted.

*/ inline AddressTransfer& WithTransferOfferAcceptedTimestamp(Aws::Utils::DateTime&& value) { SetTransferOfferAcceptedTimestamp(std::move(value)); return *this;} /** *

The Elastic IP address transfer status.

*/ inline const AddressTransferStatus& GetAddressTransferStatus() const{ return m_addressTransferStatus; } /** *

The Elastic IP address transfer status.

*/ inline bool AddressTransferStatusHasBeenSet() const { return m_addressTransferStatusHasBeenSet; } /** *

The Elastic IP address transfer status.

*/ inline void SetAddressTransferStatus(const AddressTransferStatus& value) { m_addressTransferStatusHasBeenSet = true; m_addressTransferStatus = value; } /** *

The Elastic IP address transfer status.

*/ inline void SetAddressTransferStatus(AddressTransferStatus&& value) { m_addressTransferStatusHasBeenSet = true; m_addressTransferStatus = std::move(value); } /** *

The Elastic IP address transfer status.

*/ inline AddressTransfer& WithAddressTransferStatus(const AddressTransferStatus& value) { SetAddressTransferStatus(value); return *this;} /** *

The Elastic IP address transfer status.

*/ inline AddressTransfer& WithAddressTransferStatus(AddressTransferStatus&& value) { SetAddressTransferStatus(std::move(value)); return *this;} private: Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_transferAccountId; bool m_transferAccountIdHasBeenSet = false; Aws::Utils::DateTime m_transferOfferExpirationTimestamp; bool m_transferOfferExpirationTimestampHasBeenSet = false; Aws::Utils::DateTime m_transferOfferAcceptedTimestamp; bool m_transferOfferAcceptedTimestampHasBeenSet = false; AddressTransferStatus m_addressTransferStatus; bool m_addressTransferStatusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws