@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Delete extends Object implements Serializable, Cloneable, StructuredPojo
Represents a request to perform a DeleteItem
operation.
Constructor and Description |
---|
Delete() |
Modifier and Type | Method and Description |
---|---|
Delete |
addExpressionAttributeNamesEntry(String key,
String value)
Add a single ExpressionAttributeNames entry
|
Delete |
addExpressionAttributeValuesEntry(String key,
AttributeValue value)
Add a single ExpressionAttributeValues entry
|
Delete |
addKeyEntry(String key,
AttributeValue value)
Add a single Key entry
|
Delete |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames.
|
Delete |
clearExpressionAttributeValuesEntries()
Removes all the entries added into ExpressionAttributeValues.
|
Delete |
clearKeyEntries()
Removes all the entries added into Key.
|
Delete |
clone() |
boolean |
equals(Object obj) |
String |
getConditionExpression()
A condition that must be satisfied in order for a conditional delete to succeed.
|
Map<String,String> |
getExpressionAttributeNames()
One or more substitution tokens for attribute names in an expression.
|
Map<String,AttributeValue> |
getExpressionAttributeValues()
One or more values that can be substituted in an expression.
|
Map<String,AttributeValue> |
getKey()
The primary key of the item to be deleted.
|
String |
getReturnValuesOnConditionCheckFailure()
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. |
String |
getTableName()
Name of the table in which the item to be deleted resides.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional delete to succeed.
|
void |
setExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
|
void |
setExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
void |
setKey(Map<String,AttributeValue> key)
The primary key of the item to be deleted.
|
void |
setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. |
void |
setTableName(String tableName)
Name of the table in which the item to be deleted resides.
|
String |
toString()
Returns a string representation of this object.
|
Delete |
withConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional delete to succeed.
|
Delete |
withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
|
Delete |
withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
Delete |
withKey(Map<String,AttributeValue> key)
The primary key of the item to be deleted.
|
Delete |
withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. |
Delete |
withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete
condition fails. |
Delete |
withTableName(String tableName)
Name of the table in which the item to be deleted resides.
|
public Map<String,AttributeValue> getKey()
The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.
public void setKey(Map<String,AttributeValue> key)
The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be deleted. Each element consists of an attribute name and a value for that
attribute.public Delete withKey(Map<String,AttributeValue> key)
The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be deleted. Each element consists of an attribute name and a value for that
attribute.public Delete addKeyEntry(String key, AttributeValue value)
public Delete clearKeyEntries()
public void setTableName(String tableName)
Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
tableName
- Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name
(ARN) of the table in this parameter.public String getTableName()
Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
public Delete withTableName(String tableName)
Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
tableName
- Name of the table in which the item to be deleted resides. You can also provide the Amazon Resource Name
(ARN) of the table in this parameter.public void setConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional delete to succeed.
conditionExpression
- A condition that must be satisfied in order for a conditional delete to succeed.public String getConditionExpression()
A condition that must be satisfied in order for a conditional delete to succeed.
public Delete withConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional delete to succeed.
conditionExpression
- A condition that must be satisfied in order for a conditional delete to succeed.public Map<String,String> getExpressionAttributeNames()
One or more substitution tokens for attribute names in an expression.
public void setExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.public Delete withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.public Delete addExpressionAttributeNamesEntry(String key, String value)
public Delete clearExpressionAttributeNamesEntries()
public Map<String,AttributeValue> getExpressionAttributeValues()
One or more values that can be substituted in an expression.
public void setExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
expressionAttributeValues
- One or more values that can be substituted in an expression.public Delete withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
expressionAttributeValues
- One or more values that can be substituted in an expression.public Delete addExpressionAttributeValuesEntry(String key, AttributeValue value)
public Delete clearExpressionAttributeValuesEntries()
public void setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.ReturnValuesOnConditionCheckFailure
public String getReturnValuesOnConditionCheckFailure()
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
ReturnValuesOnConditionCheckFailure
to get the item attributes if the
Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE and ALL_OLD.ReturnValuesOnConditionCheckFailure
public Delete withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.ReturnValuesOnConditionCheckFailure
public Delete withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Delete
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.ReturnValuesOnConditionCheckFailure
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.