@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Put extends Object implements Serializable, Cloneable, StructuredPojo
Represents a request to perform a PutItem
operation.
Constructor and Description |
---|
Put() |
Modifier and Type | Method and Description |
---|---|
Put |
addExpressionAttributeNamesEntry(String key,
String value)
Add a single ExpressionAttributeNames entry
|
Put |
addExpressionAttributeValuesEntry(String key,
AttributeValue value)
Add a single ExpressionAttributeValues entry
|
Put |
addItemEntry(String key,
AttributeValue value)
Add a single Item entry
|
Put |
clearExpressionAttributeNamesEntries()
Removes all the entries added into ExpressionAttributeNames.
|
Put |
clearExpressionAttributeValuesEntries()
Removes all the entries added into ExpressionAttributeValues.
|
Put |
clearItemEntries()
Removes all the entries added into Item.
|
Put |
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> |
getItem()
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem . |
String |
getReturnValuesOnConditionCheckFailure()
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition
fails. |
String |
getTableName()
Name of the table in which to write the item.
|
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 |
setItem(Map<String,AttributeValue> item)
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem . |
void |
setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition
fails. |
void |
setTableName(String tableName)
Name of the table in which to write the item.
|
String |
toString()
Returns a string representation of this object.
|
Put |
withConditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
|
Put |
withExpressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
|
Put |
withExpressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
|
Put |
withItem(Map<String,AttributeValue> item)
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem . |
Put |
withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition
fails. |
Put |
withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition
fails. |
Put |
withTableName(String tableName)
Name of the table in which to write the item.
|
public Map<String,AttributeValue> getItem()
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem
. All of the table's primary key attributes must be specified, and their data types must
match those of the table's key schema. If any attributes are present in the item that are part of an index key
schema for the table, their types must match the index key schema.
PutItem
. All of the table's primary key attributes must be specified, and their data types
must match those of the table's key schema. If any attributes are present in the item that are part of an
index key schema for the table, their types must match the index key schema.public void setItem(Map<String,AttributeValue> item)
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem
. All of the table's primary key attributes must be specified, and their data types must
match those of the table's key schema. If any attributes are present in the item that are part of an index key
schema for the table, their types must match the index key schema.
item
- A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem
. All of the table's primary key attributes must be specified, and their data types
must match those of the table's key schema. If any attributes are present in the item that are part of an
index key schema for the table, their types must match the index key schema.public Put withItem(Map<String,AttributeValue> item)
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem
. All of the table's primary key attributes must be specified, and their data types must
match those of the table's key schema. If any attributes are present in the item that are part of an index key
schema for the table, their types must match the index key schema.
item
- A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem
. All of the table's primary key attributes must be specified, and their data types
must match those of the table's key schema. If any attributes are present in the item that are part of an
index key schema for the table, their types must match the index key schema.public Put addItemEntry(String key, AttributeValue value)
public Put clearItemEntries()
public void setTableName(String tableName)
Name of the table in which to write the item.
tableName
- Name of the table in which to write the item.public String getTableName()
Name of the table in which to write the item.
public Put withTableName(String tableName)
Name of the table in which to write the item.
tableName
- Name of the table in which to write the item.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 Put 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 Put 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 Put addExpressionAttributeNamesEntry(String key, String value)
public Put 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 Put 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 Put addExpressionAttributeValuesEntry(String key, AttributeValue value)
public Put clearExpressionAttributeValuesEntries()
public void setReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
condition
fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
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 Put
condition
fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.ReturnValuesOnConditionCheckFailure
public Put withReturnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
condition
fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
ALL_OLD.ReturnValuesOnConditionCheckFailure
public Put withReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
condition
fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.
returnValuesOnConditionCheckFailure
- Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
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)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.