feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dax/DAX_EXPORTS.h>
#include <aws/dax/DAXRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DAX
{
namespace Model
{
/**
*/
class AWS_DAX_API RebootNodeRequest : public DAXRequest
{
public:
RebootNodeRequest();
// 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 "RebootNode"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline const Aws::String& GetClusterName() const{ return m_clusterName; }
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline RebootNodeRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline RebootNodeRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
/**
* <p>The name of the DAX cluster containing the node to be rebooted.</p>
*/
inline RebootNodeRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline const Aws::String& GetNodeId() const{ return m_nodeId; }
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline RebootNodeRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline RebootNodeRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
/**
* <p>The system-assigned ID of the node to be rebooted.</p>
*/
inline RebootNodeRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
private:
Aws::String m_clusterName;
bool m_clusterNameHasBeenSet;
Aws::String m_nodeId;
bool m_nodeIdHasBeenSet;
};
} // namespace Model
} // namespace DAX
} // namespace Aws