106 lines
3.3 KiB
C++
106 lines
3.3 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 GetBlockResult
|
|
{
|
|
public:
|
|
GetBlockResult();
|
|
GetBlockResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetBlockResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The block data object in Amazon Ion format.</p>
|
|
*/
|
|
inline const ValueHolder& GetBlock() const{ return m_block; }
|
|
|
|
/**
|
|
* <p>The block data object in Amazon Ion format.</p>
|
|
*/
|
|
inline void SetBlock(const ValueHolder& value) { m_block = value; }
|
|
|
|
/**
|
|
* <p>The block data object in Amazon Ion format.</p>
|
|
*/
|
|
inline void SetBlock(ValueHolder&& value) { m_block = std::move(value); }
|
|
|
|
/**
|
|
* <p>The block data object in Amazon Ion format.</p>
|
|
*/
|
|
inline GetBlockResult& WithBlock(const ValueHolder& value) { SetBlock(value); return *this;}
|
|
|
|
/**
|
|
* <p>The block data object in Amazon Ion format.</p>
|
|
*/
|
|
inline GetBlockResult& WithBlock(ValueHolder&& value) { SetBlock(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The proof object in Amazon Ion format returned by a <code>GetBlock</code>
|
|
* request. A proof contains the list of hash values required to recalculate the
|
|
* specified digest using a Merkle tree, starting with the specified block.</p>
|
|
*/
|
|
inline const ValueHolder& GetProof() const{ return m_proof; }
|
|
|
|
/**
|
|
* <p>The proof object in Amazon Ion format returned by a <code>GetBlock</code>
|
|
* request. A proof contains the list of hash values required to recalculate the
|
|
* specified digest using a Merkle tree, starting with the specified block.</p>
|
|
*/
|
|
inline void SetProof(const ValueHolder& value) { m_proof = value; }
|
|
|
|
/**
|
|
* <p>The proof object in Amazon Ion format returned by a <code>GetBlock</code>
|
|
* request. A proof contains the list of hash values required to recalculate the
|
|
* specified digest using a Merkle tree, starting with the specified block.</p>
|
|
*/
|
|
inline void SetProof(ValueHolder&& value) { m_proof = std::move(value); }
|
|
|
|
/**
|
|
* <p>The proof object in Amazon Ion format returned by a <code>GetBlock</code>
|
|
* request. A proof contains the list of hash values required to recalculate the
|
|
* specified digest using a Merkle tree, starting with the specified block.</p>
|
|
*/
|
|
inline GetBlockResult& WithProof(const ValueHolder& value) { SetProof(value); return *this;}
|
|
|
|
/**
|
|
* <p>The proof object in Amazon Ion format returned by a <code>GetBlock</code>
|
|
* request. A proof contains the list of hash values required to recalculate the
|
|
* specified digest using a Merkle tree, starting with the specified block.</p>
|
|
*/
|
|
inline GetBlockResult& WithProof(ValueHolder&& value) { SetProof(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
ValueHolder m_block;
|
|
|
|
ValueHolder m_proof;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace QLDB
|
|
} // namespace Aws
|