Class TransactPutItemEnhancedRequest<T>
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.TransactPutItemEnhancedRequest<T>
- Type Parameters:
T
- The type of the modelled object.
Defines parameters used to write an item to a DynamoDb table using
DynamoDbEnhancedClient.transactWriteItems(TransactWriteItemsEnhancedRequest)
and
DynamoDbEnhancedAsyncClient.transactWriteItems(TransactWriteItemsEnhancedRequest)
.
A valid request object must contain the item that should be written to the table.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder that is used to create a request with the desired parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TransactPutItemEnhancedRequest.Builder
<T> Creates a newly initialized builder for the request object.Returns the conditionExpression
set on this request object, or null if it doesn't exist.boolean
int
hashCode()
item()
Returns the item for this put operation request.Returns what values to return if the condition check fails.Returns what values to return if the condition check fails.Returns a builder initialized with all existing values on the request object.
-
Method Details
-
builder
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
Returns a builder initialized with all existing values on the request object. -
item
Returns the item for this put operation request. -
conditionExpression
Returns the conditionExpression
set on this request object, or null if it doesn't exist. -
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
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.
-
equals
-
hashCode
public int hashCode()
-