This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-qldb/include/aws/qldb/model/GetRevisionResult.h

111 lines
3.6 KiB
C++

/**
* 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