Class GetItemEnhancedRequest.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.GetItemEnhancedRequest.Builder
- Enclosing class:
GetItemEnhancedRequest
A builder that is used to create a request with the desired parameters.
Note: A valid request builder must define a Key.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()consistentRead(Boolean consistentRead) Determines the read consistency model: If set to true, the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.key(Consumer<Key.Builder> keyConsumer) Sets the primaryKeythat will be used to match the item to retrieve by accepting a consumer ofKey.Builder.Sets the primaryKeythat will be used to match the item to retrieve.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
-
consistentRead
Determines the read consistency model: If set to true, the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.By default, the value of this property is set to false.
- Parameters:
consistentRead- sets consistency model of the operation to use strong consistency- Returns:
- a builder of this type
-
key
Sets the primaryKeythat will be used to match the item to retrieve.- Parameters:
key- the primary key to use in the request.- Returns:
- a builder of this type
-
key
Sets the primaryKeythat will be used to match the item to retrieve by accepting a consumer ofKey.Builder. -
returnConsumedCapacity
public GetItemEnhancedRequest.Builder returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Whether to return the capacity consumed by this operation.- See Also:
-
returnConsumedCapacity
Whether to return the capacity consumed by this operation.- See Also:
-
build
-