Class TransactGetItemsEnhancedRequest.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.TransactGetItemsEnhancedRequest.Builder
- Enclosing class:
 TransactGetItemsEnhancedRequest
A builder that is used to create a transaction object with the desired parameters.
 
 A valid builder should contain at least one GetItemEnhancedRequest added through addGetItem().
- 
Method Summary
Modifier and TypeMethodDescriptionaddGetItem(MappedTableResource<?> mappedTableResource, Key key) Adds a primary lookup key and it's associated table to the transaction.addGetItem(MappedTableResource<?> mappedTableResource, GetItemEnhancedRequest request) Adds a primary lookup key and it's associated table to the transaction.addGetItem(MappedTableResource<T> mappedTableResource, T keyItem) Adds a primary lookup key and it's associated table to the transaction.build()Builds aTransactGetItemsEnhancedRequestfrom the values stored in this builder. 
- 
Method Details
- 
addGetItem
public TransactGetItemsEnhancedRequest.Builder addGetItem(MappedTableResource<?> mappedTableResource, GetItemEnhancedRequest request) Adds a primary lookup key and it's associated table to the transaction.- Parameters:
 mappedTableResource- the table where the key is locatedrequest- AGetItemEnhancedRequest- Returns:
 - a builder of this type
 
 - 
addGetItem
public TransactGetItemsEnhancedRequest.Builder addGetItem(MappedTableResource<?> mappedTableResource, Key key) Adds a primary lookup key and it's associated table to the transaction.- Parameters:
 mappedTableResource- the table where the key is locatedkey- the primary key of an item to retrieve as part of the transaction- Returns:
 - a builder of this type
 
 - 
addGetItem
public <T> TransactGetItemsEnhancedRequest.Builder addGetItem(MappedTableResource<T> mappedTableResource, T keyItem) Adds a primary lookup key and it's associated table to the transaction.- Type Parameters:
 T- the type of modelled objects in the table- Parameters:
 mappedTableResource- the table where the key is locatedkeyItem- an item that will have its key fields used to match a record to retrieve from the database- Returns:
 - a builder of this type
 
 - 
build
Builds aTransactGetItemsEnhancedRequestfrom the values stored in this builder. 
 -