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

Indicates whether acceleration is enabled for the VPN connection.

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

Indicates whether acceleration is enabled for the VPN connection.

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

Indicates whether acceleration is enabled for the VPN connection.

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

Indicates whether acceleration is enabled for the VPN connection.

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

Indicates whether the VPN connection uses static routes only. Static routes * must be used for devices that don't support BGP.

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

Indicates whether the VPN connection uses static routes only. Static routes * must be used for devices that don't support BGP.

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

Indicates whether the VPN connection uses static routes only. Static routes * must be used for devices that don't support BGP.

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

Indicates whether the VPN connection uses static routes only. Static routes * must be used for devices that don't support BGP.

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

Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.

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

Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.

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

Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.

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

Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.

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

Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.

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

Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

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

Indicates the VPN tunnel options.

*/ inline VpnConnectionOptions& AddTunnelOptions(TunnelOption&& 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