/** * 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 IoTSecureTunneling { namespace Model { /** */ class CloseTunnelRequest : public IoTSecureTunnelingRequest { public: AWS_IOTSECURETUNNELING_API CloseTunnelRequest(); // 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 "CloseTunnel"; } AWS_IOTSECURETUNNELING_API Aws::String SerializePayload() const override; AWS_IOTSECURETUNNELING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the tunnel to close.

*/ inline const Aws::String& GetTunnelId() const{ return m_tunnelId; } /** *

The ID of the tunnel to close.

*/ inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; } /** *

The ID of the tunnel to close.

*/ inline void SetTunnelId(const Aws::String& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = value; } /** *

The ID of the tunnel to close.

*/ inline void SetTunnelId(Aws::String&& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = std::move(value); } /** *

The ID of the tunnel to close.

*/ inline void SetTunnelId(const char* value) { m_tunnelIdHasBeenSet = true; m_tunnelId.assign(value); } /** *

The ID of the tunnel to close.

*/ inline CloseTunnelRequest& WithTunnelId(const Aws::String& value) { SetTunnelId(value); return *this;} /** *

The ID of the tunnel to close.

*/ inline CloseTunnelRequest& WithTunnelId(Aws::String&& value) { SetTunnelId(std::move(value)); return *this;} /** *

The ID of the tunnel to close.

*/ inline CloseTunnelRequest& WithTunnelId(const char* value) { SetTunnelId(value); return *this;} /** *

When set to true, IoT Secure Tunneling deletes the tunnel data * immediately.

*/ inline bool GetDelete() const{ return m_delete; } /** *

When set to true, IoT Secure Tunneling deletes the tunnel data * immediately.

*/ inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; } /** *

When set to true, IoT Secure Tunneling deletes the tunnel data * immediately.

*/ inline void SetDelete(bool value) { m_deleteHasBeenSet = true; m_delete = value; } /** *

When set to true, IoT Secure Tunneling deletes the tunnel data * immediately.

*/ inline CloseTunnelRequest& WithDelete(bool value) { SetDelete(value); return *this;} private: Aws::String m_tunnelId; bool m_tunnelIdHasBeenSet = false; bool m_delete; bool m_deleteHasBeenSet = false; }; } // namespace Model } // namespace IoTSecureTunneling } // namespace Aws