T - The type of object this batch applies to. Can be safely erased as it's not needed outside the
            class itself.public class WriteBatch<T> extends Object
BatchWriteItemEnhancedRequest.
 Example:
 WriteBatch.create(myTable, putItem.create(myItem));
 WriteBatch.create(myTable, deleteItem(Key.of(stringValue("id123"))));
 | Modifier and Type | Class and Description | 
|---|---|
static class  | 
WriteBatch.Builder<T>  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addWriteRequestsToMap(Map<String,Collection<WriteRequest>> writeRequestMap)
This method is used by the internal batchWriteItem operation to generate list of batch write requests used in the call to
 DynamoDb. 
 | 
static <T> WriteBatch.Builder<T> | 
builder()  | 
static <T> WriteBatch<T> | 
create(MappedTableResource<T> mappedTableResource,
      BatchableWriteOperation<T>... writeOperations)  | 
static <T> WriteBatch<T> | 
create(MappedTableResource<T> mappedTableResource,
      Collection<BatchableWriteOperation<T>> writeOperations)  | 
boolean | 
equals(Object o)  | 
int | 
hashCode()  | 
MappedTableResource<T> | 
mappedTableResource()  | 
WriteBatch.Builder<T> | 
toBuilder()  | 
Collection<BatchableWriteOperation<T>> | 
writeOperations()  | 
public static <T> WriteBatch<T> create(MappedTableResource<T> mappedTableResource, Collection<BatchableWriteOperation<T>> writeOperations)
@SafeVarargs public static <T> WriteBatch<T> create(MappedTableResource<T> mappedTableResource, BatchableWriteOperation<T>... writeOperations)
public static <T> WriteBatch.Builder<T> builder()
public WriteBatch.Builder<T> toBuilder()
public MappedTableResource<T> mappedTableResource()
public Collection<BatchableWriteOperation<T>> writeOperations()
public void addWriteRequestsToMap(Map<String,Collection<WriteRequest>> writeRequestMap)
BatchableWriteOperation, such as PutItem, creates a batch write request corresponding to
 that operation. The method should only be called from the batchWriteItem operation and should not be used for other
 purposes.writeRequestMap - An empty map to store the batch write requests in. Due to raw-type erasure, it's necessary to
 pass a map in to be mutated rather than try and extract the write requests which would be more straight forward,
 but CollectionCopyright © 2020. All rights reserved.