/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a VPN connection.See Also:
AWS
* API Reference
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The configuration information for the VPN connection's customer gateway (in
* the native XML format). This element is always present in the
* CreateVpnConnection response; however, it's present in the
* DescribeVpnConnections response only if the VPN connection is in the
* pending or available state.
The ID of the customer gateway at your end of the VPN connection.
*/ inline const Aws::String& GetCustomerGatewayId() const{ return m_customerGatewayId; } /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline bool CustomerGatewayIdHasBeenSet() const { return m_customerGatewayIdHasBeenSet; } /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline void SetCustomerGatewayId(const Aws::String& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = value; } /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline void SetCustomerGatewayId(Aws::String&& value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId = std::move(value); } /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline void SetCustomerGatewayId(const char* value) { m_customerGatewayIdHasBeenSet = true; m_customerGatewayId.assign(value); } /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline VpnConnection& WithCustomerGatewayId(const Aws::String& value) { SetCustomerGatewayId(value); return *this;} /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline VpnConnection& WithCustomerGatewayId(Aws::String&& value) { SetCustomerGatewayId(std::move(value)); return *this;} /** *The ID of the customer gateway at your end of the VPN connection.
*/ inline VpnConnection& WithCustomerGatewayId(const char* value) { SetCustomerGatewayId(value); return *this;} /** *The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The category of the VPN connection. A value of VPN indicates an
* AWS VPN connection. A value of VPN-Classic indicates an AWS Classic
* VPN connection.
The current state of the VPN connection.
*/ inline const VpnState& GetState() const{ return m_state; } /** *The current state of the VPN connection.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The current state of the VPN connection.
*/ inline void SetState(const VpnState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The current state of the VPN connection.
*/ inline void SetState(VpnState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The current state of the VPN connection.
*/ inline VpnConnection& WithState(const VpnState& value) { SetState(value); return *this;} /** *The current state of the VPN connection.
*/ inline VpnConnection& WithState(VpnState&& value) { SetState(std::move(value)); return *this;} /** *The type of VPN connection.
*/ inline const GatewayType& GetType() const{ return m_type; } /** *The type of VPN connection.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of VPN connection.
*/ inline void SetType(const GatewayType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of VPN connection.
*/ inline void SetType(GatewayType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of VPN connection.
*/ inline VpnConnection& WithType(const GatewayType& value) { SetType(value); return *this;} /** *The type of VPN connection.
*/ inline VpnConnection& WithType(GatewayType&& value) { SetType(std::move(value)); return *this;} /** *The ID of the VPN connection.
*/ inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; } /** *The ID of the VPN connection.
*/ inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; } /** *The ID of the VPN connection.
*/ inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; } /** *The ID of the VPN connection.
*/ inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); } /** *The ID of the VPN connection.
*/ inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); } /** *The ID of the VPN connection.
*/ inline VpnConnection& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;} /** *The ID of the VPN connection.
*/ inline VpnConnection& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;} /** *The ID of the VPN connection.
*/ inline VpnConnection& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;} /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline const Aws::String& GetVpnGatewayId() const{ return m_vpnGatewayId; } /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline bool VpnGatewayIdHasBeenSet() const { return m_vpnGatewayIdHasBeenSet; } /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline void SetVpnGatewayId(const Aws::String& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = value; } /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline void SetVpnGatewayId(Aws::String&& value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId = std::move(value); } /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline void SetVpnGatewayId(const char* value) { m_vpnGatewayIdHasBeenSet = true; m_vpnGatewayId.assign(value); } /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline VpnConnection& WithVpnGatewayId(const Aws::String& value) { SetVpnGatewayId(value); return *this;} /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline VpnConnection& WithVpnGatewayId(Aws::String&& value) { SetVpnGatewayId(std::move(value)); return *this;} /** *The ID of the virtual private gateway at the AWS side of the VPN * connection.
*/ inline VpnConnection& WithVpnGatewayId(const char* value) { SetVpnGatewayId(value); return *this;} /** *The ID of the transit gateway associated with the VPN connection.
*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *The ID of the transit gateway associated with the VPN connection.
*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *The ID of the transit gateway associated with the VPN connection.
*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *The ID of the transit gateway associated with the VPN connection.
*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *The ID of the transit gateway associated with the VPN connection.
*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *The ID of the transit gateway associated with the VPN connection.
*/ inline VpnConnection& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *The ID of the transit gateway associated with the VPN connection.
*/ inline VpnConnection& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *The ID of the transit gateway associated with the VPN connection.
*/ inline VpnConnection& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;} /** *The VPN connection options.
*/ inline const VpnConnectionOptions& GetOptions() const{ return m_options; } /** *The VPN connection options.
*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *The VPN connection options.
*/ inline void SetOptions(const VpnConnectionOptions& value) { m_optionsHasBeenSet = true; m_options = value; } /** *The VPN connection options.
*/ inline void SetOptions(VpnConnectionOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *The VPN connection options.
*/ inline VpnConnection& WithOptions(const VpnConnectionOptions& value) { SetOptions(value); return *this;} /** *The VPN connection options.
*/ inline VpnConnection& WithOptions(VpnConnectionOptions&& value) { SetOptions(std::move(value)); return *this;} /** *The static routes associated with the VPN connection.
*/ inline const Aws::VectorThe static routes associated with the VPN connection.
*/ inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; } /** *The static routes associated with the VPN connection.
*/ inline void SetRoutes(const Aws::VectorThe static routes associated with the VPN connection.
*/ inline void SetRoutes(Aws::VectorThe static routes associated with the VPN connection.
*/ inline VpnConnection& WithRoutes(const Aws::VectorThe static routes associated with the VPN connection.
*/ inline VpnConnection& WithRoutes(Aws::VectorThe static routes associated with the VPN connection.
*/ inline VpnConnection& AddRoutes(const VpnStaticRoute& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; } /** *The static routes associated with the VPN connection.
*/ inline VpnConnection& AddRoutes(VpnStaticRoute&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; } /** *Any tags assigned to the VPN connection.
*/ inline const Aws::VectorAny tags assigned to the VPN connection.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the VPN connection.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the VPN connection.
*/ inline void SetTags(Aws::VectorAny tags assigned to the VPN connection.
*/ inline VpnConnection& WithTags(const Aws::VectorAny tags assigned to the VPN connection.
*/ inline VpnConnection& WithTags(Aws::VectorAny tags assigned to the VPN connection.
*/ inline VpnConnection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the VPN connection.
*/ inline VpnConnection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *Information about the VPN tunnel.
*/ inline const Aws::VectorInformation about the VPN tunnel.
*/ inline bool VgwTelemetryHasBeenSet() const { return m_vgwTelemetryHasBeenSet; } /** *Information about the VPN tunnel.
*/ inline void SetVgwTelemetry(const Aws::VectorInformation about the VPN tunnel.
*/ inline void SetVgwTelemetry(Aws::VectorInformation about the VPN tunnel.
*/ inline VpnConnection& WithVgwTelemetry(const Aws::VectorInformation about the VPN tunnel.
*/ inline VpnConnection& WithVgwTelemetry(Aws::VectorInformation about the VPN tunnel.
*/ inline VpnConnection& AddVgwTelemetry(const VgwTelemetry& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(value); return *this; } /** *Information about the VPN tunnel.
*/ inline VpnConnection& AddVgwTelemetry(VgwTelemetry&& value) { m_vgwTelemetryHasBeenSet = true; m_vgwTelemetry.push_back(std::move(value)); return *this; } private: Aws::String m_customerGatewayConfiguration; bool m_customerGatewayConfigurationHasBeenSet; Aws::String m_customerGatewayId; bool m_customerGatewayIdHasBeenSet; Aws::String m_category; bool m_categoryHasBeenSet; VpnState m_state; bool m_stateHasBeenSet; GatewayType m_type; bool m_typeHasBeenSet; Aws::String m_vpnConnectionId; bool m_vpnConnectionIdHasBeenSet; Aws::String m_vpnGatewayId; bool m_vpnGatewayIdHasBeenSet; Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet; VpnConnectionOptions m_options; bool m_optionsHasBeenSet; Aws::Vector