|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.mobileconnectors.dynamodbv2.dynamodbmapper.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 | |
---|---|
DynamoDBDeleteExpression |
addExpressionAttributeNamesEntry(java.lang.String key,
java.lang.String value)
One or more substitution variables for simplifying complex expressions. |
DynamoDBDeleteExpression |
addExpressionAttributeValuesEntry(java.lang.String key,
AttributeValue value)
One or more values that can be substituted in an expression. |
DynamoDBDeleteExpression |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames. |
DynamoDBDeleteExpression |
clearExpressionAttributeValuesEntries()
Removes all the entries added into ExpressionAttributeValues. |
java.lang.String |
getConditionalOperator()
Returns the logical operator on the expected attribute conditions of this delete operation. |
java.lang.String |
getConditionExpression()
A condition that must be satisfied in order for a conditional DeleteItem to succeed. |
java.util.Map<java.lang.String,ExpectedAttributeValue> |
getExpected()
Gets the map of attribute names to expected attribute values to check on delete. |
java.util.Map<java.lang.String,java.lang.String> |
getExpressionAttributeNames()
One or more substitution variables for simplifying complex expressions. |
java.util.Map<java.lang.String,AttributeValue> |
getExpressionAttributeValues()
One or more values that can be substituted in an expression. |
void |
setConditionalOperator(ConditionalOperator conditionalOperator)
Sets the logical operator on the expected attribute conditions of this delete operation. |
void |
setConditionalOperator(java.lang.String conditionalOperator)
Sets the logical operator on the expected attribute conditions of this delete operation. |
void |
setConditionExpression(java.lang.String conditionExpression)
A condition that must be satisfied in order for a conditional DeleteItem to succeed. |
void |
setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
Sets the expected condition to the map of attribute names to expected attribute values given. |
void |
setExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
One or more substitution variables for simplifying complex expressions. |
void |
setExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression. |
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(java.lang.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 |
withConditionExpression(java.lang.String conditionExpression)
A condition that must be satisfied in order for a conditional DeleteItem to succeed. |
DynamoDBDeleteExpression |
withExpected(java.util.Map<java.lang.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(java.lang.String attributeName,
ExpectedAttributeValue expected)
Adds one entry to the expected conditions and returns a pointer to this object for method-chaining. |
DynamoDBDeleteExpression |
withExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
One or more substitution variables for simplifying complex expressions. |
DynamoDBDeleteExpression |
withExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamoDBDeleteExpression()
Method Detail |
---|
public java.util.Map<java.lang.String,ExpectedAttributeValue> getExpected()
public void setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
expectedAttributes
- The map of attribute names to expected attribute value conditions to check on deletepublic DynamoDBDeleteExpression withExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes)
expectedAttributes
- The map of attribute names to expected attribute value
conditions to check on deletepublic DynamoDBDeleteExpression withExpectedEntry(java.lang.String attributeName, ExpectedAttributeValue expected)
attributeName
- The name of the attribute.expected
- The expected attribute value.public java.lang.String getConditionalOperator()
public void setConditionalOperator(java.lang.String conditionalOperator)
public DynamoDBDeleteExpression withConditionalOperator(java.lang.String conditionalOperator)
public void setConditionalOperator(ConditionalOperator conditionalOperator)
public DynamoDBDeleteExpression withConditionalOperator(ConditionalOperator conditionalOperator)
public java.lang.String getConditionExpression()
DeleteItemRequest.getConditionExpression()
public void setConditionExpression(java.lang.String conditionExpression)
DeleteItemRequest#setConditionExpression()
public DynamoDBDeleteExpression withConditionExpression(java.lang.String conditionExpression)
DeleteItemRequest.withConditionExpression(String)
public java.util.Map<java.lang.String,java.lang.String> getExpressionAttributeNames()
DeleteItemRequest.getExpressionAttributeNames()
public void setExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
expressionAttributeNames
- One or more substitution variables for simplifying complex
expressions.DeleteItemRequest.setExpressionAttributeNames(Map)
public DynamoDBDeleteExpression withExpressionAttributeNames(java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames)
expressionAttributeNames
- One or more substitution variables for simplifying complex
expressions.
DeleteItemRequest.withExpressionAttributeNames(Map)
public DynamoDBDeleteExpression addExpressionAttributeNamesEntry(java.lang.String key, java.lang.String value)
key
- The key of the entry to be added into
ExpressionAttributeNames.value
- The corresponding value of the entry to be added into
ExpressionAttributeNames.DeleteItemRequest.addExpressionAttributeNamesEntry(String, String)
public DynamoDBDeleteExpression clearExpressionAttributeNamesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.Map<java.lang.String,AttributeValue> getExpressionAttributeValues()
DeleteItemRequest.getExpressionAttributeValues()
public void setExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
expressionAttributeValues
- One or more values that can be substituted in an expression.DeleteItemRequest.setExpressionAttributeValues(Map)
public DynamoDBDeleteExpression withExpressionAttributeValues(java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues)
expressionAttributeValues
- One or more values that can be substituted in an expression.
DeleteItemRequest.withExpressionAttributeValues(Map)
public DynamoDBDeleteExpression addExpressionAttributeValuesEntry(java.lang.String key, AttributeValue value)
key
- The key of the entry to be added into
ExpressionAttributeValues.value
- The corresponding value of the entry to be added into
ExpressionAttributeValues.DeleteItemRequest.addExpressionAttributeValuesEntry(String,
AttributeValue)
public DynamoDBDeleteExpression clearExpressionAttributeValuesEntries()
Returns a reference to this object so that method calls can be chained together.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |