/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace IoTSecureTunneling { namespace Model { /** */ class OpenTunnelRequest : public IoTSecureTunnelingRequest { public: AWS_IOTSECURETUNNELING_API OpenTunnelRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "OpenTunnel"; } AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override; AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A short text description of the tunnel.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A short text description of the tunnel.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A short text description of the tunnel.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A short text description of the tunnel.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A short text description of the tunnel.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A short text description of the tunnel.

*/ inline OpenTunnelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A short text description of the tunnel.

*/ inline OpenTunnelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A short text description of the tunnel.

*/ inline OpenTunnelRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A collection of tag metadata.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A collection of tag metadata.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A collection of tag metadata.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A collection of tag metadata.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A collection of tag metadata.

*/ inline OpenTunnelRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A collection of tag metadata.

*/ inline OpenTunnelRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A collection of tag metadata.

*/ inline OpenTunnelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A collection of tag metadata.

*/ inline OpenTunnelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The destination configuration for the OpenTunnel request.

*/ inline const DestinationConfig& GetDestinationConfig() const{ return m_destinationConfig; } /** *

The destination configuration for the OpenTunnel request.

*/ inline bool DestinationConfigHasBeenSet() const { return m_destinationConfigHasBeenSet; } /** *

The destination configuration for the OpenTunnel request.

*/ inline void SetDestinationConfig(const DestinationConfig& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = value; } /** *

The destination configuration for the OpenTunnel request.

*/ inline void SetDestinationConfig(DestinationConfig&& value) { m_destinationConfigHasBeenSet = true; m_destinationConfig = std::move(value); } /** *

The destination configuration for the OpenTunnel request.

*/ inline OpenTunnelRequest& WithDestinationConfig(const DestinationConfig& value) { SetDestinationConfig(value); return *this;} /** *

The destination configuration for the OpenTunnel request.

*/ inline OpenTunnelRequest& WithDestinationConfig(DestinationConfig&& value) { SetDestinationConfig(std::move(value)); return *this;} /** *

Timeout configuration for a tunnel.

*/ inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; } /** *

Timeout configuration for a tunnel.

*/ inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; } /** *

Timeout configuration for a tunnel.

*/ inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; } /** *

Timeout configuration for a tunnel.

*/ inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); } /** *

Timeout configuration for a tunnel.

*/ inline OpenTunnelRequest& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;} /** *

Timeout configuration for a tunnel.

*/ inline OpenTunnelRequest& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; DestinationConfig m_destinationConfig; bool m_destinationConfigHasBeenSet = false; TimeoutConfig m_timeoutConfig; bool m_timeoutConfigHasBeenSet = false; }; } // namespace Model } // namespace IoTSecureTunneling } // namespace Aws