@NotThreadSafe public static final class TransactDeleteItemEnhancedRequest.Builder extends Object
Note: A valid request builder must define a Key.
| Modifier and Type | Method and Description |
|---|---|
TransactDeleteItemEnhancedRequest |
build() |
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.
|
TransactDeleteItemEnhancedRequest.Builder |
key(Consumer<Key.Builder> keyConsumer)
Sets the primary
Key that will be used to match the item to delete
on the builder by accepting a consumer of Key.Builder. |
TransactDeleteItemEnhancedRequest.Builder |
key(Key key)
Sets the primary
Key that will be used to match the item to delete. |
TransactDeleteItemEnhancedRequest.Builder |
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. |
TransactDeleteItemEnhancedRequest.Builder |
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. |
public TransactDeleteItemEnhancedRequest.Builder key(Key key)
Key that will be used to match the item to delete.key - the primary key to use in the request.public TransactDeleteItemEnhancedRequest.Builder key(Consumer<Key.Builder> keyConsumer)
Key that will be used to match the item to delete
on the builder by accepting a consumer of Key.Builder.public TransactDeleteItemEnhancedRequest.Builder conditionExpression(Expression conditionExpression)
See Expression for condition syntax and examples.
conditionExpression - a condition written as an Expressionpublic TransactDeleteItemEnhancedRequest.Builder returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and
ALL_OLD.returnValuesOnConditionCheckFailure - What values to return on condition check failure.public TransactDeleteItemEnhancedRequest.Builder returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and
ALL_OLD.returnValuesOnConditionCheckFailure - What values to return on condition check failure.public TransactDeleteItemEnhancedRequest build()
Copyright © 2023. All rights reserved.