Class SetAction.Builder
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.update.SetAction.Builder
-
- All Implemented Interfaces:
Buildable,CopyableBuilder<SetAction.Builder,SetAction>,SdkBuilder<SetAction.Builder,SetAction>
- Enclosing class:
- SetAction
public static final class SetAction.Builder extends Object implements CopyableBuilder<SetAction.Builder,SetAction>
A builder forSetAction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetActionbuild()Builds anSetActionbased on the values stored in this builder.SetAction.BuilderexpressionNames(Map<String,String> expressionNames)Sets the optional 'expression names' token map, overriding any existing values.SetAction.BuilderexpressionValues(Map<String,AttributeValue> expressionValues)Sets the 'expression values' token map that maps from value references (expression attribute values) to DynamoDB AttributeValues, overriding any existing values.SetAction.Builderpath(String path)A string expression representing the attribute to be acted uponSetAction.BuilderputExpressionName(String key, String value)Adds a single element to the optional 'expression names' token map.SetAction.BuilderputExpressionValue(String key, AttributeValue value)Adds a single element to the 'expression values' token map.SetAction.Buildervalue(String value)A string expression representing the value used in the action.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
path
public SetAction.Builder path(String path)
A string expression representing the attribute to be acted upon
-
value
public SetAction.Builder value(String value)
A string expression representing the value used in the action. The value must be represented as an expression attribute value token.
-
expressionValues
public SetAction.Builder expressionValues(Map<String,AttributeValue> expressionValues)
Sets the 'expression values' token map that maps from value references (expression attribute values) to DynamoDB AttributeValues, overriding any existing values. The value reference should always start with ':' (colon).
-
putExpressionValue
public SetAction.Builder putExpressionValue(String key, AttributeValue value)
Adds a single element to the 'expression values' token map.- See Also:
expressionValues(Map)
-
expressionNames
public SetAction.Builder expressionNames(Map<String,String> expressionNames)
Sets the optional 'expression names' token map, overriding any existing values. Use if the attribute references in the path expression are token ('expression attribute names') prepended with the '#' (pound) sign. It should map from token name to real attribute name.- See Also:
putExpressionName(String, String)
-
putExpressionName
public SetAction.Builder putExpressionName(String key, String value)
Adds a single element to the optional 'expression names' token map.- See Also:
expressionNames(Map)
-
build
public SetAction build()
Builds anSetActionbased on the values stored in this builder.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<SetAction.Builder,SetAction>
-
-