/** * 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 namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes VPN connection options.

See Also:

AWS * API Reference

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

Indicate whether to enable acceleration for the VPN connection.

*

Default: false

*/ inline bool GetEnableAcceleration() const{ return m_enableAcceleration; } /** *

Indicate whether to enable acceleration for the VPN connection.

*

Default: false

*/ inline bool EnableAccelerationHasBeenSet() const { return m_enableAccelerationHasBeenSet; } /** *

Indicate whether to enable acceleration for the VPN connection.

*

Default: false

*/ inline void SetEnableAcceleration(bool value) { m_enableAccelerationHasBeenSet = true; m_enableAcceleration = value; } /** *

Indicate whether to enable acceleration for the VPN connection.

*

Default: false

*/ inline VpnConnectionOptionsSpecification& WithEnableAcceleration(bool value) { SetEnableAcceleration(value); return *this;} /** *

Indicate whether the VPN connection uses static routes only. If you are * creating a VPN connection for a device that does not support BGP, you must * specify true. Use CreateVpnConnectionRoute to create a * static route.

Default: false

*/ inline bool GetStaticRoutesOnly() const{ return m_staticRoutesOnly; } /** *

Indicate whether the VPN connection uses static routes only. If you are * creating a VPN connection for a device that does not support BGP, you must * specify true. Use CreateVpnConnectionRoute to create a * static route.

Default: false

*/ inline bool StaticRoutesOnlyHasBeenSet() const { return m_staticRoutesOnlyHasBeenSet; } /** *

Indicate whether the VPN connection uses static routes only. If you are * creating a VPN connection for a device that does not support BGP, you must * specify true. Use CreateVpnConnectionRoute to create a * static route.

Default: false

*/ inline void SetStaticRoutesOnly(bool value) { m_staticRoutesOnlyHasBeenSet = true; m_staticRoutesOnly = value; } /** *

Indicate whether the VPN connection uses static routes only. If you are * creating a VPN connection for a device that does not support BGP, you must * specify true. Use CreateVpnConnectionRoute to create a * static route.

Default: false

*/ inline VpnConnectionOptionsSpecification& WithStaticRoutesOnly(bool value) { SetStaticRoutesOnly(value); return *this;} /** *

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

*

Default: ipv4

*/ inline const TunnelInsideIpVersion& GetTunnelInsideIpVersion() const{ return m_tunnelInsideIpVersion; } /** *

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

*

Default: ipv4

*/ inline bool TunnelInsideIpVersionHasBeenSet() const { return m_tunnelInsideIpVersionHasBeenSet; } /** *

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

*

Default: ipv4

*/ inline void SetTunnelInsideIpVersion(const TunnelInsideIpVersion& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = value; } /** *

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

*

Default: ipv4

*/ inline void SetTunnelInsideIpVersion(TunnelInsideIpVersion&& value) { m_tunnelInsideIpVersionHasBeenSet = true; m_tunnelInsideIpVersion = std::move(value); } /** *

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

*

Default: ipv4

*/ inline VpnConnectionOptionsSpecification& WithTunnelInsideIpVersion(const TunnelInsideIpVersion& value) { SetTunnelInsideIpVersion(value); return *this;} /** *

Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.

*

Default: ipv4

*/ inline VpnConnectionOptionsSpecification& WithTunnelInsideIpVersion(TunnelInsideIpVersion&& value) { SetTunnelInsideIpVersion(std::move(value)); return *this;} /** *

The tunnel options for the VPN connection.

*/ inline const Aws::Vector& GetTunnelOptions() const{ return m_tunnelOptions; } /** *

The tunnel options for the VPN connection.

*/ inline bool TunnelOptionsHasBeenSet() const { return m_tunnelOptionsHasBeenSet; } /** *

The tunnel options for the VPN connection.

*/ inline void SetTunnelOptions(const Aws::Vector& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = value; } /** *

The tunnel options for the VPN connection.

*/ inline void SetTunnelOptions(Aws::Vector&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions = std::move(value); } /** *

The tunnel options for the VPN connection.

*/ inline VpnConnectionOptionsSpecification& WithTunnelOptions(const Aws::Vector& value) { SetTunnelOptions(value); return *this;} /** *

The tunnel options for the VPN connection.

*/ inline VpnConnectionOptionsSpecification& WithTunnelOptions(Aws::Vector&& value) { SetTunnelOptions(std::move(value)); return *this;} /** *

The tunnel options for the VPN connection.

*/ inline VpnConnectionOptionsSpecification& AddTunnelOptions(const VpnTunnelOptionsSpecification& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(value); return *this; } /** *

The tunnel options for the VPN connection.

*/ inline VpnConnectionOptionsSpecification& AddTunnelOptions(VpnTunnelOptionsSpecification&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(std::move(value)); return *this; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline const Aws::String& GetLocalIpv4NetworkCidr() const{ return m_localIpv4NetworkCidr; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline bool LocalIpv4NetworkCidrHasBeenSet() const { return m_localIpv4NetworkCidrHasBeenSet; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline void SetLocalIpv4NetworkCidr(const Aws::String& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = value; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline void SetLocalIpv4NetworkCidr(Aws::String&& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = std::move(value); } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline void SetLocalIpv4NetworkCidr(const char* value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr.assign(value); } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline VpnConnectionOptionsSpecification& WithLocalIpv4NetworkCidr(const Aws::String& value) { SetLocalIpv4NetworkCidr(value); return *this;} /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline VpnConnectionOptionsSpecification& WithLocalIpv4NetworkCidr(Aws::String&& value) { SetLocalIpv4NetworkCidr(std::move(value)); return *this;} /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline VpnConnectionOptionsSpecification& WithLocalIpv4NetworkCidr(const char* value) { SetLocalIpv4NetworkCidr(value); return *this;} /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline const Aws::String& GetRemoteIpv4NetworkCidr() const{ return m_remoteIpv4NetworkCidr; } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline bool RemoteIpv4NetworkCidrHasBeenSet() const { return m_remoteIpv4NetworkCidrHasBeenSet; } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline void SetRemoteIpv4NetworkCidr(const Aws::String& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = value; } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline void SetRemoteIpv4NetworkCidr(Aws::String&& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = std::move(value); } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline void SetRemoteIpv4NetworkCidr(const char* value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr.assign(value); } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline VpnConnectionOptionsSpecification& WithRemoteIpv4NetworkCidr(const Aws::String& value) { SetRemoteIpv4NetworkCidr(value); return *this;} /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline VpnConnectionOptionsSpecification& WithRemoteIpv4NetworkCidr(Aws::String&& value) { SetRemoteIpv4NetworkCidr(std::move(value)); return *this;} /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline VpnConnectionOptionsSpecification& WithRemoteIpv4NetworkCidr(const char* value) { SetRemoteIpv4NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline const Aws::String& GetLocalIpv6NetworkCidr() const{ return m_localIpv6NetworkCidr; } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline bool LocalIpv6NetworkCidrHasBeenSet() const { return m_localIpv6NetworkCidrHasBeenSet; } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline void SetLocalIpv6NetworkCidr(const Aws::String& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = value; } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline void SetLocalIpv6NetworkCidr(Aws::String&& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = std::move(value); } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline void SetLocalIpv6NetworkCidr(const char* value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr.assign(value); } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline VpnConnectionOptionsSpecification& WithLocalIpv6NetworkCidr(const Aws::String& value) { SetLocalIpv6NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline VpnConnectionOptionsSpecification& WithLocalIpv6NetworkCidr(Aws::String&& value) { SetLocalIpv6NetworkCidr(std::move(value)); return *this;} /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline VpnConnectionOptionsSpecification& WithLocalIpv6NetworkCidr(const char* value) { SetLocalIpv6NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline const Aws::String& GetRemoteIpv6NetworkCidr() const{ return m_remoteIpv6NetworkCidr; } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline bool RemoteIpv6NetworkCidrHasBeenSet() const { return m_remoteIpv6NetworkCidrHasBeenSet; } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline void SetRemoteIpv6NetworkCidr(const Aws::String& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = value; } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline void SetRemoteIpv6NetworkCidr(Aws::String&& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = std::move(value); } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline void SetRemoteIpv6NetworkCidr(const char* value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr.assign(value); } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline VpnConnectionOptionsSpecification& WithRemoteIpv6NetworkCidr(const Aws::String& value) { SetRemoteIpv6NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline VpnConnectionOptionsSpecification& WithRemoteIpv6NetworkCidr(Aws::String&& value) { SetRemoteIpv6NetworkCidr(std::move(value)); return *this;} /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline VpnConnectionOptionsSpecification& WithRemoteIpv6NetworkCidr(const char* value) { SetRemoteIpv6NetworkCidr(value); return *this;} /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline const Aws::String& GetOutsideIpAddressType() const{ return m_outsideIpAddressType; } /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline bool OutsideIpAddressTypeHasBeenSet() const { return m_outsideIpAddressTypeHasBeenSet; } /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline void SetOutsideIpAddressType(const Aws::String& value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType = value; } /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline void SetOutsideIpAddressType(Aws::String&& value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType = std::move(value); } /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline void SetOutsideIpAddressType(const char* value) { m_outsideIpAddressTypeHasBeenSet = true; m_outsideIpAddressType.assign(value); } /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline VpnConnectionOptionsSpecification& WithOutsideIpAddressType(const Aws::String& value) { SetOutsideIpAddressType(value); return *this;} /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline VpnConnectionOptionsSpecification& WithOutsideIpAddressType(Aws::String&& value) { SetOutsideIpAddressType(std::move(value)); return *this;} /** *

The type of IPv4 address assigned to the outside interface of the customer * gateway device.

Valid values: PrivateIpv4 | * PublicIpv4

Default: PublicIpv4

*/ inline VpnConnectionOptionsSpecification& WithOutsideIpAddressType(const char* value) { SetOutsideIpAddressType(value); return *this;} /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline const Aws::String& GetTransportTransitGatewayAttachmentId() const{ return m_transportTransitGatewayAttachmentId; } /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline bool TransportTransitGatewayAttachmentIdHasBeenSet() const { return m_transportTransitGatewayAttachmentIdHasBeenSet; } /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline void SetTransportTransitGatewayAttachmentId(const Aws::String& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = value; } /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline void SetTransportTransitGatewayAttachmentId(Aws::String&& value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId = std::move(value); } /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline void SetTransportTransitGatewayAttachmentId(const char* value) { m_transportTransitGatewayAttachmentIdHasBeenSet = true; m_transportTransitGatewayAttachmentId.assign(value); } /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline VpnConnectionOptionsSpecification& WithTransportTransitGatewayAttachmentId(const Aws::String& value) { SetTransportTransitGatewayAttachmentId(value); return *this;} /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline VpnConnectionOptionsSpecification& WithTransportTransitGatewayAttachmentId(Aws::String&& value) { SetTransportTransitGatewayAttachmentId(std::move(value)); return *this;} /** *

The transit gateway attachment ID to use for the VPN tunnel.

Required * if OutsideIpAddressType is set to PrivateIpv4.

*/ inline VpnConnectionOptionsSpecification& WithTransportTransitGatewayAttachmentId(const char* value) { SetTransportTransitGatewayAttachmentId(value); return *this;} private: bool m_enableAcceleration; bool m_enableAccelerationHasBeenSet = false; bool m_staticRoutesOnly; bool m_staticRoutesOnlyHasBeenSet = false; TunnelInsideIpVersion m_tunnelInsideIpVersion; bool m_tunnelInsideIpVersionHasBeenSet = false; Aws::Vector m_tunnelOptions; bool m_tunnelOptionsHasBeenSet = false; Aws::String m_localIpv4NetworkCidr; bool m_localIpv4NetworkCidrHasBeenSet = false; Aws::String m_remoteIpv4NetworkCidr; bool m_remoteIpv4NetworkCidrHasBeenSet = false; Aws::String m_localIpv6NetworkCidr; bool m_localIpv6NetworkCidrHasBeenSet = false; Aws::String m_remoteIpv6NetworkCidr; bool m_remoteIpv6NetworkCidrHasBeenSet = false; Aws::String m_outsideIpAddressType; bool m_outsideIpAddressTypeHasBeenSet = false; Aws::String m_transportTransitGatewayAttachmentId; bool m_transportTransitGatewayAttachmentIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws