Class TransactPutItemEnhancedRequest.Builder<T>
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.TransactPutItemEnhancedRequest.Builder<T>
-
- Enclosing class:
- TransactPutItemEnhancedRequest<T>
@NotThreadSafe public static final class TransactPutItemEnhancedRequest.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 Modifier and Type Method Description TransactPutItemEnhancedRequest<T>
build()
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.TransactPutItemEnhancedRequest.Builder<T>
item(T item)
Sets the item to write to DynamoDb.TransactPutItemEnhancedRequest.Builder<T>
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePutItem
condition fails.TransactPutItemEnhancedRequest.Builder<T>
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePutItem
condition fails.
-
-
-
Method Detail
-
item
public TransactPutItemEnhancedRequest.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
-
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
Expression
for 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)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePutItem
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 TransactPutItemEnhancedRequest.Builder<T> returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePutItem
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 TransactPutItemEnhancedRequest<T> build()
-
-