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 SummaryModifier 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- 
addGetItempublic 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 located
- request- A- GetItemEnhancedRequest
- Returns:
- a builder of this type
 
- 
addGetItempublic 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 located
- key- the primary key of an item to retrieve as part of the transaction
- Returns:
- a builder of this type
 
- 
addGetItempublic <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 located
- keyItem- an item that will have its key fields used to match a record to retrieve from the database
- Returns:
- a builder of this type
 
- 
buildBuilds aTransactGetItemsEnhancedRequestfrom the values stored in this builder.
 
-