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,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ram/RAM_EXPORTS.h>
#include <aws/ram/model/ResourceShare.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 RAM
{
namespace Model
{
class AWS_RAM_API CreateResourceShareResult
{
public:
CreateResourceShareResult();
CreateResourceShareResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateResourceShareResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the resource share.</p>
*/
inline const ResourceShare& GetResourceShare() const{ return m_resourceShare; }
/**
* <p>Information about the resource share.</p>
*/
inline void SetResourceShare(const ResourceShare& value) { m_resourceShare = value; }
/**
* <p>Information about the resource share.</p>
*/
inline void SetResourceShare(ResourceShare&& value) { m_resourceShare = std::move(value); }
/**
* <p>Information about the resource share.</p>
*/
inline CreateResourceShareResult& WithResourceShare(const ResourceShare& value) { SetResourceShare(value); return *this;}
/**
* <p>Information about the resource share.</p>
*/
inline CreateResourceShareResult& WithResourceShare(ResourceShare&& value) { SetResourceShare(std::move(value)); return *this;}
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline CreateResourceShareResult& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline CreateResourceShareResult& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of the request.</p>
*/
inline CreateResourceShareResult& WithClientToken(const char* value) { SetClientToken(value); return *this;}
private:
ResourceShare m_resourceShare;
Aws::String m_clientToken;
};
} // namespace Model
} // namespace RAM
} // namespace Aws