/** * 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 IP addresses and network interface associated with a NAT * gateway.

See Also:

AWS * API Reference

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

[Public NAT gateway only] The allocation ID of the Elastic IP address that's * associated with the NAT gateway.

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

The ID of the network interface associated with the NAT gateway.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The ID of the network interface associated with the NAT gateway.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The ID of the network interface associated with the NAT gateway.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The ID of the network interface associated with the NAT gateway.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The ID of the network interface associated with the NAT gateway.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The ID of the network interface associated with the NAT gateway.

*/ inline NatGatewayAddress& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the network interface associated with the NAT gateway.

*/ inline NatGatewayAddress& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The ID of the network interface associated with the NAT gateway.

*/ inline NatGatewayAddress& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *

The private IP address associated with the NAT gateway.

*/ inline const Aws::String& GetPrivateIp() const{ return m_privateIp; } /** *

The private IP address associated with the NAT gateway.

*/ inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; } /** *

The private IP address associated with the NAT gateway.

*/ inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; } /** *

The private IP address associated with the NAT gateway.

*/ inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); } /** *

The private IP address associated with the NAT gateway.

*/ inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); } /** *

The private IP address associated with the NAT gateway.

*/ inline NatGatewayAddress& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;} /** *

The private IP address associated with the NAT gateway.

*/ inline NatGatewayAddress& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;} /** *

The private IP address associated with the NAT gateway.

*/ inline NatGatewayAddress& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;} /** *

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The Elastic IP address associated with the NAT * gateway.

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

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline NatGatewayAddress& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline NatGatewayAddress& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

[Public NAT gateway only] The association ID of the Elastic IP address that's * associated with the NAT gateway.

*/ inline NatGatewayAddress& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

Defines if the IP address is the primary address.

*/ inline bool GetIsPrimary() const{ return m_isPrimary; } /** *

Defines if the IP address is the primary address.

*/ inline bool IsPrimaryHasBeenSet() const { return m_isPrimaryHasBeenSet; } /** *

Defines if the IP address is the primary address.

*/ inline void SetIsPrimary(bool value) { m_isPrimaryHasBeenSet = true; m_isPrimary = value; } /** *

Defines if the IP address is the primary address.

*/ inline NatGatewayAddress& WithIsPrimary(bool value) { SetIsPrimary(value); return *this;} /** *

The address failure message.

*/ inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; } /** *

The address failure message.

*/ inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; } /** *

The address failure message.

*/ inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; } /** *

The address failure message.

*/ inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); } /** *

The address failure message.

*/ inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); } /** *

The address failure message.

*/ inline NatGatewayAddress& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;} /** *

The address failure message.

*/ inline NatGatewayAddress& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;} /** *

The address failure message.

*/ inline NatGatewayAddress& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;} /** *

The address status.

*/ inline const NatGatewayAddressStatus& GetStatus() const{ return m_status; } /** *

The address status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The address status.

*/ inline void SetStatus(const NatGatewayAddressStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The address status.

*/ inline void SetStatus(NatGatewayAddressStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The address status.

*/ inline NatGatewayAddress& WithStatus(const NatGatewayAddressStatus& value) { SetStatus(value); return *this;} /** *

The address status.

*/ inline NatGatewayAddress& WithStatus(NatGatewayAddressStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::String m_privateIp; bool m_privateIpHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_associationId; bool m_associationIdHasBeenSet = false; bool m_isPrimary; bool m_isPrimaryHasBeenSet = false; Aws::String m_failureMessage; bool m_failureMessageHasBeenSet = false; NatGatewayAddressStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws