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

Describes a customer gateway.

See Also:

AWS * API Reference

*/ class CustomerGateway { public: AWS_EC2_API CustomerGateway(); AWS_EC2_API CustomerGateway(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CustomerGateway& 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 customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline const Aws::String& GetBgpAsn() const{ return m_bgpAsn; } /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline bool BgpAsnHasBeenSet() const { return m_bgpAsnHasBeenSet; } /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline void SetBgpAsn(const Aws::String& value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = value; } /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline void SetBgpAsn(Aws::String&& value) { m_bgpAsnHasBeenSet = true; m_bgpAsn = std::move(value); } /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline void SetBgpAsn(const char* value) { m_bgpAsnHasBeenSet = true; m_bgpAsn.assign(value); } /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline CustomerGateway& WithBgpAsn(const Aws::String& value) { SetBgpAsn(value); return *this;} /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline CustomerGateway& WithBgpAsn(Aws::String&& value) { SetBgpAsn(std::move(value)); return *this;} /** *

The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number * (ASN).

*/ inline CustomerGateway& WithBgpAsn(const char* value) { SetBgpAsn(value); return *this;} /** *

The ID of the customer gateway.

*/ inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; } /** *

The ID of the customer gateway.

*/ inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; } /** *

The ID of the customer gateway.

*/ inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; } /** *

The ID of the customer gateway.

*/ inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); } /** *

The ID of the customer gateway.

*/ inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); } /** *

The ID of the customer gateway.

*/ inline CustomerGateway& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;} /** *

The ID of the customer gateway.

*/ inline CustomerGateway& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;} /** *

The ID of the customer gateway.

*/ inline CustomerGateway& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;} /** *

The IP address of the customer gateway device's outside interface.

*/ inline const Aws::String& GetIpAddress() const{ return m_ipAddress; } /** *

The IP address of the customer gateway device's outside interface.

*/ inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; } /** *

The IP address of the customer gateway device's outside interface.

*/ inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; } /** *

The IP address of the customer gateway device's outside interface.

*/ inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); } /** *

The IP address of the customer gateway device's outside interface.

*/ inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); } /** *

The IP address of the customer gateway device's outside interface.

*/ inline CustomerGateway& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;} /** *

The IP address of the customer gateway device's outside interface.

*/ inline CustomerGateway& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;} /** *

The IP address of the customer gateway device's outside interface.

*/ inline CustomerGateway& WithIpAddress(const char* value) { SetIpAddress(value); return *this;} /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline CustomerGateway& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline CustomerGateway& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the customer gateway certificate.

*/ inline CustomerGateway& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline CustomerGateway& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline CustomerGateway& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The current state of the customer gateway (pending | available | * deleting | deleted).

*/ inline CustomerGateway& WithState(const char* value) { SetState(value); return *this;} /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline CustomerGateway& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline CustomerGateway& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of VPN connection the customer gateway supports * (ipsec.1).

*/ inline CustomerGateway& WithType(const char* value) { SetType(value); return *this;} /** *

The name of customer gateway device.

*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The name of customer gateway device.

*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The name of customer gateway device.

*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The name of customer gateway device.

*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The name of customer gateway device.

*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The name of customer gateway device.

*/ inline CustomerGateway& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The name of customer gateway device.

*/ inline CustomerGateway& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The name of customer gateway device.

*/ inline CustomerGateway& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

Any tags assigned to the customer gateway.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Any tags assigned to the customer gateway.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Any tags assigned to the customer gateway.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Any tags assigned to the customer gateway.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Any tags assigned to the customer gateway.

*/ inline CustomerGateway& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Any tags assigned to the customer gateway.

*/ inline CustomerGateway& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Any tags assigned to the customer gateway.

*/ inline CustomerGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Any tags assigned to the customer gateway.

*/ inline CustomerGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_bgpAsn; bool m_bgpAsnHasBeenSet = false; Aws::String m_customerGatewayId; bool m_customerGatewayIdHasBeenSet = false; Aws::String m_ipAddress; bool m_ipAddressHasBeenSet = false; Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws