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

The options for a Connect attachment.

See Also:

AWS * API Reference

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

The tunnel protocol.

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

The tunnel protocol.

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

The tunnel protocol.

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

The tunnel protocol.

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

The tunnel protocol.

*/ inline CreateTransitGatewayConnectRequestOptions& WithProtocol(const ProtocolValue& value) { SetProtocol(value); return *this;} /** *

The tunnel protocol.

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