com.amazonaws.services.securitytoken.model

## クラス Credentials

- java.lang.Object
- - com.amazonaws.services.securitytoken.model.Credentials

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

      public class Credentials
      extends java.lang.Object
      implements java.io.Serializable

  AWS credentials for API authentication.

  関連項目:
    直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `Credentials()` Default constructor for a new Credentials object.
    `Credentials(java.lang.String accessKeyId, java.lang.String secretAccessKey, java.lang.String sessionToken, java.util.Date expiration)` Constructs a new Credentials object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAccessKeyId()` The access key ID that identifies the temporary security credentials.
    `java.util.Date` | `getExpiration()` The date on which the current credentials expire.
    `java.lang.String` | `getSecretAccessKey()` The secret access key that can be used to sign requests.
    `java.lang.String` | `getSessionToken()` The token that users must pass to the service API to use the temporary credentials.
    `int` | `hashCode()`
    `void` | `setAccessKeyId(java.lang.String accessKeyId)` The access key ID that identifies the temporary security credentials.
    `void` | `setExpiration(java.util.Date expiration)` The date on which the current credentials expire.
    `void` | `setSecretAccessKey(java.lang.String secretAccessKey)` The secret access key that can be used to sign requests.
    `void` | `setSessionToken(java.lang.String sessionToken)` The token that users must pass to the service API to use the temporary credentials.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `Credentials` | `withAccessKeyId(java.lang.String accessKeyId)` The access key ID that identifies the temporary security credentials.
    `Credentials` | `withExpiration(java.util.Date expiration)` The date on which the current credentials expire.
    `Credentials` | `withSecretAccessKey(java.lang.String secretAccessKey)` The secret access key that can be used to sign requests.
    `Credentials` | `withSessionToken(java.lang.String sessionToken)` The token that users must pass to the service API to use the temporary credentials.

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

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

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

    - #### Credentials

          public Credentials()

      Default constructor for a new Credentials object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### Credentials

          public Credentials(java.lang.String accessKeyId,
                     java.lang.String secretAccessKey,
                     java.lang.String sessionToken,
                     java.util.Date expiration)

      Constructs a new Credentials object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `accessKeyId` - The access key ID that identifies the temporary security credentials.
        `secretAccessKey` - The secret access key that can be used to sign requests.
        `sessionToken` - The token that users must pass to the service API to use the temporary credentials.
        `expiration` - The date on which the current credentials expire.

  - ### メソッドの詳細

    - #### getAccessKeyId

          public java.lang.String getAccessKeyId()

      The access key ID that identifies the temporary security credentials.

      Constraints:
      Length: 16 - 32
      Pattern: [\w]*

      戻り値:
        The access key ID that identifies the temporary security credentials.

    - #### setAccessKeyId

          public void setAccessKeyId(java.lang.String accessKeyId)

      The access key ID that identifies the temporary security credentials.

      Constraints:
      Length: 16 - 32
      Pattern: [\w]*

      パラメータ:
        `accessKeyId` - The access key ID that identifies the temporary security credentials.

    - #### withAccessKeyId

          public Credentials withAccessKeyId(java.lang.String accessKeyId)

      The access key ID that identifies the temporary security credentials.

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

      Constraints:
      Length: 16 - 32
      Pattern: [\w]*

      パラメータ:
        `accessKeyId` - The access key ID that identifies the temporary security credentials.

    - #### getSecretAccessKey

          public java.lang.String getSecretAccessKey()

      The secret access key that can be used to sign requests.
      戻り値:
        The secret access key that can be used to sign requests.

    - #### setSecretAccessKey

          public void setSecretAccessKey(java.lang.String secretAccessKey)

      The secret access key that can be used to sign requests.
      パラメータ:
        `secretAccessKey` - The secret access key that can be used to sign requests.

    - #### withSecretAccessKey

          public Credentials withSecretAccessKey(java.lang.String secretAccessKey)

      The secret access key that can be used to sign requests.

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

      パラメータ:
        `secretAccessKey` - The secret access key that can be used to sign requests.

    - #### getSessionToken

          public java.lang.String getSessionToken()

      The token that users must pass to the service API to use the temporary credentials.
      戻り値:
        The token that users must pass to the service API to use the temporary credentials.

    - #### setSessionToken

          public void setSessionToken(java.lang.String sessionToken)

      The token that users must pass to the service API to use the temporary credentials.
      パラメータ:
        `sessionToken` - The token that users must pass to the service API to use the temporary credentials.

    - #### withSessionToken

          public Credentials withSessionToken(java.lang.String sessionToken)

      The token that users must pass to the service API to use the temporary credentials.

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

      パラメータ:
        `sessionToken` - The token that users must pass to the service API to use the temporary credentials.

    - #### getExpiration

          public java.util.Date getExpiration()

      The date on which the current credentials expire.
      戻り値:
        The date on which the current credentials expire.

    - #### setExpiration

          public void setExpiration(java.util.Date expiration)

      The date on which the current credentials expire.
      パラメータ:
        `expiration` - The date on which the current credentials expire.

    - #### withExpiration

          public Credentials withExpiration(java.util.Date expiration)

      The date on which the current credentials expire.

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

      パラメータ:
        `expiration` - The date on which the current credentials expire.

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