UpdateBehavior (AWS SDK for Java
Serializable
, Comparable<UpdateBehavior>
Update behaviors that can be applied to individual attributes. This behavior will only apply to 'update' operations such as UpdateItem, and not 'put' operations such as PutItem.If an update behavior is not specified for an attribute, the default behavior of WRITE_ALWAYS
will be applied.
Enum Constant Summary
Enum Constants
Always overwrite with the new value if one is provided, or remove any existing value if a null value is provided and 'ignoreNulls' is set to false.
Write the new value if there is no existing value in the persisted record or a new record is being written, otherwise leave the existing value.
Method Summary
All MethodsStatic MethodsConcrete Methods
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Details
WRITE_ALWAYS
Always overwrite with the new value if one is provided, or remove any existing value if a null value is provided and 'ignoreNulls' is set to false.This is the default behavior applied to all attributes unless otherwise specified.
WRITE_IF_NOT_EXISTS
Write the new value if there is no existing value in the persisted record or a new record is being written, otherwise leave the existing value.IMPORTANT: If a null value is provided and 'ignoreNulls' is set to false, the attribute will always be removed from the persisted record as DynamoDb does not support conditional removal with this method.
Method Details
values
Returns an array containing the constants of this enum type, in the order they are declared.
Returns: an array containing the constants of this enum type, in the order they are declaredvalueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:name
- the name of the enum constant to be returned. Returns: the enum constant with the specified name Throws:IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
ncG1vNJzZmirlKB7ornAs6anmaeoe6S7zGihmq6RZK6xtY6lmK2do6l8tLvFra6aqpVkrq6t2ailaJmnqMClt46epaGZnpiypXvDsqWapZ%2BZr3C5wKmnnqpfir2lrdOeeZ6gkau2sL6NoaumpA%3D%3D