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,150 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kafka/Kafka_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Kafka
{
namespace Model
{
class AWS_KAFKA_API UpdateBrokerCountResult
{
public:
UpdateBrokerCountResult();
UpdateBrokerCountResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateBrokerCountResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline UpdateBrokerCountResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline UpdateBrokerCountResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster.</p>
*/
inline UpdateBrokerCountResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline const Aws::String& GetClusterOperationArn() const{ return m_clusterOperationArn; }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline void SetClusterOperationArn(const Aws::String& value) { m_clusterOperationArn = value; }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline void SetClusterOperationArn(Aws::String&& value) { m_clusterOperationArn = std::move(value); }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline void SetClusterOperationArn(const char* value) { m_clusterOperationArn.assign(value); }
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline UpdateBrokerCountResult& WithClusterOperationArn(const Aws::String& value) { SetClusterOperationArn(value); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline UpdateBrokerCountResult& WithClusterOperationArn(Aws::String&& value) { SetClusterOperationArn(std::move(value)); return *this;}
/**
*
<p>The Amazon Resource Name (ARN) of the cluster operation.</p>
*
*/
inline UpdateBrokerCountResult& WithClusterOperationArn(const char* value) { SetClusterOperationArn(value); return *this;}
private:
Aws::String m_clusterArn;
Aws::String m_clusterOperationArn;
};
} // namespace Model
} // namespace Kafka
} // namespace Aws