Class UpdateItemEnhancedRequest<T>
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.UpdateItemEnhancedRequest<T>
- Type Parameters:
T
- The type of the modelled object.
Defines parameters used to update an item to a DynamoDb table using the updateItem() operation (such as
DynamoDbTable.updateItem(UpdateItemEnhancedRequest)
or
DynamoDbAsyncTable.updateItem(UpdateItemEnhancedRequest)
).
A valid request object must contain the item that should be written to the table.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder that is used to create a request with the desired parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> UpdateItemEnhancedRequest.Builder
<T> Creates a newly initialized builder for the request object.Returns the conditionExpression
set on this request object, or null if it doesn't exist.boolean
int
hashCode()
Returns if the update operation should ignore attributes with null values, or false if it has not been set.item()
Returns the item for this update operation request.Whether to return the capacity consumed by this operation.Whether to return the capacity consumed by this operation.Whether to return the item collection metrics.Whether to return the item collection metrics.Whether to return the item on condition check failure.Whether to return the item on condition check failure.Returns a builder initialized with all existing values on the request object.
-
Method Details
-
builder
Creates a newly initialized builder for the request object.- Type Parameters:
T
- The type of the modelled object, corresponding to itemClass- Parameters:
itemClass
- the class that items in this table map to- Returns:
- a UpdateItemEnhancedRequest builder
-
toBuilder
Returns a builder initialized with all existing values on the request object. -
item
Returns the item for this update operation request. -
ignoreNulls
Returns if the update operation should ignore attributes with null values, or false if it has not been set. -
conditionExpression
Returns the conditionExpression
set on this request object, or null if it doesn't exist. -
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
. -
returnItemCollectionMetrics
Whether to return the item collection metrics.- See Also:
-
returnItemCollectionMetricsAsString
Whether to return the item collection metrics.Similar to
returnItemCollectionMetrics()
but return the value as a string. This is useful in situations where the value is not defined inReturnItemCollectionMetrics
. -
returnValuesOnConditionCheckFailure
Whether to return the item on condition check failure.- See Also:
-
returnValuesOnConditionCheckFailureAsString
Whether to return the item on condition check failure.Similar to
returnValuesOnConditionCheckFailure()
but return the value as a string. This is useful in situations where the value is not defined inReturnValuesOnConditionCheckFailure
. -
equals
-
hashCode
public int hashCode()
-