|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.datamodeling.DynamoDBDeleteExpression
public class DynamoDBDeleteExpression
Enables adding options to a delete operation. For example, you may want to delete only if an attribute has a particular value.
DynamoDBMapper.delete(Object, DynamoDBDeleteExpression)
Constructor Summary | |
---|---|
DynamoDBDeleteExpression()
|
Method Summary | |
---|---|
String |
getConditionalOperator()
Returns the logical operator on the expected attribute conditions of this delete operation. |
Map<String,ExpectedAttributeValue> |
getExpected()
Gets the map of attribute names to expected attribute values to check on delete. |
void |
setConditionalOperator(ConditionalOperator conditionalOperator)
Sets the logical operator on the expected attribute conditions of this delete operation. |
void |
setConditionalOperator(String conditionalOperator)
Sets the logical operator on the expected attribute conditions of this delete operation. |
void |
setExpected(Map<String,ExpectedAttributeValue> expectedAttributes)
Sets the expected condition to the map of attribute names to expected attribute values given. |
DynamoDBDeleteExpression |
withConditionalOperator(ConditionalOperator conditionalOperator)
Sets the logical operator on the expected attribute conditions of this delete operation and returns a pointer to this object for method-chaining. |
DynamoDBDeleteExpression |
withConditionalOperator(String conditionalOperator)
Sets the logical operator on the expected attribute conditions of this delete operation and returns a pointer to this object for method-chaining. |
DynamoDBDeleteExpression |
withExpected(Map<String,ExpectedAttributeValue> expectedAttributes)
Sets the expected condition to the map of attribute names to expected attribute values given and returns a pointer to this object for method-chaining. |
DynamoDBDeleteExpression |
withExpectedEntry(String attributeName,
ExpectedAttributeValue expected)
Adds one entry to the expected conditions and returns a pointer to this object for method-chaining. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamoDBDeleteExpression()
Method Detail |
---|
public Map<String,ExpectedAttributeValue> getExpected()
public void setExpected(Map<String,ExpectedAttributeValue> expectedAttributes)
expectedAttributes
- The map of attribute names to expected attribute value conditions to check on deletepublic DynamoDBDeleteExpression withExpected(Map<String,ExpectedAttributeValue> expectedAttributes)
expectedAttributes
- The map of attribute names to expected attribute value
conditions to check on deletepublic DynamoDBDeleteExpression withExpectedEntry(String attributeName, ExpectedAttributeValue expected)
attributeName
- The name of the attribute.expected
- The expected attribute value.public String getConditionalOperator()
public void setConditionalOperator(String conditionalOperator)
public DynamoDBDeleteExpression withConditionalOperator(String conditionalOperator)
public void setConditionalOperator(ConditionalOperator conditionalOperator)
public DynamoDBDeleteExpression withConditionalOperator(ConditionalOperator conditionalOperator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |