Class BatchWriteResult.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteResult.Builder
- Enclosing class:
BatchWriteResult
A builder that is used to create a result with the desired parameters.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
consumedCapacity
(List<ConsumedCapacity> consumedCapacity) Set the capacity units consumed by the batch write operation result.itemCollectionMetrics
(Map<String, List<ItemCollectionMetrics>> itemCollectionMetrics) Set the ItemCollectionMetrics consumed by the batch write operation result.unprocessedRequests
(Map<String, List<WriteRequest>> unprocessedRequests) Add a map of unprocessed requests to this result object.
-
Method Details
-
consumedCapacity
Set the capacity units consumed by the batch write operation result.This is a list of ConsumedCapacity objects, one for each table in the batch write operation. The list is ordered according to the order of the request parameters.
- Parameters:
consumedCapacity
-- Returns:
- a builder of this type
-
itemCollectionMetrics
public BatchWriteResult.Builder itemCollectionMetrics(Map<String, List<ItemCollectionMetrics>> itemCollectionMetrics) Set the ItemCollectionMetrics consumed by the batch write operation result.This is a Map of List of ItemCollectionMetrics objects, one for each table in the batch write operation.
- Parameters:
itemCollectionMetrics
-- Returns:
- a builder of this type
-
unprocessedRequests
public BatchWriteResult.Builder unprocessedRequests(Map<String, List<WriteRequest>> unprocessedRequests) Add a map of unprocessed requests to this result object.- Parameters:
unprocessedRequests
- the map of table to write request representing the unprocessed requests- Returns:
- a builder of this type
-
build
-