Class UpdateExpression
- java.lang.Object
- 
- software.amazon.awssdk.enhanced.dynamodb.update.UpdateExpression
 
- 
 public final class UpdateExpression extends Object Contains sets ofUpdateActionthat represent the four DynamoDB update actions: SET, ADD, REMOVE and DELETE.Use this class to build an immutable UpdateExpression with one or more UpdateAction. An UpdateExpression may be merged with another. When two UpdateExpression are merged, the actions of each group of UpdateAction, should they exist, are combined; all SET actions from each expression are concatenated, all REMOVE actions etc. DynamoDb Enhanced will convert the UpdateExpression to a format readable by DynamoDb, Example:- 
 See respective subtype ofRemoveUpdateAction removeAction = ... SetUpdateAction setAction = ... UpdateExpression.builder() .addAction(removeAction) .addAction(setAction) .build();UpdateAction, for exampleSetAction, for details on creating that action.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUpdateExpression.BuilderA builder forUpdateExpression
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AddAction>addActions()static UpdateExpression.Builderbuilder()Constructs a new builder forUpdateExpression.List<DeleteAction>deleteActions()booleanequals(Object o)inthashCode()static UpdateExpressionmergeExpressions(UpdateExpression expression1, UpdateExpression expression2)Merges two UpdateExpression, returning a newList<RemoveAction>removeActions()List<SetAction>setActions()
 
- 
- 
- 
Method Detail- 
builderpublic static UpdateExpression.Builder builder() Constructs a new builder forUpdateExpression.- Returns:
- a new builder.
 
 - 
removeActionspublic List<RemoveAction> removeActions() 
 - 
deleteActionspublic List<DeleteAction> deleteActions() 
 - 
mergeExpressionspublic static UpdateExpression mergeExpressions(UpdateExpression expression1, UpdateExpression expression2) Merges two UpdateExpression, returning a new
 
- 
 
-