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 Summary
Modifier 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
-
readBatches
Sets a collection of read batches to use in the batchGetItem operation.- Parameters:
readBatches
- the collection of read batches- Returns:
- a builder of this type
-
readBatches
Sets one or more read batches to use in the batchGetItem operation.- Parameters:
readBatches
- one or moreReadBatch
, separated by comma.- Returns:
- a builder of this type
-
addReadBatch
Adds 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
-
returnConsumedCapacity
public BatchGetItemEnhancedRequest.Builder returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Whether to return the capacity consumed by this operation.- Returns:
- a builder of this type
- See Also:
-
returnConsumedCapacity
Whether to return the capacity consumed by this operation.- Returns:
- a builder of this type
- See Also:
-
build
-