|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazonaws.services.simpledb.model.UpdateCondition
public class 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.
| Constructor Summary | |
|---|---|
UpdateCondition()
|
|
| Method Summary | |
|---|---|
Boolean |
getExists()
True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this update condition to be satisfied. |
String |
getName()
The name of the attribute involved in the condition. |
String |
getValue()
The value of an attribute. |
Boolean |
isExists()
True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this update condition to be satisfied. |
void |
setExists(Boolean exists)
True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this 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()
|
UpdateCondition |
withExists(Boolean exists)
True if the specified attribute must exist with the specified value in order for this update condition to be satisfied, otherwise false if the specified attribute should not exist in order for this 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateCondition()
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The name of the attribute involved in the condition.public UpdateCondition withName(String name)
Returns a reference to this object so that method calls can be chained together.
name - The name of the attribute involved in the condition.
public String getValue()
public void setValue(String value)
value - The value of an attribute. This value can only be specified when the
exists parameter is equal to true.public UpdateCondition withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value - The value of an attribute. This value can only be specified when the
exists parameter is equal to true.
public Boolean isExists()
public void setExists(Boolean exists)
exists - True if the specified attribute must exist with the specified value in
order for this update condition to be satisfied, otherwise false if
the specified attribute should not exist in order for this update
condition to be satisfied.public UpdateCondition withExists(Boolean exists)
Returns a reference to this object so that method calls can be chained together.
exists - True if the specified attribute must exist with the specified value in
order for this update condition to be satisfied, otherwise false if
the specified attribute should not exist in order for this update
condition to be satisfied.
public Boolean getExists()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||