com.amazonaws.services.dynamodb.model

## クラス PutItemRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.dynamodb.model.PutItemRequest

- すべての実装されたインタフェース:
    java.io.Serializable

  非推奨です。

      @Deprecated
      public class PutItemRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `PutItem operation`.

  Creates a new item, or replaces an old item with a new item (including all the attributes).

  If an item already exists in the specified table with the same primary key, the new item completely replaces the existing item. You can perform a conditional put (insert a new item if one with the specified primary key doesn't exist), or replace an existing item if it has certain attribute values.

  関連項目:
    `AmazonDynamoDB.putItem(PutItemRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `PutItemRequest()` 非推奨です。 Default constructor for a new PutItemRequest object.
    `PutItemRequest(java.lang.String tableName, java.util.Map<java.lang.String,AttributeValue> item)` 非推奨です。 Constructs a new PutItemRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)` 非推奨です。
    `java.util.Map<java.lang.String,ExpectedAttributeValue>` | `getExpected()` 非推奨です。 Designates an attribute for a conditional modification.
    `java.util.Map<java.lang.String,AttributeValue>` | `getItem()` 非推奨です。 A map of the attributes for the item, and must include the primary key values that define the item.
    `java.lang.String` | `getReturnValues()` 非推奨です。 Use this parameter if you want to get the attribute name-value pairs before or after they are modified.
    `java.lang.String` | `getTableName()` 非推奨です。 The name of the table in which you want to put an item.
    `int` | `hashCode()` 非推奨です。
    `void` | `setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expected)` 非推奨です。 Designates an attribute for a conditional modification.
    `void` | `setItem(java.util.Map<java.lang.String,AttributeValue> item)` 非推奨です。 A map of the attributes for the item, and must include the primary key values that define the item.
    `void` | `setReturnValues(ReturnValue returnValues)` 非推奨です。 Use this parameter if you want to get the attribute name-value pairs before or after they are modified.
    `void` | `setReturnValues(java.lang.String returnValues)` 非推奨です。 Use this parameter if you want to get the attribute name-value pairs before or after they are modified.
    `void` | `setTableName(java.lang.String tableName)` 非推奨です。 The name of the table in which you want to put an item.
    `java.lang.String` | `toString()` 非推奨です。 Returns a string representation of this object; useful for testing and debugging.
    `PutItemRequest` | `withExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expected)` 非推奨です。 Designates an attribute for a conditional modification.
    `PutItemRequest` | `withItem(java.util.Map<java.lang.String,AttributeValue> item)` 非推奨です。 A map of the attributes for the item, and must include the primary key values that define the item.
    `PutItemRequest` | `withReturnValues(ReturnValue returnValues)` 非推奨です。 Use this parameter if you want to get the attribute name-value pairs before or after they are modified.
    `PutItemRequest` | `withReturnValues(java.lang.String returnValues)` 非推奨です。 Use this parameter if you want to get the attribute name-value pairs before or after they are modified.
    `PutItemRequest` | `withTableName(java.lang.String tableName)` 非推奨です。 The name of the table in which you want to put an item.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### PutItemRequest

          public PutItemRequest()

      非推奨です。
      Default constructor for a new PutItemRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### PutItemRequest

          public PutItemRequest(java.lang.String tableName,
                        java.util.Map<java.lang.String,AttributeValue> item)

      非推奨です。
      Constructs a new PutItemRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `tableName` - The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).
        `item` - A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.

  - ### メソッドの詳細

    - #### getTableName

          public java.lang.String getTableName()

      非推奨です。
      The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).

      Constraints:
      Length: 3 - 255
      Pattern: [a-zA-Z0-9_.-]+

      戻り値:
        The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).

    - #### setTableName

          public void setTableName(java.lang.String tableName)

      非推奨です。
      The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).

      Constraints:
      Length: 3 - 255
      Pattern: [a-zA-Z0-9_.-]+

      パラメータ:
        `tableName` - The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).

    - #### withTableName

          public PutItemRequest withTableName(java.lang.String tableName)

      非推奨です。
      The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Length: 3 - 255
      Pattern: [a-zA-Z0-9_.-]+

      パラメータ:
        `tableName` - The name of the table in which you want to put an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getItem

          public java.util.Map<java.lang.String,AttributeValue> getItem()

      非推奨です。
      A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.
      戻り値:
        A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.

    - #### setItem

          public void setItem(java.util.Map<java.lang.String,AttributeValue> item)

      非推奨です。
      A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.
      パラメータ:
        `item` - A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.

    - #### withItem

          public PutItemRequest withItem(java.util.Map<java.lang.String,AttributeValue> item)

      非推奨です。
      A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `item` - A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getExpected

          public java.util.Map<java.lang.String,ExpectedAttributeValue> getExpected()

      非推奨です。
      Designates an attribute for a conditional modification. The `Expected` parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.
      戻り値:
        Designates an attribute for a conditional modification. The `Expected` parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.

    - #### setExpected

          public void setExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expected)

      非推奨です。
      Designates an attribute for a conditional modification. The `Expected` parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.
      パラメータ:
        `expected` - Designates an attribute for a conditional modification. The `Expected` parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.

    - #### withExpected

          public PutItemRequest withExpected(java.util.Map<java.lang.String,ExpectedAttributeValue> expected)

      非推奨です。
      Designates an attribute for a conditional modification. The `Expected` parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `expected` - Designates an attribute for a conditional modification. The `Expected` parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getReturnValues

          public java.lang.String getReturnValues()

      非推奨です。
      Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
      - `NONE`: Nothing is returned.
      - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
      - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
      - `ALL_NEW`: Returns all the attributes and their new values after the operation.
      - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.

      Constraints:
      Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW

      戻り値:
        Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
        - `NONE`: Nothing is returned.
        - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
        - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
        - `ALL_NEW`: Returns all the attributes and their new values after the operation.
        - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.
      関連項目:
        `ReturnValue`

    - #### setReturnValues

          public void setReturnValues(java.lang.String returnValues)

      非推奨です。
      Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
      - `NONE`: Nothing is returned.
      - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
      - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
      - `ALL_NEW`: Returns all the attributes and their new values after the operation.
      - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.

      Constraints:
      Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW

      パラメータ:
        `returnValues` - Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
        - `NONE`: Nothing is returned.
        - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
        - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
        - `ALL_NEW`: Returns all the attributes and their new values after the operation.
        - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.
      関連項目:
        `ReturnValue`

    - #### withReturnValues

          public PutItemRequest withReturnValues(java.lang.String returnValues)

      非推奨です。
      Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
      - `NONE`: Nothing is returned.
      - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
      - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
      - `ALL_NEW`: Returns all the attributes and their new values after the operation.
      - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW

      パラメータ:
        `returnValues` - Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
        - `NONE`: Nothing is returned.
        - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
        - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
        - `ALL_NEW`: Returns all the attributes and their new values after the operation.
        - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.
      戻り値:
        A reference to this updated object so that method calls can be chained together.
      関連項目:
        `ReturnValue`

    - #### setReturnValues

          public void setReturnValues(ReturnValue returnValues)

      非推奨です。
      Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
      - `NONE`: Nothing is returned.
      - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
      - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
      - `ALL_NEW`: Returns all the attributes and their new values after the operation.
      - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.

      Constraints:
      Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW

      パラメータ:
        `returnValues` - Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
        - `NONE`: Nothing is returned.
        - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
        - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
        - `ALL_NEW`: Returns all the attributes and their new values after the operation.
        - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.
      関連項目:
        `ReturnValue`

    - #### withReturnValues

          public PutItemRequest withReturnValues(ReturnValue returnValues)

      非推奨です。
      Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
      - `NONE`: Nothing is returned.
      - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
      - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
      - `ALL_NEW`: Returns all the attributes and their new values after the operation.
      - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Allowed Values: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW

      パラメータ:
        `returnValues` - Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For `PUT` operations, the possible parameter values are `NONE` (default) or `ALL_OLD`. For update operations, the possible parameter values are `NONE` (default) or `ALL_OLD`, `UPDATED_OLD`, `ALL_NEW` or `UPDATED_NEW`.
        - `NONE`: Nothing is returned.
        - `ALL_OLD`: Returns the attributes of the item as they were before the operation.
        - `UPDATED_OLD`: Returns the values of the updated attributes, only, as they were before the operation.
        - `ALL_NEW`: Returns all the attributes and their new values after the operation.
        - `UPDATED_NEW`: Returns the values of the updated attributes, only, as they are after the operation.
      戻り値:
        A reference to this updated object so that method calls can be chained together.
      関連項目:
        `ReturnValue`

    - #### toString

          public java.lang.String toString()

      非推奨です。
      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      非推奨です。
      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      非推奨です。
      オーバーライド:
        `equals` クラス内 `java.lang.Object`