public class DynamoDBDeleteExpression extends Object
Constructor and Description |
---|
DynamoDBDeleteExpression() |
Modifier and Type | Method and Description |
---|---|
DynamoDBDeleteExpression |
addExpressionAttributeNamesEntry(String key,
String value)
One or more substitution variables for simplifying complex expressions.
|
DynamoDBDeleteExpression |
addExpressionAttributeValuesEntry(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.
|
String |
getConditionalOperator()
Returns the logical operator on the expected attribute conditions of this
delete operation.
|
String |
getConditionExpression()
A condition that must be satisfied in order for a conditional DeleteItem
to succeed.
|
Map<String,ExpectedAttributeValue> |
getExpected()
Gets the map of attribute names to expected attribute values to check on delete.
|
Map<String,String> |
getExpressionAttributeNames()
One or more substitution variables for simplifying complex expressions.
|
Map<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(String conditionalOperator)
Sets the logical operator on the expected attribute conditions of this
delete operation.
|
void |
setConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional DeleteItem
to succeed.
|
void |
setExpected(Map<String,ExpectedAttributeValue> expectedAttributes)
Sets the expected condition to the map of attribute names to expected attribute values given.
|
void |
setExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution variables for simplifying complex expressions.
|
void |
setExpressionAttributeValues(Map<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(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(String conditionExpression)
A condition that must be satisfied in order for a conditional DeleteItem
to succeed.
|
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.
|
DynamoDBDeleteExpression |
withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution variables for simplifying complex expressions.
|
DynamoDBDeleteExpression |
withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
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)
public String getConditionExpression()
public void setConditionExpression(String conditionExpression)
DeleteItemRequest#setConditionExpression()
public DynamoDBDeleteExpression withConditionExpression(String conditionExpression)
DeleteItemRequest.withConditionExpression(String)
public Map<String,String> getExpressionAttributeNames()
DeleteItemRequest.getExpressionAttributeNames()
public void setExpressionAttributeNames(Map<String,String> expressionAttributeNames)
expressionAttributeNames
- One or more substitution variables for simplifying complex
expressions.DeleteItemRequest.setExpressionAttributeNames(Map)
public DynamoDBDeleteExpression withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
expressionAttributeNames
- One or more substitution variables for simplifying complex
expressions.DeleteItemRequest.withExpressionAttributeNames(Map)
public DynamoDBDeleteExpression addExpressionAttributeNamesEntry(String key, 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 Map<String,AttributeValue> getExpressionAttributeValues()
DeleteItemRequest.getExpressionAttributeValues()
public void setExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
expressionAttributeValues
- One or more values that can be substituted in an expression.DeleteItemRequest.setExpressionAttributeValues(Map)
public DynamoDBDeleteExpression withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
expressionAttributeValues
- One or more values that can be substituted in an expression.DeleteItemRequest.withExpressionAttributeValues(Map)
public DynamoDBDeleteExpression addExpressionAttributeValuesEntry(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.
Copyright © 2021. All rights reserved.