@Generated(value="software.amazon.awssdk:codegen") public final class UpdateCondition extends Object implements ToCopyableBuilder<UpdateCondition.Builder,UpdateCondition>
Specifies the conditions under which data should be updated. If an update condition is specified for a request, the data will only be updated if the condition is satisfied. For example, if an attribute with a specific name and value exists, or if a specific attribute doesn't exist.
Modifier and Type | Class and Description |
---|---|
static interface |
UpdateCondition.Builder |
Modifier and Type | Method and Description |
---|---|
static UpdateCondition.Builder |
builder() |
boolean |
equals(Object obj) |
Boolean |
exists()
A value specifying whether or not the specified attribute must exist with the specified value in order for the
update condition to be satisfied.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the attribute involved in the condition.
|
static Class<? extends UpdateCondition.Builder> |
serializableBuilderClass() |
UpdateCondition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
The value of an attribute.
|
copy
public String name()
The name of the attribute involved in the condition.
public String value()
The value of an attribute. This value can only be specified when the Exists
parameter is equal to
true
.
Exists
parameter is
equal to true
.public Boolean exists()
A value specifying whether or not the specified attribute must exist with the specified value in order for the
update condition to be satisfied. Specify true
if the attribute must exist for the update condition
to be satisfied. Specify false
if the attribute should not exist in order for the update condition
to be satisfied.
true
if the attribute must exist for the
update condition to be satisfied. Specify false
if the attribute should not exist in order
for the update condition to be satisfied.public UpdateCondition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UpdateCondition.Builder,UpdateCondition>
public static UpdateCondition.Builder builder()
public static Class<? extends UpdateCondition.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.