@NotThreadSafe public static final class TransactUpdateItemEnhancedRequest.Builder<T> extends Object
Note: A valid request builder must define an item.
Modifier and Type | Method and Description |
---|---|
TransactUpdateItemEnhancedRequest<T> |
build() |
TransactUpdateItemEnhancedRequest.Builder<T> |
conditionExpression(Expression conditionExpression)
Defines a logical expression on an item's attribute values which, if evaluating to true,
will allow the update operation to succeed.
|
TransactUpdateItemEnhancedRequest.Builder<T> |
ignoreNulls(Boolean ignoreNulls)
Sets if the update operation should ignore attributes with null values.
|
TransactUpdateItemEnhancedRequest.Builder<T> |
item(T item)
Sets the item to write to DynamoDb.
|
TransactUpdateItemEnhancedRequest.Builder<T> |
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the ConditionCheck
condition fails. |
TransactUpdateItemEnhancedRequest.Builder<T> |
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the ConditionCheck
condition fails. |
public TransactUpdateItemEnhancedRequest.Builder<T> ignoreNulls(Boolean ignoreNulls)
If set to true, any null values in the Java object will be ignored and not be updated on the persisted record. This is commonly referred to as a 'partial update'. If set to false, null values in the Java object will cause those attributes to be removed from the persisted record on update.
ignoreNulls
- the boolean valuepublic TransactUpdateItemEnhancedRequest.Builder<T> conditionExpression(Expression conditionExpression)
See Expression
for condition syntax and examples.
conditionExpression
- a condition written as an Expression
public TransactUpdateItemEnhancedRequest.Builder<T> item(T item)
item
- the item to writepublic TransactUpdateItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
ReturnValuesOnConditionCheckFailure
to get the item attributes if the ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.returnValuesOnConditionCheckFailure
- What values to return on condition check failure.public TransactUpdateItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
ReturnValuesOnConditionCheckFailure
to get the item attributes if the ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.returnValuesOnConditionCheckFailure
- What values to return on condition check failure.public TransactUpdateItemEnhancedRequest<T> build()
Copyright © 2022. All rights reserved.