Class BatchGetItemEnhancedRequest.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.BatchGetItemEnhancedRequest.Builder
- Enclosing class:
- BatchGetItemEnhancedRequest
A builder that is used to create a request with the desired parameters.
- 
Method SummaryModifier and TypeMethodDescriptionaddReadBatch(ReadBatch readBatch) Adds a read batch to the collection of batches on this builder.build()readBatches(Collection<ReadBatch> readBatches) Sets a collection of read batches to use in the batchGetItem operation.readBatches(ReadBatch... readBatches) Sets one or more read batches to use in the batchGetItem operation.returnConsumedCapacity(String returnConsumedCapacity) Whether to return the capacity consumed by this operation.returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Whether to return the capacity consumed by this operation.
- 
Method Details- 
readBatchesSets a collection of read batches to use in the batchGetItem operation.- Parameters:
- readBatches- the collection of read batches
- Returns:
- a builder of this type
 
- 
readBatchesSets one or more read batches to use in the batchGetItem operation.- Parameters:
- readBatches- one or more- ReadBatch, separated by comma.
- Returns:
- a builder of this type
 
- 
addReadBatchAdds a read batch to the collection of batches on this builder. If this is the first batch, the method creates a new list.- Parameters:
- readBatch- a single read batch
- Returns:
- a builder of this type
 
- 
returnConsumedCapacitypublic BatchGetItemEnhancedRequest.Builder returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Whether to return the capacity consumed by this operation.- Returns:
- a builder of this type
- See Also:
 
- 
returnConsumedCapacityWhether to return the capacity consumed by this operation.- Returns:
- a builder of this type
- See Also:
 
- 
build
 
-