Class GetItemEnhancedRequest
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.GetItemEnhancedRequest
Defines parameters used to retrieve an item from a DynamoDb table using the getItem() operation (such as
DynamoDbTable.getItem(GetItemEnhancedRequest)
or DynamoDbAsyncTable.getItem(GetItemEnhancedRequest)
).
A valid request object must contain a primary Key
to reference the item to get.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder that is used to create a request with the desired parameters. -
Method Summary
-
Method Details
-
builder
All requests must be constructed using a Builder.- Returns:
- a builder of this type
-
toBuilder
- Returns:
- a builder with all existing values set
-
consistentRead
- Returns:
- whether or not this request will use consistent read
-
key
Returns the primaryKey
for the item to get. -
returnConsumedCapacity
Whether to return the capacity consumed by this operation.- See Also:
-
returnConsumedCapacityAsString
Whether to return the capacity consumed by this operation.Similar to
returnConsumedCapacity()
but return the value as a string. This is useful in situations where the value is not defined inReturnConsumedCapacity
. -
equals
-
hashCode
public int hashCode()
-