@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Update extends Object implements Serializable, Cloneable, StructuredPojo
Represents a request to perform an UpdateItem
operation.
Constructor and Description |
---|
Update() |
Modifier and Type | Method and Description |
---|---|
Update |
addExpressionAttributeNamesEntry(String key,
String value) |
Update |
addExpressionAttributeValuesEntry(String key,
AttributeValue value) |
Update |
addKeyEntry(String key,
AttributeValue value) |
Update |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames.
|
Update |
clearExpressionAttributeValuesEntries()
Removes all the entries added into ExpressionAttributeValues.
|
Update |
clearKeyEntries()
Removes all the entries added into Key.
|
Update |
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 updated.
|
String |
getReturnValuesOnConditionCheckFailure()
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Update
condition fails. |
String |
getTableName()
Name of the table for the
UpdateItem request. |
String |
getUpdateExpression()
An expression that defines one or more attributes to be updated, the action to be performed on them, and new
value(s) for them.
|
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 updated.
|
void |
setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Update
condition fails. |
void |
setTableName(String tableName)
Name of the table for the
UpdateItem request. |
void |
setUpdateExpression(String updateExpression)
An expression that defines one or more attributes to be updated, the action to be performed on them, and new
value(s) for them.
|
String |
toString()
Returns a string representation of this object.
|
Update |
withConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
|
Update |
withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
|
Update |
withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
Update |
withKey(Map<String,AttributeValue> key)
The primary key of the item to be updated.
|
Update |
withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Update
condition fails. |
Update |
withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Update
condition fails. |
Update |
withTableName(String tableName)
Name of the table for the
UpdateItem request. |
Update |
withUpdateExpression(String updateExpression)
An expression that defines one or more attributes to be updated, the action to be performed on them, and new
value(s) for them.
|
public Map<String,AttributeValue> getKey()
The primary key of the item to be updated. 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 updated. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be updated. Each element consists of an attribute name and a value for that
attribute.public Update withKey(Map<String,AttributeValue> key)
The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.
key
- The primary key of the item to be updated. Each element consists of an attribute name and a value for that
attribute.public Update addKeyEntry(String key, AttributeValue value)
public Update clearKeyEntries()
public void setUpdateExpression(String updateExpression)
An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
updateExpression
- An expression that defines one or more attributes to be updated, the action to be performed on them, and
new value(s) for them.public String getUpdateExpression()
An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
public Update withUpdateExpression(String updateExpression)
An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them.
updateExpression
- An expression that defines one or more attributes to be updated, the action to be performed on them, and
new value(s) for them.public void setTableName(String tableName)
Name of the table for the UpdateItem
request.
tableName
- Name of the table for the UpdateItem
request.public String getTableName()
Name of the table for the UpdateItem
request.
UpdateItem
request.public Update withTableName(String tableName)
Name of the table for the UpdateItem
request.
tableName
- Name of the table for the UpdateItem
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 Update 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 Update 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 Update addExpressionAttributeNamesEntry(String key, String value)
public Update 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 Update 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 Update addExpressionAttributeValuesEntry(String key, AttributeValue value)
public Update clearExpressionAttributeValuesEntries()
public void setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD,
UPDATED_OLD, ALL_NEW, UPDATED_NEW.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE,
ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.ReturnValuesOnConditionCheckFailure
public String getReturnValuesOnConditionCheckFailure()
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD,
UPDATED_OLD, ALL_NEW, UPDATED_NEW.
ReturnValuesOnConditionCheckFailure
to get the item attributes if the
Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid
values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.ReturnValuesOnConditionCheckFailure
public Update withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD,
UPDATED_OLD, ALL_NEW, UPDATED_NEW.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE,
ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.ReturnValuesOnConditionCheckFailure
public Update withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE, ALL_OLD,
UPDATED_OLD, ALL_NEW, UPDATED_NEW.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Update
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE,
ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.ReturnValuesOnConditionCheckFailure
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.