public enum UpdateBehavior extends Enum<UpdateBehavior>
If an update behavior is not specified for an attribute, the default behavior of
WRITE_ALWAYS will be
|Enum Constant and Description|
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.
|Modifier and Type||Method and Description|
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.
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final UpdateBehavior WRITE_ALWAYS
This is the default behavior applied to all attributes unless otherwise specified.
public static final UpdateBehavior WRITE_IF_NOT_EXISTS
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.
public static UpdateBehavior values()
for (UpdateBehavior c : UpdateBehavior.values()) System.out.println(c);
public static UpdateBehavior valueOf(String name)