public static interface Update.Builder extends SdkPojo, CopyableBuilder<Update.Builder,Update>
Modifier and Type | Method and Description |
---|---|
Update.Builder |
conditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
|
Update.Builder |
expressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
|
Update.Builder |
expressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
Update.Builder |
key(Map<String,AttributeValue> key)
The primary key of the item to be updated.
|
Update.Builder |
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Update
condition fails. |
Update.Builder |
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Update
condition fails. |
Update.Builder |
tableName(String tableName)
Name of the table for the
UpdateItem request. |
Update.Builder |
updateExpression(String updateExpression)
An expression that defines one or more attributes to be updated, the action to be performed on them, and new
value(s) for them.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Update.Builder key(Map<String,AttributeValue> key)
The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be updated. Each element consists of an attribute name and a value for
that attribute.Update.Builder updateExpression(String updateExpression)
An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
updateExpression
- An expression that defines one or more attributes to be updated, the action to be performed on them,
and new value(s) for them.Update.Builder tableName(String tableName)
Name of the table for the UpdateItem
request.
tableName
- Name of the table for the UpdateItem
request.Update.Builder conditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
conditionExpression
- A condition that must be satisfied in order for a conditional update to succeed.Update.Builder expressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.Update.Builder expressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
expressionAttributeValues
- One or more values that can be substituted in an expression.Update.Builder returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD,
UPDATED_OLD, ALL_NEW, UPDATED_NEW.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.ReturnValuesOnConditionCheckFailure
,
ReturnValuesOnConditionCheckFailure
Update.Builder returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD,
UPDATED_OLD, ALL_NEW, UPDATED_NEW.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.ReturnValuesOnConditionCheckFailure
,
ReturnValuesOnConditionCheckFailure
Copyright © 2023. All rights reserved.