@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConditionCheck extends Object implements Serializable, Cloneable, StructuredPojo
Represents a request to perform a check that an item exists or to check the condition of specific attributes of the item.
Constructor and Description |
---|
ConditionCheck() |
Modifier and Type | Method and Description |
---|---|
ConditionCheck |
addExpressionAttributeNamesEntry(String key,
String value)
Add a single ExpressionAttributeNames entry
|
ConditionCheck |
addExpressionAttributeValuesEntry(String key,
AttributeValue value)
Add a single ExpressionAttributeValues entry
|
ConditionCheck |
addKeyEntry(String key,
AttributeValue value)
Add a single Key entry
|
ConditionCheck |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames.
|
ConditionCheck |
clearExpressionAttributeValuesEntries()
Removes all the entries added into ExpressionAttributeValues.
|
ConditionCheck |
clearKeyEntries()
Removes all the entries added into Key.
|
ConditionCheck |
clone() |
boolean |
equals(Object obj) |
String |
getConditionExpression()
A condition that must be satisfied in order for a conditional update 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 checked.
|
String |
getReturnValuesOnConditionCheckFailure()
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the
ConditionCheck condition fails. |
String |
getTableName()
Name of the table for the check item request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update 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 checked.
|
void |
setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the
ConditionCheck condition fails. |
void |
setTableName(String tableName)
Name of the table for the check item request.
|
String |
toString()
Returns a string representation of this object.
|
ConditionCheck |
withConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
|
ConditionCheck |
withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
|
ConditionCheck |
withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
ConditionCheck |
withKey(Map<String,AttributeValue> key)
The primary key of the item to be checked.
|
ConditionCheck |
withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the
ConditionCheck condition fails. |
ConditionCheck |
withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the
ConditionCheck condition fails. |
ConditionCheck |
withTableName(String tableName)
Name of the table for the check item request.
|
public Map<String,AttributeValue> getKey()
The primary key of the item to be checked. 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 checked. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be checked. Each element consists of an attribute name and a value for that
attribute.public ConditionCheck withKey(Map<String,AttributeValue> key)
The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be checked. Each element consists of an attribute name and a value for that
attribute.public ConditionCheck addKeyEntry(String key, AttributeValue value)
public ConditionCheck clearKeyEntries()
public void setTableName(String tableName)
Name of the table for the check item request.
tableName
- Name of the table for the check item request.public String getTableName()
Name of the table for the check item request.
public ConditionCheck withTableName(String tableName)
Name of the table for the check item request.
tableName
- Name of the table for the check item request.public void setConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
conditionExpression
- A condition that must be satisfied in order for a conditional update to succeed.public String getConditionExpression()
A condition that must be satisfied in order for a conditional update to succeed.
public ConditionCheck withConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
conditionExpression
- A condition that must be satisfied in order for a conditional update 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 ConditionCheck 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 ConditionCheck addExpressionAttributeNamesEntry(String key, String value)
public ConditionCheck 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 ConditionCheck 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 ConditionCheck addExpressionAttributeValuesEntry(String key, AttributeValue value)
public ConditionCheck clearExpressionAttributeValuesEntries()
public void setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
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
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE and ALL_OLD.
ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the
valid values are: NONE and ALL_OLD.ReturnValuesOnConditionCheckFailure
public ConditionCheck withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the
valid values are: NONE and ALL_OLD.ReturnValuesOnConditionCheckFailure
public ConditionCheck withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the
ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure
, the
valid values are: NONE and ALL_OLD.ReturnValuesOnConditionCheckFailure
public String toString()
toString
in class Object
Object.toString()
public ConditionCheck clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.