Class TransactUpdateItemEnhancedRequest.Builder<T>
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.TransactUpdateItemEnhancedRequest.Builder<T>
-
- Enclosing class:
- TransactUpdateItemEnhancedRequest<T>
@NotThreadSafe public static final class TransactUpdateItemEnhancedRequest.Builder<T> extends Object
A builder that is used to create a request with the desired parameters.Note: A valid request builder must define an item.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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)
Deprecated.TransactUpdateItemEnhancedRequest.Builder<T>
ignoreNullsMode(IgnoreNullsMode ignoreNullsMode)
TransactUpdateItemEnhancedRequest.Builder<T>
item(T item)
Sets the item to write to DynamoDb.TransactUpdateItemEnhancedRequest.Builder<T>
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if theConditionCheck
condition fails.TransactUpdateItemEnhancedRequest.Builder<T>
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if theConditionCheck
condition fails.
-
-
-
Method Detail
-
ignoreNulls
@Deprecated public TransactUpdateItemEnhancedRequest.Builder<T> ignoreNulls(Boolean ignoreNulls)
Deprecated.Sets if the update operation should ignore attributes with null values. By default, the value is false.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.
- Parameters:
ignoreNulls
- the boolean value- Returns:
- a builder of this type
-
ignoreNullsMode
public TransactUpdateItemEnhancedRequest.Builder<T> ignoreNullsMode(IgnoreNullsMode ignoreNullsMode)
-
conditionExpression
public 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. If evaluating to false, the operation will not succeed.See
Expression
for condition syntax and examples.- Parameters:
conditionExpression
- a condition written as anExpression
- Returns:
- a builder of this type
-
item
public TransactUpdateItemEnhancedRequest.Builder<T> item(T item)
Sets the item to write to DynamoDb. Required.- Parameters:
item
- the item to write- Returns:
- a builder of this type
-
returnValuesOnConditionCheckFailure
public TransactUpdateItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if theConditionCheck
condition fails. ForReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.- Parameters:
returnValuesOnConditionCheckFailure
- What values to return on condition check failure.- Returns:
- a builder of this type
-
returnValuesOnConditionCheckFailure
public TransactUpdateItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if theConditionCheck
condition fails. ForReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.- Parameters:
returnValuesOnConditionCheckFailure
- What values to return on condition check failure.- Returns:
- a builder of this type
-
build
public TransactUpdateItemEnhancedRequest<T> build()
-
-