Class BatchWriteItemEnhancedRequest.Builder
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteItemEnhancedRequest.Builder
-
- Enclosing class:
- BatchWriteItemEnhancedRequest
@NotThreadSafe public static final class BatchWriteItemEnhancedRequest.Builder extends Object
A builder that is used to create a request with the desired parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchWriteItemEnhancedRequest.Builder
addWriteBatch(WriteBatch writeBatch)
Adds a write batch to the collection of batches on this builder.BatchWriteItemEnhancedRequest
build()
BatchWriteItemEnhancedRequest.Builder
writeBatches(Collection<WriteBatch> writeBatches)
Sets a collection of write batches to use in the batchWriteItem operation.BatchWriteItemEnhancedRequest.Builder
writeBatches(WriteBatch... writeBatches)
Sets one or more write batches to use in the batchWriteItem operation.
-
-
-
Method Detail
-
writeBatches
public BatchWriteItemEnhancedRequest.Builder writeBatches(Collection<WriteBatch> writeBatches)
Sets a collection of write batches to use in the batchWriteItem operation.- Parameters:
writeBatches
- the collection of write batches- Returns:
- a builder of this type
-
writeBatches
public BatchWriteItemEnhancedRequest.Builder writeBatches(WriteBatch... writeBatches)
Sets one or more write batches to use in the batchWriteItem operation.- Parameters:
writeBatches
- one or moreWriteBatch
, separated by comma.- Returns:
- a builder of this type
-
addWriteBatch
public BatchWriteItemEnhancedRequest.Builder addWriteBatch(WriteBatch writeBatch)
Adds a write batch to the collection of batches on this builder. If this is the first batch, the method creates a new list.- Parameters:
writeBatch
- a single write batch- Returns:
- a builder of this type
-
build
public BatchWriteItemEnhancedRequest build()
-
-