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
Determines the read consistency model: If set to true, the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.
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.Whether to return the capacity consumed by this operation.
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
Whether to return the capacity consumed by this operation.
- See Also:
returnConsumedCapacity
Whether to return the capacity consumed by this operation.
- See Also:
build