com.amazonaws.services.identitymanagement.model

## クラス AccessKey

- java.lang.Object
- - com.amazonaws.services.identitymanagement.model.AccessKey

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

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

  The AccessKey data type contains information about an AWS access key.

  This data type is used as a response element in the actions CreateAccessKey and ListAccessKeys.

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

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

    コンストラクタ
    コンストラクタと説明
    `AccessKey()` Default constructor for a new AccessKey object.
    `AccessKey(java.lang.String userName, java.lang.String accessKeyId, StatusType status, java.lang.String secretAccessKey)` Constructs a new AccessKey object.
    `AccessKey(java.lang.String userName, java.lang.String accessKeyId, java.lang.String status, java.lang.String secretAccessKey)` Constructs a new AccessKey object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAccessKeyId()` The ID for this access key.
    `java.util.Date` | `getCreateDate()` The date when the access key was created.
    `java.lang.String` | `getSecretAccessKey()` The secret key used to sign requests.
    `java.lang.String` | `getStatus()` The status of the access key.
    `java.lang.String` | `getUserName()` Name of the user the key is associated with.
    `int` | `hashCode()`
    `void` | `setAccessKeyId(java.lang.String accessKeyId)` The ID for this access key.
    `void` | `setCreateDate(java.util.Date createDate)` The date when the access key was created.
    `void` | `setSecretAccessKey(java.lang.String secretAccessKey)` The secret key used to sign requests.
    `void` | `setStatus(StatusType status)` The status of the access key.
    `void` | `setStatus(java.lang.String status)` The status of the access key.
    `void` | `setUserName(java.lang.String userName)` Name of the user the key is associated with.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AccessKey` | `withAccessKeyId(java.lang.String accessKeyId)` The ID for this access key.
    `AccessKey` | `withCreateDate(java.util.Date createDate)` The date when the access key was created.
    `AccessKey` | `withSecretAccessKey(java.lang.String secretAccessKey)` The secret key used to sign requests.
    `AccessKey` | `withStatus(StatusType status)` The status of the access key.
    `AccessKey` | `withStatus(java.lang.String status)` The status of the access key.
    `AccessKey` | `withUserName(java.lang.String userName)` Name of the user the key is associated with.

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

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

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

    - #### AccessKey

          public AccessKey()

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

    - #### AccessKey

          public AccessKey(java.lang.String userName,
                   java.lang.String accessKeyId,
                   java.lang.String status,
                   java.lang.String secretAccessKey)

      Constructs a new AccessKey object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `userName` - Name of the user the key is associated with.
        `accessKeyId` - The ID for this access key.
        `status` - The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
        `secretAccessKey` - The secret key used to sign requests.

    - #### AccessKey

          public AccessKey(java.lang.String userName,
                   java.lang.String accessKeyId,
                   StatusType status,
                   java.lang.String secretAccessKey)

      Constructs a new AccessKey object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `userName` - Name of the user the key is associated with.
        `accessKeyId` - The ID for this access key.
        `status` - The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
        `secretAccessKey` - The secret key used to sign requests.

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      Name of the user the key is associated with.

      Constraints:
      Length: 1 - 64
      Pattern: [\w+=,.@-]*

      戻り値:
        Name of the user the key is associated with.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      Name of the user the key is associated with.

      Constraints:
      Length: 1 - 64
      Pattern: [\w+=,.@-]*

      パラメータ:
        `userName` - Name of the user the key is associated with.

    - #### withUserName

          public AccessKey withUserName(java.lang.String userName)

      Name of the user the key is associated with.

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

      Constraints:
      Length: 1 - 64
      Pattern: [\w+=,.@-]*

      パラメータ:
        `userName` - Name of the user the key is associated with.

    - #### getAccessKeyId

          public java.lang.String getAccessKeyId()

      The ID for this access key.

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

      戻り値:
        The ID for this access key.

    - #### setAccessKeyId

          public void setAccessKeyId(java.lang.String accessKeyId)

      The ID for this access key.

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

      パラメータ:
        `accessKeyId` - The ID for this access key.

    - #### withAccessKeyId

          public AccessKey withAccessKeyId(java.lang.String accessKeyId)

      The ID for this access key.

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

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

      パラメータ:
        `accessKeyId` - The ID for this access key.

    - #### getStatus

          public java.lang.String getStatus()

      The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.

      Constraints:
      Allowed Values: Active, Inactive

      戻り値:
        The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
      関連項目:
        `StatusType`

    - #### setStatus

          public void setStatus(java.lang.String status)

      The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
      関連項目:
        `StatusType`

    - #### withStatus

          public AccessKey withStatus(java.lang.String status)

      The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.

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

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
      関連項目:
        `StatusType`

    - #### setStatus

          public void setStatus(StatusType status)

      The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
      関連項目:
        `StatusType`

    - #### withStatus

          public AccessKey withStatus(StatusType status)

      The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.

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

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status of the access key. `Active` means the key is valid for API calls, while `Inactive` means it is not.
      関連項目:
        `StatusType`

    - #### getSecretAccessKey

          public java.lang.String getSecretAccessKey()

      The secret key used to sign requests.
      戻り値:
        The secret key used to sign requests.

    - #### setSecretAccessKey

          public void setSecretAccessKey(java.lang.String secretAccessKey)

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

    - #### withSecretAccessKey

          public AccessKey withSecretAccessKey(java.lang.String secretAccessKey)

      The secret key used to sign requests.

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

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

    - #### getCreateDate

          public java.util.Date getCreateDate()

      The date when the access key was created.
      戻り値:
        The date when the access key was created.

    - #### setCreateDate

          public void setCreateDate(java.util.Date createDate)

      The date when the access key was created.
      パラメータ:
        `createDate` - The date when the access key was created.

    - #### withCreateDate

          public AccessKey withCreateDate(java.util.Date createDate)

      The date when the access key was created.

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

      パラメータ:
        `createDate` - The date when the access key was created.

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