Class Expression.Builder
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.Expression.Builder
-
- Enclosing class:
- Expression
@NotThreadSafe public static final class Expression.Builder extends Object
A builder forExpression
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
build()
Builds anExpression
based on the values stored in this builderExpression.Builder
expression(String expression)
The expression stringExpression.Builder
expressionNames(Map<String,String> expressionNames)
The optional 'expression names' token mapExpression.Builder
expressionValues(Map<String,AttributeValue> expressionValues)
The optional 'expression values' token mapExpression.Builder
mergeExpressionNames(Map<String,String> expressionNames)
Merge the given ExpressionNames into the builders existing ExpressionNamesExpression.Builder
mergeExpressionValues(Map<String,AttributeValue> expressionValues)
Merge the given ExpressionValues into the builders existing ExpressionValuesExpression.Builder
putExpressionName(String key, String value)
Adds a single element to the optional 'expression names' token mapExpression.Builder
putExpressionValue(String key, AttributeValue value)
Adds a single element to the optional 'expression values' token map
-
-
-
Method Detail
-
expression
public Expression.Builder expression(String expression)
The expression string
-
expressionValues
public Expression.Builder expressionValues(Map<String,AttributeValue> expressionValues)
The optional 'expression values' token map
-
mergeExpressionValues
public Expression.Builder mergeExpressionValues(Map<String,AttributeValue> expressionValues)
Merge the given ExpressionValues into the builders existing ExpressionValues- Parameters:
expressionValues
- The values to merge into the ExpressionValues map- Throws:
IllegalArgumentException
- if a conflict occurs when merging ExpressionValues
-
putExpressionValue
public Expression.Builder putExpressionValue(String key, AttributeValue value)
Adds a single element to the optional 'expression values' token map
-
expressionNames
public Expression.Builder expressionNames(Map<String,String> expressionNames)
The optional 'expression names' token map
-
mergeExpressionNames
public Expression.Builder mergeExpressionNames(Map<String,String> expressionNames)
Merge the given ExpressionNames into the builders existing ExpressionNames- Parameters:
expressionNames
- The values to merge into the ExpressionNames map- Throws:
IllegalArgumentException
- if a conflict occurs when merging ExpressionNames
-
putExpressionName
public Expression.Builder putExpressionName(String key, String value)
Adds a single element to the optional 'expression names' token map
-
build
public Expression build()
Builds anExpression
based on the values stored in this builder
-
-