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

VPN connection options.

See Also:

AWS * API Reference

*/ class AwsEc2VpnConnectionOptionsDetails { public: AWS_SECURITYHUB_API AwsEc2VpnConnectionOptionsDetails(); AWS_SECURITYHUB_API AwsEc2VpnConnectionOptionsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2VpnConnectionOptionsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Whether the VPN connection uses static routes only.

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

Whether the VPN connection uses static routes only.

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

Whether the VPN connection uses static routes only.

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

Whether the VPN connection uses static routes only.

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

The VPN tunnel options.

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

The VPN tunnel options.

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

The VPN tunnel options.

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

The VPN tunnel options.

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

The VPN tunnel options.

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

The VPN tunnel options.

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

The VPN tunnel options.

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

The VPN tunnel options.

*/ inline AwsEc2VpnConnectionOptionsDetails& AddTunnelOptions(AwsEc2VpnConnectionOptionsTunnelOptionsDetails&& value) { m_tunnelOptionsHasBeenSet = true; m_tunnelOptions.push_back(std::move(value)); return *this; } private: bool m_staticRoutesOnly; bool m_staticRoutesOnlyHasBeenSet = false; Aws::Vector m_tunnelOptions; bool m_tunnelOptionsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws