/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QLDB { namespace Model { class GetBlockResult { public: AWS_QLDB_API GetBlockResult(); AWS_QLDB_API GetBlockResult(const Aws::AmazonWebServiceResult& result); AWS_QLDB_API 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetBlockResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBlockResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBlockResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ValueHolder m_block; ValueHolder m_proof; Aws::String m_requestId; }; } // namespace Model } // namespace QLDB } // namespace Aws