Class TransactPutItemEnhancedRequest<T>
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.model.TransactPutItemEnhancedRequest<T>
-
- Type Parameters:
T
- The type of the modelled object.
@ThreadSafe public final class TransactPutItemEnhancedRequest<T> extends Object
Defines parameters used to write an item to a DynamoDb table usingDynamoDbEnhancedClient.transactWriteItems(TransactWriteItemsEnhancedRequest)
andDynamoDbEnhancedAsyncClient.transactWriteItems(TransactWriteItemsEnhancedRequest)
.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 class
TransactPutItemEnhancedRequest.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 Modifier and Type Method Description static <T> TransactPutItemEnhancedRequest.Builder<T>
builder(Class<? extends T> itemClass)
Creates a newly initialized builder for the request object.Expression
conditionExpression()
Returns the conditionExpression
set on this request object, or null if it doesn't exist.boolean
equals(Object o)
int
hashCode()
T
item()
Returns the item for this put operation request.ReturnValuesOnConditionCheckFailure
returnValuesOnConditionCheckFailure()
Returns what values to return if the condition check fails.String
returnValuesOnConditionCheckFailureAsString()
Returns what values to return if the condition check fails.TransactPutItemEnhancedRequest.Builder<T>
toBuilder()
Returns a builder initialized with all existing values on the request object.
-
-
-
Method Detail
-
builder
public static <T> TransactPutItemEnhancedRequest.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 PutItemEnhancedRequest builder
-
toBuilder
public TransactPutItemEnhancedRequest.Builder<T> toBuilder()
Returns a builder initialized with all existing values on the request object.
-
item
public T item()
Returns the item for this put operation request.
-
conditionExpression
public Expression conditionExpression()
Returns the conditionExpression
set 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,
returnValuesOnConditionCheckFailure
will 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,
returnValuesOnConditionCheckFailure
will returnReturnValuesOnConditionCheckFailure.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromreturnValuesOnConditionCheckFailureAsString()
.- Returns:
- What values to return on condition check failure.
-
-