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

Describes a core network Connect attachment options.

See Also:

* AWS * API Reference

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

The protocol used for the attachment connection.

*/ inline const TunnelProtocol& GetProtocol() const{ return m_protocol; } /** *

The protocol used for the attachment connection.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The protocol used for the attachment connection.

*/ inline void SetProtocol(const TunnelProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The protocol used for the attachment connection.

*/ inline void SetProtocol(TunnelProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The protocol used for the attachment connection.

*/ inline ConnectAttachmentOptions& WithProtocol(const TunnelProtocol& value) { SetProtocol(value); return *this;} /** *

The protocol used for the attachment connection.

*/ inline ConnectAttachmentOptions& WithProtocol(TunnelProtocol&& value) { SetProtocol(std::move(value)); return *this;} private: TunnelProtocol m_protocol; bool m_protocolHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws