/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template 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& result); GetBlockResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The block data object in Amazon Ion format.

*/ inline const ValueHolder& GetBlock() const{ return m_block; } /** *

The block data object in Amazon Ion format.

*/ inline void SetBlock(const ValueHolder& value) { m_block = value; } /** *

The block data object in Amazon Ion format.

*/ inline void SetBlock(ValueHolder&& value) { m_block = std::move(value); } /** *

The block data object in Amazon Ion format.

*/ inline GetBlockResult& WithBlock(const ValueHolder& value) { SetBlock(value); return *this;} /** *

The block data object in Amazon Ion format.

*/ inline GetBlockResult& WithBlock(ValueHolder&& value) { SetBlock(std::move(value)); return *this;} /** *

The proof object in Amazon Ion format returned by a GetBlock * request. A proof contains the list of hash values required to recalculate the * specified digest using a Merkle tree, starting with the specified block.

*/ inline const ValueHolder& GetProof() const{ return m_proof; } /** *

The proof object in Amazon Ion format returned by a GetBlock * request. A proof contains the list of hash values required to recalculate the * specified digest using a Merkle tree, starting with the specified block.

*/ inline void SetProof(const ValueHolder& value) { m_proof = value; } /** *

The proof object in Amazon Ion format returned by a GetBlock * request. A proof contains the list of hash values required to recalculate the * specified digest using a Merkle tree, starting with the specified block.

*/ inline void SetProof(ValueHolder&& value) { m_proof = std::move(value); } /** *

The proof object in Amazon Ion format returned by a GetBlock * request. A proof contains the list of hash values required to recalculate the * specified digest using a Merkle tree, starting with the specified block.

*/ inline GetBlockResult& WithProof(const ValueHolder& value) { SetProof(value); return *this;} /** *

The proof object in Amazon Ion format returned by a GetBlock * request. A proof contains the list of hash values required to recalculate the * specified digest using a Merkle tree, starting with the specified block.

*/ inline GetBlockResult& WithProof(ValueHolder&& value) { SetProof(std::move(value)); return *this;} private: ValueHolder m_block; ValueHolder m_proof; }; } // namespace Model } // namespace QLDB } // namespace Aws