/** * 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 { /** *

The attributes associated with an Elastic IP address.

See * Also:

AWS * API Reference

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

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

The public IP address.

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

The public IP address.

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

The public IP address.

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

The public IP address.

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

The public IP address.

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

The public IP address.

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

The public IP address.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

[EC2-VPC] The allocation ID.

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

The pointer (PTR) record for the IP address.

*/ inline const Aws::String& GetPtrRecord() const{ return m_ptrRecord; } /** *

The pointer (PTR) record for the IP address.

*/ inline bool PtrRecordHasBeenSet() const { return m_ptrRecordHasBeenSet; } /** *

The pointer (PTR) record for the IP address.

*/ inline void SetPtrRecord(const Aws::String& value) { m_ptrRecordHasBeenSet = true; m_ptrRecord = value; } /** *

The pointer (PTR) record for the IP address.

*/ inline void SetPtrRecord(Aws::String&& value) { m_ptrRecordHasBeenSet = true; m_ptrRecord = std::move(value); } /** *

The pointer (PTR) record for the IP address.

*/ inline void SetPtrRecord(const char* value) { m_ptrRecordHasBeenSet = true; m_ptrRecord.assign(value); } /** *

The pointer (PTR) record for the IP address.

*/ inline AddressAttribute& WithPtrRecord(const Aws::String& value) { SetPtrRecord(value); return *this;} /** *

The pointer (PTR) record for the IP address.

*/ inline AddressAttribute& WithPtrRecord(Aws::String&& value) { SetPtrRecord(std::move(value)); return *this;} /** *

The pointer (PTR) record for the IP address.

*/ inline AddressAttribute& WithPtrRecord(const char* value) { SetPtrRecord(value); return *this;} /** *

The updated PTR record for the IP address.

*/ inline const PtrUpdateStatus& GetPtrRecordUpdate() const{ return m_ptrRecordUpdate; } /** *

The updated PTR record for the IP address.

*/ inline bool PtrRecordUpdateHasBeenSet() const { return m_ptrRecordUpdateHasBeenSet; } /** *

The updated PTR record for the IP address.

*/ inline void SetPtrRecordUpdate(const PtrUpdateStatus& value) { m_ptrRecordUpdateHasBeenSet = true; m_ptrRecordUpdate = value; } /** *

The updated PTR record for the IP address.

*/ inline void SetPtrRecordUpdate(PtrUpdateStatus&& value) { m_ptrRecordUpdateHasBeenSet = true; m_ptrRecordUpdate = std::move(value); } /** *

The updated PTR record for the IP address.

*/ inline AddressAttribute& WithPtrRecordUpdate(const PtrUpdateStatus& value) { SetPtrRecordUpdate(value); return *this;} /** *

The updated PTR record for the IP address.

*/ inline AddressAttribute& WithPtrRecordUpdate(PtrUpdateStatus&& value) { SetPtrRecordUpdate(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_ptrRecord; bool m_ptrRecordHasBeenSet = false; PtrUpdateStatus m_ptrRecordUpdate; bool m_ptrRecordUpdateHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws