/** * 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 VPN connection options.

See Also:

AWS * API Reference

*/ class AWS_EC2_API VpnConnectionOptionsSpecification { public: VpnConnectionOptionsSpecification(); VpnConnectionOptionsSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); VpnConnectionOptionsSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; 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; } private: bool m_enableAcceleration; bool m_enableAccelerationHasBeenSet; bool m_staticRoutesOnly; bool m_staticRoutesOnlyHasBeenSet; TunnelInsideIpVersion m_tunnelInsideIpVersion; bool m_tunnelInsideIpVersionHasBeenSet; Aws::Vector m_tunnelOptions; bool m_tunnelOptionsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws