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 Details

    • 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 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.
      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. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.

      Parameters:
      tableName - Name of the table in which to write the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
      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 the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

      Parameters:
      returnValuesOnConditionCheckFailure - Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, 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

      Put.Builder returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)

      Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

      Parameters:
      returnValuesOnConditionCheckFailure - Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, 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: