Interface Put.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Put.Builder,Put>
,SdkBuilder<Put.Builder,Put>
,SdkPojo
- Enclosing class:
- Put
public static interface Put.Builder extends SdkPojo, CopyableBuilder<Put.Builder,Put>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Put.Builder
conditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.Put.Builder
expressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.Put.Builder
expressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.Put.Builder
item(Map<String,AttributeValue> item)
A map of attribute name to attribute values, representing the primary key of the item to be written byPutItem
.Put.Builder
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePut
condition fails.Put.Builder
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePut
condition fails.Put.Builder
tableName(String tableName)
Name of the table in which to write the item.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
item
Put.Builder item(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.- Parameters:
item
- A map of attribute name to attribute values, representing the primary key of the item to be written byPutItem
. 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableName
Put.Builder tableName(String tableName)
Name of the table in which to write the item.
- Parameters:
tableName
- Name of the table in which to write the item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionExpression
Put.Builder conditionExpression(String conditionExpression)
A condition that must be satisfied in order for a conditional update to succeed.
- Parameters:
conditionExpression
- A condition that must be satisfied in order for a conditional update to succeed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expressionAttributeNames
Put.Builder expressionAttributeNames(Map<String,String> expressionAttributeNames)
One or more substitution tokens for attribute names in an expression.
- Parameters:
expressionAttributeNames
- One or more substitution tokens for attribute names in an expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expressionAttributeValues
Put.Builder expressionAttributeValues(Map<String,AttributeValue> expressionAttributeValues)
One or more values that can be substituted in an expression.
- Parameters:
expressionAttributeValues
- One or more values that can be substituted in an expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnValuesOnConditionCheckFailure
Put.Builder returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure
to get the item attributes if thePut
condition fails. ForReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.- Parameters:
returnValuesOnConditionCheckFailure
- UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePut
condition fails. ForReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReturnValuesOnConditionCheckFailure
,ReturnValuesOnConditionCheckFailure
-
returnValuesOnConditionCheckFailure
Put.Builder returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Use
ReturnValuesOnConditionCheckFailure
to get the item attributes if thePut
condition fails. ForReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.- Parameters:
returnValuesOnConditionCheckFailure
- UseReturnValuesOnConditionCheckFailure
to get the item attributes if thePut
condition fails. ForReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReturnValuesOnConditionCheckFailure
,ReturnValuesOnConditionCheckFailure
-
-