/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QLDBSession { namespace Model { /** *

Contains the details of the committed transaction.

See Also:

* AWS * API Reference

*/ class AWS_QLDBSESSION_API CommitTransactionResult { public: CommitTransactionResult(); CommitTransactionResult(Aws::Utils::Json::JsonView jsonValue); CommitTransactionResult& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The transaction ID of the committed transaction.

*/ inline const Aws::String& GetTransactionId() const{ return m_transactionId; } /** *

The transaction ID of the committed transaction.

*/ inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; } /** *

The transaction ID of the committed transaction.

*/ inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; } /** *

The transaction ID of the committed transaction.

*/ inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); } /** *

The transaction ID of the committed transaction.

*/ inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); } /** *

The transaction ID of the committed transaction.

*/ inline CommitTransactionResult& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;} /** *

The transaction ID of the committed transaction.

*/ inline CommitTransactionResult& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;} /** *

The transaction ID of the committed transaction.

*/ inline CommitTransactionResult& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} /** *

The commit digest of the committed transaction.

*/ inline const Aws::Utils::ByteBuffer& GetCommitDigest() const{ return m_commitDigest; } /** *

The commit digest of the committed transaction.

*/ inline bool CommitDigestHasBeenSet() const { return m_commitDigestHasBeenSet; } /** *

The commit digest of the committed transaction.

*/ inline void SetCommitDigest(const Aws::Utils::ByteBuffer& value) { m_commitDigestHasBeenSet = true; m_commitDigest = value; } /** *

The commit digest of the committed transaction.

*/ inline void SetCommitDigest(Aws::Utils::ByteBuffer&& value) { m_commitDigestHasBeenSet = true; m_commitDigest = std::move(value); } /** *

The commit digest of the committed transaction.

*/ inline CommitTransactionResult& WithCommitDigest(const Aws::Utils::ByteBuffer& value) { SetCommitDigest(value); return *this;} /** *

The commit digest of the committed transaction.

*/ inline CommitTransactionResult& WithCommitDigest(Aws::Utils::ByteBuffer&& value) { SetCommitDigest(std::move(value)); return *this;} private: Aws::String m_transactionId; bool m_transactionIdHasBeenSet; Aws::Utils::ByteBuffer m_commitDigest; bool m_commitDigestHasBeenSet; }; } // namespace Model } // namespace QLDBSession } // namespace Aws