114 lines
3.3 KiB
C
114 lines
3.3 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
|
|||
|
|
#include <aws/iotsecuretunneling/IoTSecureTunnelingRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace IoTSecureTunneling
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_IOTSECURETUNNELING_API CloseTunnelRequest : public IoTSecureTunnelingRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
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::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetTunnelId() const{ return m_tunnelId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TunnelIdHasBeenSet() const { return m_tunnelIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTunnelId(const Aws::String& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTunnelId(Aws::String&& value) { m_tunnelIdHasBeenSet = true; m_tunnelId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTunnelId(const char* value) { m_tunnelIdHasBeenSet = true; m_tunnelId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline CloseTunnelRequest& WithTunnelId(const Aws::String& value) { SetTunnelId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline CloseTunnelRequest& WithTunnelId(Aws::String&& value) { SetTunnelId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the tunnel to close.</p>
|
|||
|
|
*/
|
|||
|
|
inline CloseTunnelRequest& WithTunnelId(const char* value) { SetTunnelId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When set to true, AWS IoT Secure Tunneling deletes the tunnel data
|
|||
|
|
* immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetDelete() const{ return m_delete; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When set to true, AWS IoT Secure Tunneling deletes the tunnel data
|
|||
|
|
* immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When set to true, AWS IoT Secure Tunneling deletes the tunnel data
|
|||
|
|
* immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDelete(bool value) { m_deleteHasBeenSet = true; m_delete = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When set to true, AWS IoT Secure Tunneling deletes the tunnel data
|
|||
|
|
* immediately.</p>
|
|||
|
|
*/
|
|||
|
|
inline CloseTunnelRequest& WithDelete(bool value) { SetDelete(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_tunnelId;
|
|||
|
|
bool m_tunnelIdHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_delete;
|
|||
|
|
bool m_deleteHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoTSecureTunneling
|
|||
|
|
} // namespace Aws
|