Class BatchWriteItemEnhancedRequest.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteItemEnhancedRequest.Builder
- Enclosing class:
BatchWriteItemEnhancedRequest
A builder that is used to create a request with the desired parameters.
-
Method Summary
Modifier and TypeMethodDescriptionaddWriteBatch(WriteBatch writeBatch) Adds a write batch to the collection of batches on this builder.build()returnConsumedCapacity(String returnConsumedCapacity) Sets the ConsumedCapacity via String.returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Sets the ConsumedCapacity via ReturnConsumedCapacity objectreturnItemCollectionMetrics(String returnItemCollectionMetrics) Sets the item collection metrics.returnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics) Sets the item collection metrics.writeBatches(Collection<WriteBatch> writeBatches) Sets a collection of write batches to use in the batchWriteItem operation.writeBatches(WriteBatch... writeBatches) Sets one or more write batches to use in the batchWriteItem operation.
-
Method Details
-
returnConsumedCapacity
public BatchWriteItemEnhancedRequest.Builder returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Sets the ConsumedCapacity via ReturnConsumedCapacity object- See Also:
-
returnConsumedCapacity
Sets the ConsumedCapacity via String.- See Also:
-
returnItemCollectionMetrics
public BatchWriteItemEnhancedRequest.Builder returnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics) Sets the item collection metrics.- See Also:
-
returnItemCollectionMetrics
public BatchWriteItemEnhancedRequest.Builder returnItemCollectionMetrics(String returnItemCollectionMetrics) Sets the item collection metrics.- See Also:
-
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
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
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
-