/** * 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 transaction to commit.

See Also:

* AWS * API Reference

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the transaction ID of the transaction to commit.

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

Specifies the commit digest for the transaction to commit. For every active * transaction, the commit digest must be passed. QLDB validates * CommitDigest and rejects the commit with an error if the digest * computed on the client does not match the digest computed by QLDB.

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

Specifies the commit digest for the transaction to commit. For every active * transaction, the commit digest must be passed. QLDB validates * CommitDigest and rejects the commit with an error if the digest * computed on the client does not match the digest computed by QLDB.

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

Specifies the commit digest for the transaction to commit. For every active * transaction, the commit digest must be passed. QLDB validates * CommitDigest and rejects the commit with an error if the digest * computed on the client does not match the digest computed by QLDB.

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

Specifies the commit digest for the transaction to commit. For every active * transaction, the commit digest must be passed. QLDB validates * CommitDigest and rejects the commit with an error if the digest * computed on the client does not match the digest computed by QLDB.

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

Specifies the commit digest for the transaction to commit. For every active * transaction, the commit digest must be passed. QLDB validates * CommitDigest and rejects the commit with an error if the digest * computed on the client does not match the digest computed by QLDB.

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

Specifies the commit digest for the transaction to commit. For every active * transaction, the commit digest must be passed. QLDB validates * CommitDigest and rejects the commit with an error if the digest * computed on the client does not match the digest computed by QLDB.

*/ inline CommitTransactionRequest& 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