@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CommitTransactionRequest extends Object implements Serializable, Cloneable, StructuredPojo
Contains the details of the transaction to commit.
Constructor and Description |
---|
CommitTransactionRequest() |
Modifier and Type | Method and Description |
---|---|
CommitTransactionRequest |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getCommitDigest()
Specifies the commit digest for the transaction to commit.
|
String |
getTransactionId()
Specifies the transaction ID of the transaction to commit.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCommitDigest(ByteBuffer commitDigest)
Specifies the commit digest for the transaction to commit.
|
void |
setTransactionId(String transactionId)
Specifies the transaction ID of the transaction to commit.
|
String |
toString()
Returns a string representation of this object.
|
CommitTransactionRequest |
withCommitDigest(ByteBuffer commitDigest)
Specifies the commit digest for the transaction to commit.
|
CommitTransactionRequest |
withTransactionId(String transactionId)
Specifies the transaction ID of the transaction to commit.
|
public void setTransactionId(String transactionId)
Specifies the transaction ID of the transaction to commit.
transactionId
- Specifies the transaction ID of the transaction to commit.public String getTransactionId()
Specifies the transaction ID of the transaction to commit.
public CommitTransactionRequest withTransactionId(String transactionId)
Specifies the transaction ID of the transaction to commit.
transactionId
- Specifies the transaction ID of the transaction to commit.public void setCommitDigest(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.
public ByteBuffer getCommitDigest()
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.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
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.
public CommitTransactionRequest withCommitDigest(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.
public String toString()
toString
in class Object
Object.toString()
public CommitTransactionRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.