@NotThreadSafe public static final class GetItemEnhancedRequest.Builder extends Object
Note: A valid request builder must define a Key.
| Modifier and Type | Method and Description |
|---|---|
GetItemEnhancedRequest |
build() |
GetItemEnhancedRequest.Builder |
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.
|
GetItemEnhancedRequest.Builder |
key(Consumer<Key.Builder> keyConsumer)
Sets the primary
Key that will be used to match the item to retrieve
by accepting a consumer of Key.Builder. |
GetItemEnhancedRequest.Builder |
key(Key key)
Sets the primary
Key that will be used to match the item to retrieve. |
public GetItemEnhancedRequest.Builder consistentRead(Boolean consistentRead)
By default, the value of this property is set to false.
consistentRead - sets consistency model of the operation to use strong consistencypublic GetItemEnhancedRequest.Builder key(Key key)
Key that will be used to match the item to retrieve.key - the primary key to use in the request.public GetItemEnhancedRequest.Builder key(Consumer<Key.Builder> keyConsumer)
Key that will be used to match the item to retrieve
by accepting a consumer of Key.Builder.public GetItemEnhancedRequest build()
Copyright © 2023. All rights reserved.