Class BatchWriteResult

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteResult

@ThreadSafe public final class BatchWriteResult extends Object
Defines the result of the batchWriteItem() operation, such as DynamoDbEnhancedClient.batchWriteItem(BatchWriteItemEnhancedRequest). The result describes any unprocessed items after the operation completes.
  • Method Details

    • builder

      public static BatchWriteResult.Builder builder()
      Creates a newly initialized builder for a request object.
    • unprocessedPutItemsForTable

      public <T> List<T> unprocessedPutItemsForTable(MappedTableResource<T> mappedTable)
      Retrieve any unprocessed put action items belonging to the supplied table from the result . Call this method once for each table present in the batch request.
      Type Parameters:
      T - the type of the table items
      Parameters:
      mappedTable - the table to retrieve unprocessed items for
      Returns:
      a list of items
    • unprocessedDeleteItemsForTable

      public List<Key> unprocessedDeleteItemsForTable(MappedTableResource<?> mappedTable)
      Retrieve any unprocessed delete action keys belonging to the supplied table from the result. Call this method once for each table present in the batch request.
      Parameters:
      mappedTable - the table to retrieve unprocessed items for.
      Returns:
      a list of keys that were not processed as part of the batch request.