public class DynamoDBDeleteExpression
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
conditionalOperator
The logical operator on the expected attribute conditions
|
private java.lang.String |
conditionExpression
A condition that must be satisfied in order for a conditional
DeleteItem to succeed.
|
private java.util.Map<java.lang.String,ExpectedAttributeValue> |
expectedAttributes
Optional expected attributes
|
private java.util.Map<java.lang.String,java.lang.String> |
expressionAttributeNames
One or more substitution variables for simplifying complex
expressions.
|
private java.util.Map<java.lang.String,AttributeValue> |
expressionAttributeValues
One or more values that can be substituted in an expression.
|
Constructor and Description |
---|
DynamoDBDeleteExpression() |
Modifier and Type | Method and Description |
---|---|
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.
|
private java.util.Map<java.lang.String,ExpectedAttributeValue> expectedAttributes
private java.lang.String conditionalOperator
private java.lang.String conditionExpression
private java.util.Map<java.lang.String,java.lang.String> expressionAttributeNames
private java.util.Map<java.lang.String,AttributeValue> expressionAttributeValues
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()
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.