Class TransactUpdateItemEnhancedRequest<T>
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.TransactUpdateItemEnhancedRequest<T>
-
- Type Parameters:
T- The type of the modelled object.
@ThreadSafe public class TransactUpdateItemEnhancedRequest<T> extends Object
Defines parameters used to update an item to a DynamoDb table using theDynamoDbEnhancedClient.transactWriteItems(TransactWriteItemsEnhancedRequest)orDynamoDbEnhancedAsyncClient.transactWriteItems(TransactWriteItemsEnhancedRequest)operation.A valid request object must contain the item that should be written to the table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactUpdateItemEnhancedRequest.Builder<T>A builder that is used to create a request with the desired parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> TransactUpdateItemEnhancedRequest.Builder<T>builder(Class<? extends T> itemClass)Creates a newly initialized builder for the request object.ExpressionconditionExpression()Returns the conditionExpressionset on this request object, or null if it doesn't exist.booleanequals(Object o)inthashCode()BooleanignoreNulls()Deprecated.IgnoreNullsModeignoreNullsMode()Returns the mode of update to be performedTitem()Returns the item for this update operation request.ReturnValuesOnConditionCheckFailurereturnValuesOnConditionCheckFailure()Returns what values to return if the condition check fails.StringreturnValuesOnConditionCheckFailureAsString()Returns what values to return if the condition check fails.TransactUpdateItemEnhancedRequest.Builder<T>toBuilder()Returns a builder initialized with all existing values on the request object.
-
-
-
Method Detail
-
builder
public static <T> TransactUpdateItemEnhancedRequest.Builder<T> builder(Class<? extends T> itemClass)
Creates a newly initialized builder for the request object.- Type Parameters:
T- The type of the modelled object, corresponding to itemClass- Parameters:
itemClass- the class that items in this table map to- Returns:
- a UpdateItemEnhancedRequest builder
-
toBuilder
public TransactUpdateItemEnhancedRequest.Builder<T> toBuilder()
Returns a builder initialized with all existing values on the request object.
-
item
public T item()
Returns the item for this update operation request.
-
ignoreNulls
@Deprecated public Boolean ignoreNulls()
Deprecated.Returns if the update operation should ignore attributes with null values, or false if it has not been set. This is deprecated in favour of ignoreNullsMode()
-
ignoreNullsMode
public IgnoreNullsMode ignoreNullsMode()
Returns the mode of update to be performed
-
conditionExpression
public Expression conditionExpression()
Returns the conditionExpressionset on this request object, or null if it doesn't exist.
-
returnValuesOnConditionCheckFailure
public ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure()
Returns what values to return if the condition check fails.If the service returns an enum value that is not available in the current SDK version,
returnValuesOnConditionCheckFailurewill returnReturnValuesOnConditionCheckFailure.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreturnValuesOnConditionCheckFailureAsString().- Returns:
- What values to return on condition check failure.
-
returnValuesOnConditionCheckFailureAsString
public String returnValuesOnConditionCheckFailureAsString()
Returns what values to return if the condition check fails.If the service returns an enum value that is not available in the current SDK version,
returnValuesOnConditionCheckFailurewill returnReturnValuesOnConditionCheckFailure.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreturnValuesOnConditionCheckFailureAsString().- Returns:
- What values to return on condition check failure.
-
-