com.amazonaws.services.dynamodb.model

## クラス GetItemRequest

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

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

  非推奨です。

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

  Container for the parameters to the `GetItem operation`.

  Retrieves a set of Attributes for an item that matches the primary key.

  The `GetItem` operation provides an eventually-consistent read by default. If eventually-consistent reads are not acceptable for your application, use `ConsistentRead` . Although this operation might take longer than a standard read, it always returns the last updated value.

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

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

    コンストラクタ
    コンストラクタと説明
    `GetItemRequest()` 非推奨です。 Default constructor for a new GetItemRequest object.
    `GetItemRequest(java.lang.String tableName, Key key)` 非推奨です。 Constructs a new GetItemRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)` 非推奨です。
    `java.util.List<java.lang.String>` | `getAttributesToGet()` 非推奨です。 List of `Attribute` names.
    `java.lang.Boolean` | `getConsistentRead()` 非推奨です。 If set to `true`, then a consistent read is issued.
    `Key` | `getKey()` 非推奨です。 The primary key that uniquely identifies each item in a table.
    `java.lang.String` | `getTableName()` 非推奨です。 The name of the table in which you want to get an item.
    `int` | `hashCode()` 非推奨です。
    `java.lang.Boolean` | `isConsistentRead()` 非推奨です。 If set to `true`, then a consistent read is issued.
    `void` | `setAttributesToGet(java.util.Collection<java.lang.String> attributesToGet)` 非推奨です。 List of `Attribute` names.
    `void` | `setConsistentRead(java.lang.Boolean consistentRead)` 非推奨です。 If set to `true`, then a consistent read is issued.
    `void` | `setKey(Key key)` 非推奨です。 The primary key that uniquely identifies each item in a table.
    `void` | `setTableName(java.lang.String tableName)` 非推奨です。 The name of the table in which you want to get an item.
    `java.lang.String` | `toString()` 非推奨です。 Returns a string representation of this object; useful for testing and debugging.
    `GetItemRequest` | `withAttributesToGet(java.util.Collection<java.lang.String> attributesToGet)` 非推奨です。 List of `Attribute` names.
    `GetItemRequest` | `withAttributesToGet(java.lang.String... attributesToGet)` 非推奨です。 List of `Attribute` names.
    `GetItemRequest` | `withConsistentRead(java.lang.Boolean consistentRead)` 非推奨です。 If set to `true`, then a consistent read is issued.
    `GetItemRequest` | `withKey(Key key)` 非推奨です。 The primary key that uniquely identifies each item in a table.
    `GetItemRequest` | `withTableName(java.lang.String tableName)` 非推奨です。 The name of the table in which you want to get an item.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### GetItemRequest

          public GetItemRequest()

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

    - #### GetItemRequest

          public GetItemRequest(java.lang.String tableName,
                        Key key)

      非推奨です。
      Constructs a new GetItemRequest 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 get an item. Allowed characters are `a-z`, `A-Z`, `0-9`, `_` (underscore), `-` (hyphen) and `.` (period).
        `key` - The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.

  - ### メソッドの詳細

    - #### getTableName

          public java.lang.String getTableName()

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

    - #### withTableName

          public GetItemRequest withTableName(java.lang.String tableName)

      非推奨です。
      The name of the table in which you want to get 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 get 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.

    - #### getKey

          public Key getKey()

      非推奨です。
      The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.
      戻り値:
        The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.

    - #### setKey

          public void setKey(Key key)

      非推奨です。
      The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.
      パラメータ:
        `key` - The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.

    - #### withKey

          public GetItemRequest withKey(Key key)

      非推奨です。
      The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.

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

      パラメータ:
        `key` - The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getAttributesToGet

          public java.util.List<java.lang.String> getAttributesToGet()

      非推奨です。
      List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

      Constraints:
      Length: 1 -

      戻り値:
        List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

    - #### setAttributesToGet

          public void setAttributesToGet(java.util.Collection<java.lang.String> attributesToGet)

      非推奨です。
      List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

      Constraints:
      Length: 1 -

      パラメータ:
        `attributesToGet` - List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

    - #### withAttributesToGet

          public GetItemRequest withAttributesToGet(java.lang.String... attributesToGet)

      非推奨です。
      List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

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

      Constraints:
      Length: 1 -

      パラメータ:
        `attributesToGet` - List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### withAttributesToGet

          public GetItemRequest withAttributesToGet(java.util.Collection<java.lang.String> attributesToGet)

      非推奨です。
      List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.

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

      Constraints:
      Length: 1 -

      パラメータ:
        `attributesToGet` - List of `Attribute` names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### isConsistentRead

          public java.lang.Boolean isConsistentRead()

      非推奨です。
      If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.
      戻り値:
        If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.

    - #### setConsistentRead

          public void setConsistentRead(java.lang.Boolean consistentRead)

      非推奨です。
      If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.
      パラメータ:
        `consistentRead` - If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.

    - #### withConsistentRead

          public GetItemRequest withConsistentRead(java.lang.Boolean consistentRead)

      非推奨です。
      If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.

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

      パラメータ:
        `consistentRead` - If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.
      戻り値:
        A reference to this updated object so that method calls can be chained together.

    - #### getConsistentRead

          public java.lang.Boolean getConsistentRead()

      非推奨です。
      If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.
      戻り値:
        If set to `true`, then a consistent read is issued. Otherwise eventually-consistent is used.

    - #### 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`