public static final class UpdateItemEnhancedRequest.Builder<T> extends Object
Note: A valid request builder must define an item.
Modifier and Type | Method and Description |
---|---|
UpdateItemEnhancedRequest<T> |
build() |
UpdateItemEnhancedRequest.Builder<T> |
conditionExpression(Expression conditionExpression)
Defines a logical expression on an item's attribute values which, if evaluating to true,
will allow the update operation to succeed.
|
UpdateItemEnhancedRequest.Builder<T> |
ignoreNulls(Boolean ignoreNulls)
Sets if the update operation should ignore attributes with null values.
|
UpdateItemEnhancedRequest.Builder<T> |
item(T item)
Sets the item to write to DynamoDb.
|
public UpdateItemEnhancedRequest.Builder<T> ignoreNulls(Boolean ignoreNulls)
If set to true, any null values in the Java object will not be written to the table.
If set to false, null values in the Java object will be written to the table (as an AttributeValue
of type
'nul' in the output map, see TableSchema.itemToMap(Object, boolean)
).
ignoreNulls
- the boolean valuepublic UpdateItemEnhancedRequest.Builder<T> conditionExpression(Expression conditionExpression)
See Expression
for condition syntax and examples.
conditionExpression
- a condition written as an Expression
public UpdateItemEnhancedRequest.Builder<T> item(T item)
item
- the item to writepublic UpdateItemEnhancedRequest<T> build()
Copyright © 2020. All rights reserved.