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,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mq/MQ_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 MQ
{
namespace Model
{
class AWS_MQ_API DeleteBrokerResult
{
public:
DeleteBrokerResult();
DeleteBrokerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteBrokerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline const Aws::String& GetBrokerId() const{ return m_brokerId; }
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline void SetBrokerId(const Aws::String& value) { m_brokerId = value; }
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline void SetBrokerId(Aws::String&& value) { m_brokerId = std::move(value); }
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline void SetBrokerId(const char* value) { m_brokerId.assign(value); }
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline DeleteBrokerResult& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;}
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline DeleteBrokerResult& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;}
/**
* The unique ID that Amazon MQ generates for the broker.
*/
inline DeleteBrokerResult& WithBrokerId(const char* value) { SetBrokerId(value); return *this;}
private:
Aws::String m_brokerId;
};
} // namespace Model
} // namespace MQ
} // namespace Aws