@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateCondition extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
UpdateCondition()
Default constructor for UpdateCondition object.
|
UpdateCondition(String name,
String value,
Boolean exists)
Constructs a new UpdateCondition object.
|
Modifier and Type | Method and Description |
---|---|
UpdateCondition |
clone() |
boolean |
equals(Object obj) |
Boolean |
getExists()
A value specifying whether or not the specified attribute must exist with the specified value in order for the
update condition to be satisfied.
|
String |
getName()
The name of the attribute involved in the condition.
|
String |
getValue()
The value of an attribute.
|
int |
hashCode() |
Boolean |
isExists()
A value specifying whether or not the specified attribute must exist with the specified value in order for the
update condition to be satisfied.
|
void |
setExists(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.
|
void |
setName(String name)
The name of the attribute involved in the condition.
|
void |
setValue(String value)
The value of an attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UpdateCondition |
withExists(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.
|
UpdateCondition |
withName(String name)
The name of the attribute involved in the condition.
|
UpdateCondition |
withValue(String value)
The value of an attribute.
|
public UpdateCondition()
public UpdateCondition(String name, String value, Boolean exists)
name
- The name of the attribute involved in the condition.value
- The value of an attribute. This value can only be specified when the Exists
parameter is
equal to true
.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.public void setName(String name)
The name of the attribute involved in the condition.
name
- The name of the attribute involved in the condition.public String getName()
The name of the attribute involved in the condition.
public UpdateCondition withName(String name)
The name of the attribute involved in the condition.
name
- The name of the attribute involved in the condition.public void setValue(String value)
The value of an attribute. This value can only be specified when the Exists
parameter is equal to
true
.
value
- The value of an attribute. This value can only be specified when the Exists
parameter is
equal to true
.public String getValue()
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 UpdateCondition withValue(String value)
The value of an attribute. This value can only be specified when the Exists
parameter is equal to
true
.
value
- The value of an attribute. This value can only be specified when the Exists
parameter is
equal to true
.public void setExists(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.
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.public Boolean getExists()
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 withExists(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.
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.public Boolean isExists()
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 String toString()
toString
in class Object
Object.toString()
public UpdateCondition clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.