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,110 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/qldb/QLDB_EXPORTS.h>
#include <aws/qldb/model/ValueHolder.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace QLDB
{
namespace Model
{
class AWS_QLDB_API GetRevisionResult
{
public:
GetRevisionResult();
GetRevisionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRevisionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The proof object in Amazon Ion format returned by a <code>GetRevision</code>
* request. A proof contains the list of hash values that are required to
* recalculate the specified digest using a Merkle tree, starting with the
* specified document revision.</p>
*/
inline const ValueHolder& GetProof() const{ return m_proof; }
/**
* <p>The proof object in Amazon Ion format returned by a <code>GetRevision</code>
* request. A proof contains the list of hash values that are required to
* recalculate the specified digest using a Merkle tree, starting with the
* specified document revision.</p>
*/
inline void SetProof(const ValueHolder& value) { m_proof = value; }
/**
* <p>The proof object in Amazon Ion format returned by a <code>GetRevision</code>
* request. A proof contains the list of hash values that are required to
* recalculate the specified digest using a Merkle tree, starting with the
* specified document revision.</p>
*/
inline void SetProof(ValueHolder&& value) { m_proof = std::move(value); }
/**
* <p>The proof object in Amazon Ion format returned by a <code>GetRevision</code>
* request. A proof contains the list of hash values that are required to
* recalculate the specified digest using a Merkle tree, starting with the
* specified document revision.</p>
*/
inline GetRevisionResult& WithProof(const ValueHolder& value) { SetProof(value); return *this;}
/**
* <p>The proof object in Amazon Ion format returned by a <code>GetRevision</code>
* request. A proof contains the list of hash values that are required to
* recalculate the specified digest using a Merkle tree, starting with the
* specified document revision.</p>
*/
inline GetRevisionResult& WithProof(ValueHolder&& value) { SetProof(std::move(value)); return *this;}
/**
* <p>The document revision data object in Amazon Ion format.</p>
*/
inline const ValueHolder& GetRevision() const{ return m_revision; }
/**
* <p>The document revision data object in Amazon Ion format.</p>
*/
inline void SetRevision(const ValueHolder& value) { m_revision = value; }
/**
* <p>The document revision data object in Amazon Ion format.</p>
*/
inline void SetRevision(ValueHolder&& value) { m_revision = std::move(value); }
/**
* <p>The document revision data object in Amazon Ion format.</p>
*/
inline GetRevisionResult& WithRevision(const ValueHolder& value) { SetRevision(value); return *this;}
/**
* <p>The document revision data object in Amazon Ion format.</p>
*/
inline GetRevisionResult& WithRevision(ValueHolder&& value) { SetRevision(std::move(value)); return *this;}
private:
ValueHolder m_proof;
ValueHolder m_revision;
};
} // namespace Model
} // namespace QLDB
} // namespace Aws