Interface CommitTransactionRequest.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CommitTransactionRequest.Builder,CommitTransactionRequest>, SdkBuilder<CommitTransactionRequest.Builder,CommitTransactionRequest>, SdkPojo
Enclosing class:
CommitTransactionRequest

public static interface CommitTransactionRequest.Builder extends SdkPojo, CopyableBuilder<CommitTransactionRequest.Builder,CommitTransactionRequest>
  • Method Details

    • transactionId

      CommitTransactionRequest.Builder transactionId(String transactionId)

      Specifies the transaction ID of the transaction to commit.

      Parameters:
      transactionId - Specifies the transaction ID of the transaction to commit.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commitDigest

      CommitTransactionRequest.Builder commitDigest(SdkBytes 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.

      The purpose of the CommitDigest parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.

      Parameters:
      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.

      The purpose of the CommitDigest parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.

      Returns:
      Returns a reference to this object so that method calls can be chained together.