/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QLDB { namespace Model { class GetDigestResult { public: AWS_QLDB_API GetDigestResult(); AWS_QLDB_API GetDigestResult(const Aws::AmazonWebServiceResult& result); AWS_QLDB_API GetDigestResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The 256-bit hash value representing the digest returned by a * GetDigest request.

*/ inline const Aws::Utils::ByteBuffer& GetDigest() const{ return m_digest; } /** *

The 256-bit hash value representing the digest returned by a * GetDigest request.

*/ inline void SetDigest(const Aws::Utils::ByteBuffer& value) { m_digest = value; } /** *

The 256-bit hash value representing the digest returned by a * GetDigest request.

*/ inline void SetDigest(Aws::Utils::ByteBuffer&& value) { m_digest = std::move(value); } /** *

The 256-bit hash value representing the digest returned by a * GetDigest request.

*/ inline GetDigestResult& WithDigest(const Aws::Utils::ByteBuffer& value) { SetDigest(value); return *this;} /** *

The 256-bit hash value representing the digest returned by a * GetDigest request.

*/ inline GetDigestResult& WithDigest(Aws::Utils::ByteBuffer&& value) { SetDigest(std::move(value)); return *this;} /** *

The latest block location covered by the digest that you requested. An * address is an Amazon Ion structure that has two fields: strandId * and sequenceNo.

*/ inline const ValueHolder& GetDigestTipAddress() const{ return m_digestTipAddress; } /** *

The latest block location covered by the digest that you requested. An * address is an Amazon Ion structure that has two fields: strandId * and sequenceNo.

*/ inline void SetDigestTipAddress(const ValueHolder& value) { m_digestTipAddress = value; } /** *

The latest block location covered by the digest that you requested. An * address is an Amazon Ion structure that has two fields: strandId * and sequenceNo.

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

The latest block location covered by the digest that you requested. An * address is an Amazon Ion structure that has two fields: strandId * and sequenceNo.

*/ inline GetDigestResult& WithDigestTipAddress(const ValueHolder& value) { SetDigestTipAddress(value); return *this;} /** *

The latest block location covered by the digest that you requested. An * address is an Amazon Ion structure that has two fields: strandId * and sequenceNo.

*/ inline GetDigestResult& WithDigestTipAddress(ValueHolder&& value) { SetDigestTipAddress(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 GetDigestResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetDigestResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetDigestResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::ByteBuffer m_digest; ValueHolder m_digestTipAddress; Aws::String m_requestId; }; } // namespace Model } // namespace QLDB } // namespace Aws