public static final class TransactWriteItemsEnhancedRequest.Builder extends Object
A valid builder should contain at least one low-level request such as DeleteItemEnhancedRequest.
| Modifier and Type | Method and Description |
|---|---|
<T> TransactWriteItemsEnhancedRequest.Builder |
addConditionCheck(MappedTableResource<T> mappedTableResource,
ConditionCheck<T> request)
Adds a condition check for a primary key in the associated table to the transaction.
|
<T> TransactWriteItemsEnhancedRequest.Builder |
addConditionCheck(MappedTableResource<T> mappedTableResource,
Consumer<ConditionCheck.Builder> requestConsumer)
Adds a condition check for a primary key in the associated table to the transaction by accepting a consumer
of
ConditionCheck.Builder. |
<T> TransactWriteItemsEnhancedRequest.Builder |
addDeleteItem(MappedTableResource<T> mappedTableResource,
Consumer<DeleteItemEnhancedRequest.Builder> requestConsumer)
Adds a primary lookup key for the item to delete, and it's associated table, to the transaction by accepting a consumer
of
DeleteItemEnhancedRequest.Builder. |
<T> TransactWriteItemsEnhancedRequest.Builder |
addDeleteItem(MappedTableResource<T> mappedTableResource,
DeleteItemEnhancedRequest request)
Adds a primary lookup key for the item to delete, and it's associated table, to the transaction.
|
<T> TransactWriteItemsEnhancedRequest.Builder |
addPutItem(MappedTableResource<T> mappedTableResource,
Class<? extends T> itemClass,
Consumer<PutItemEnhancedRequest.Builder<T>> requestConsumer)
Adds an item to be written, and it's associated table, to the transaction by accepting a consumer
of
PutItemEnhancedRequest.Builder. |
<T> TransactWriteItemsEnhancedRequest.Builder |
addPutItem(MappedTableResource<T> mappedTableResource,
PutItemEnhancedRequest<T> request)
Adds an item to be written, and it's associated table, to the transaction.
|
<T> TransactWriteItemsEnhancedRequest.Builder |
addUpdateItem(MappedTableResource<T> mappedTableResource,
Class<? extends T> itemClass,
Consumer<UpdateItemEnhancedRequest.Builder<T>> requestConsumer)
Adds an item to be written, and it's associated table, to the transaction by accepting a consumer
of
PutItemEnhancedRequest.Builder. |
<T> TransactWriteItemsEnhancedRequest.Builder |
addUpdateItem(MappedTableResource<T> mappedTableResource,
UpdateItemEnhancedRequest<T> request)
Adds an item to be updated, and it's associated table, to the transaction.
|
TransactWriteItemsEnhancedRequest |
build() |
public <T> TransactWriteItemsEnhancedRequest.Builder addConditionCheck(MappedTableResource<T> mappedTableResource, ConditionCheck<T> request)
Note: The condition check should be applied to an item that is not modified by another action in the
same transaction. See ConditionCheck for more information on how to build a condition check, and the
DynamoDb TransactWriteItems documentation for more information on how a condition check affects the transaction.
T - the type of modelled objects in the tablemappedTableResource - the table on which to apply the condition checkrequest - A ConditionCheck definitionpublic <T> TransactWriteItemsEnhancedRequest.Builder addConditionCheck(MappedTableResource<T> mappedTableResource, Consumer<ConditionCheck.Builder> requestConsumer)
ConditionCheck.Builder.
Note: The condition check should be applied to an item that is not modified by another action in the
same transaction. See ConditionCheck for more information on how to build a condition check, and the
DynamoDb TransactWriteItems documentation for more information on how a condition check affects the transaction.
T - the type of modelled objects in the tablemappedTableResource - the table on which to apply the condition checkrequestConsumer - a Consumer of DeleteItemEnhancedRequestpublic <T> TransactWriteItemsEnhancedRequest.Builder addDeleteItem(MappedTableResource<T> mappedTableResource, DeleteItemEnhancedRequest request)
DynamoDbTable.deleteItem(DeleteItemEnhancedRequest) and how to construct the low-level request in
DeleteItemEnhancedRequest.T - the type of modelled objects in the tablemappedTableResource - the table where the key is locatedrequest - A DeleteItemEnhancedRequestpublic <T> TransactWriteItemsEnhancedRequest.Builder addDeleteItem(MappedTableResource<T> mappedTableResource, Consumer<DeleteItemEnhancedRequest.Builder> requestConsumer)
DeleteItemEnhancedRequest.Builder. For more information on the delete action, see the low-level operation
description in for instance DynamoDbTable.deleteItem(DeleteItemEnhancedRequest) and how to construct the
low-level request in DeleteItemEnhancedRequest.T - the type of modelled objects in the tablemappedTableResource - the table where the key is locatedrequestConsumer - a Consumer of DeleteItemEnhancedRequestpublic <T> TransactWriteItemsEnhancedRequest.Builder addPutItem(MappedTableResource<T> mappedTableResource, PutItemEnhancedRequest<T> request)
DynamoDbTable.putItem(PutItemEnhancedRequest)
and how to construct the low-level request in PutItemEnhancedRequest.T - the type of modelled objects in the tablemappedTableResource - the table to write the item torequest - A PutItemEnhancedRequestpublic <T> TransactWriteItemsEnhancedRequest.Builder addPutItem(MappedTableResource<T> mappedTableResource, Class<? extends T> itemClass, Consumer<PutItemEnhancedRequest.Builder<T>> requestConsumer)
PutItemEnhancedRequest.Builder. For more information on the put action,
see the low-level operation description in for instance DynamoDbTable.putItem(PutItemEnhancedRequest)
and how to construct the low-level request in PutItemEnhancedRequest.T - the type of modelled objects in the tablemappedTableResource - the table to write the item torequestConsumer - a Consumer of PutItemEnhancedRequestpublic <T> TransactWriteItemsEnhancedRequest.Builder addUpdateItem(MappedTableResource<T> mappedTableResource, UpdateItemEnhancedRequest<T> request)
DynamoDbTable.updateItem(UpdateItemEnhancedRequest)
and how to construct the low-level request in UpdateItemEnhancedRequest.T - the type of modelled objects in the tablemappedTableResource - the table to write the item torequest - A UpdateItemEnhancedRequestpublic <T> TransactWriteItemsEnhancedRequest.Builder addUpdateItem(MappedTableResource<T> mappedTableResource, Class<? extends T> itemClass, Consumer<UpdateItemEnhancedRequest.Builder<T>> requestConsumer)
PutItemEnhancedRequest.Builder. For more information on the update action,
see the low-level operation description in for instance DynamoDbTable.updateItem(UpdateItemEnhancedRequest)
and how to construct the low-level request in UpdateItemEnhancedRequest.T - the type of modelled objects in the tablemappedTableResource - the table to write the item torequestConsumer - a Consumer of UpdateItemEnhancedRequestpublic TransactWriteItemsEnhancedRequest build()
Copyright © 2020. All rights reserved.