Class TransactPutItemEnhancedRequest.Builder<T>
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.TransactPutItemEnhancedRequest.Builder<T>
- Enclosing class:
TransactPutItemEnhancedRequest<T>
A builder that is used to create a request with the desired parameters.
Note: A valid request builder must define an item.
-
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 put operation to succeed.Sets the item to write to DynamoDb.returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if thePutItemcondition fails.returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if thePutItemcondition fails.
-
Method Details
-
item
Sets the item to write to DynamoDb. Required.- Parameters:
item- the item to write- Returns:
- a builder of this type
-
conditionExpression
public TransactPutItemEnhancedRequest.Builder<T> conditionExpression(Expression conditionExpression) Defines a logical expression on an item's attribute values which, if evaluating to true, will allow the put 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 TransactPutItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if thePutItemcondition 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 TransactPutItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure) UseReturnValuesOnConditionCheckFailureto get the item attributes if thePutItemcondition 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
-