public final class TransactWriteItemsEnhancedRequest extends Object
DynamoDbEnhancedClient.transactWriteItems(TransactWriteItemsEnhancedRequest)
).
A request contains parameters for the different actions available in the operation:
TransactPutItemEnhancedRequest
and each low-level action
request is associated with the table where the action should be applied. On initialization, these requests are transformed
into TransactWriteItem
and stored in the request.Modifier and Type | Class and Description |
---|---|
static class |
TransactWriteItemsEnhancedRequest.Builder
A builder that is used to create a transaction object with the desired parameters.
|
Modifier and Type | Method and Description |
---|---|
static TransactWriteItemsEnhancedRequest.Builder |
builder()
Creates a newly initialized builder for a request object.
|
String |
clientRequestToken()
Providing a
ClientRequestToken makes the call to TransactWriteItems idempotent, meaning
that multiple identical calls have the same effect as one single call. |
boolean |
equals(Object o) |
int |
hashCode() |
List<TransactWriteItem> |
transactWriteItems()
Returns the list of
TransactWriteItem that represents all actions in the request. |
public static TransactWriteItemsEnhancedRequest.Builder builder()
public String clientRequestToken()
Providing a ClientRequestToken
makes the call to TransactWriteItems
idempotent, meaning
that multiple identical calls have the same effect as one single call.
A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 10-minute
idempotency window, DynamoDB returns an IdempotentParameterMismatch
exception.
public List<TransactWriteItem> transactWriteItems()
TransactWriteItem
that represents all actions in the request.Copyright © 2021. All rights reserved.