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

Describes a virtual private gateway.

See Also:

AWS API * Reference

*/ class VpnGateway { public: AWS_EC2_API VpnGateway(); AWS_EC2_API VpnGateway(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VpnGateway& 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 Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline VpnGateway& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline VpnGateway& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone where the virtual private gateway was created, if * applicable. This field may be empty or not returned.

*/ inline VpnGateway& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The current state of the virtual private gateway.

*/ inline const VpnState& GetState() const{ return m_state; } /** *

The current state of the virtual private gateway.

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

The current state of the virtual private gateway.

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

The current state of the virtual private gateway.

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

The current state of the virtual private gateway.

*/ inline VpnGateway& WithState(const VpnState& value) { SetState(value); return *this;} /** *

The current state of the virtual private gateway.

*/ inline VpnGateway& WithState(VpnState&& value) { SetState(std::move(value)); return *this;} /** *

The type of VPN connection the virtual private gateway supports.

*/ inline const GatewayType& GetType() const{ return m_type; } /** *

The type of VPN connection the virtual private gateway supports.

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

The type of VPN connection the virtual private gateway supports.

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

The type of VPN connection the virtual private gateway supports.

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

The type of VPN connection the virtual private gateway supports.

*/ inline VpnGateway& WithType(const GatewayType& value) { SetType(value); return *this;} /** *

The type of VPN connection the virtual private gateway supports.

*/ inline VpnGateway& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;} /** *

Any VPCs attached to the virtual private gateway.

*/ inline const Aws::Vector& GetVpcAttachments() const{ return m_vpcAttachments; } /** *

Any VPCs attached to the virtual private gateway.

*/ inline bool VpcAttachmentsHasBeenSet() const { return m_vpcAttachmentsHasBeenSet; } /** *

Any VPCs attached to the virtual private gateway.

*/ inline void SetVpcAttachments(const Aws::Vector& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments = value; } /** *

Any VPCs attached to the virtual private gateway.

*/ inline void SetVpcAttachments(Aws::Vector&& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments = std::move(value); } /** *

Any VPCs attached to the virtual private gateway.

*/ inline VpnGateway& WithVpcAttachments(const Aws::Vector& value) { SetVpcAttachments(value); return *this;} /** *

Any VPCs attached to the virtual private gateway.

*/ inline VpnGateway& WithVpcAttachments(Aws::Vector&& value) { SetVpcAttachments(std::move(value)); return *this;} /** *

Any VPCs attached to the virtual private gateway.

*/ inline VpnGateway& AddVpcAttachments(const VpcAttachment& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments.push_back(value); return *this; } /** *

Any VPCs attached to the virtual private gateway.

*/ inline VpnGateway& AddVpcAttachments(VpcAttachment&& value) { m_vpcAttachmentsHasBeenSet = true; m_vpcAttachments.push_back(std::move(value)); return *this; } /** *

The ID of the virtual private gateway.

*/ inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; } /** *

The ID of the virtual private gateway.

*/ inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; } /** *

The ID of the virtual private gateway.

*/ inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; } /** *

The ID of the virtual private gateway.

*/ inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); } /** *

The ID of the virtual private gateway.

*/ inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); } /** *

The ID of the virtual private gateway.

*/ inline VpnGateway& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;} /** *

The ID of the virtual private gateway.

*/ inline VpnGateway& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;} /** *

The ID of the virtual private gateway.

*/ inline VpnGateway& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;} /** *

The private Autonomous System Number (ASN) for the Amazon side of a BGP * session.

*/ inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; } /** *

The private Autonomous System Number (ASN) for the Amazon side of a BGP * session.

*/ inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; } /** *

The private Autonomous System Number (ASN) for the Amazon side of a BGP * session.

*/ inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; } /** *

The private Autonomous System Number (ASN) for the Amazon side of a BGP * session.

*/ inline VpnGateway& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;} /** *

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

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

Any tags assigned to the virtual private gateway.

*/ inline VpnGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; VpnState m_state; bool m_stateHasBeenSet = false; GatewayType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_vpcAttachments; bool m_vpcAttachmentsHasBeenSet = false; Aws::String m_vpnGatewayId; bool m_vpnGatewayIdHasBeenSet = false; long long m_amazonSideAsn; bool m_amazonSideAsnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws