Class TransactDeleteItemEnhancedRequest.Builder
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.TransactDeleteItemEnhancedRequest.Builder
- Enclosing class:
TransactDeleteItemEnhancedRequest
A builder that is used to create a request with the desired parameters.
Note: A valid request builder must define a Key.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()conditionExpression(Expression conditionExpression) Defines a logical expression on an item's attribute values which, if evaluating to true, will allow the delete operation to succeed.key(Consumer<Key.Builder> keyConsumer) Sets the primaryKeythat will be used to match the item to delete on the builder by accepting a consumer ofKey.Builder.Sets the primaryKeythat will be used to match the item to delete.returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if theDeletecondition fails.returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if theDeletecondition fails.
-
Method Details
-
key
Sets the primaryKeythat will be used to match the item to delete.- Parameters:
key- the primary key to use in the request.- Returns:
- a builder of this type
-
key
Sets the primaryKeythat will be used to match the item to delete on the builder by accepting a consumer ofKey.Builder. -
conditionExpression
public TransactDeleteItemEnhancedRequest.Builder conditionExpression(Expression conditionExpression) Defines a logical expression on an item's attribute values which, if evaluating to true, will allow the delete operation to succeed. If evaluating to false, the operation will not succeed.See
Expressionfor condition syntax and examples.- Parameters:
conditionExpression- a condition written as anExpression- Returns:
- a builder of this type
-
returnValuesOnConditionCheckFailure
public TransactDeleteItemEnhancedRequest.Builder returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if theDeletecondition 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 TransactDeleteItemEnhancedRequest.Builder returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if theDeletecondition 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
-