Class BatchWriteResult.Builder

  • Enclosing class:
    BatchWriteResult

    @NotThreadSafe
    public static final class BatchWriteResult.Builder
    extends Object
    A builder that is used to create a result with the desired parameters.
    • Method Detail

      • consumedCapacity

        public BatchWriteResult.Builder consumedCapacity​(List<ConsumedCapacity> 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