/** * 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 GetRevisionResult { public: GetRevisionResult(); GetRevisionResult(const Aws::AmazonWebServiceResult& result); GetRevisionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The proof object in Amazon Ion format returned by a GetRevision * 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.

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

The proof object in Amazon Ion format returned by a GetRevision * 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.

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

The proof object in Amazon Ion format returned by a GetRevision * 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.

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

The proof object in Amazon Ion format returned by a GetRevision * 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.

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

The proof object in Amazon Ion format returned by a GetRevision * 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.

*/ inline GetRevisionResult& WithProof(ValueHolder&& value) { SetProof(std::move(value)); return *this;} /** *

The document revision data object in Amazon Ion format.

*/ inline const ValueHolder& GetRevision() const{ return m_revision; } /** *

The document revision data object in Amazon Ion format.

*/ inline void SetRevision(const ValueHolder& value) { m_revision = value; } /** *

The document revision data object in Amazon Ion format.

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

The document revision data object in Amazon Ion format.

*/ inline GetRevisionResult& WithRevision(const ValueHolder& value) { SetRevision(value); return *this;} /** *

The document revision data object in Amazon Ion format.

*/ inline GetRevisionResult& WithRevision(ValueHolder&& value) { SetRevision(std::move(value)); return *this;} private: ValueHolder m_proof; ValueHolder m_revision; }; } // namespace Model } // namespace QLDB } // namespace Aws