com.amazonaws.services.identitymanagement.model

## クラス UpdateAccessKeyRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.identitymanagement.model.UpdateAccessKeyRequest

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

      public class UpdateAccessKeyRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `UpdateAccessKey operation`.

  Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.

  If the `UserName` field is not specified, the UserName is determined implicitly based on the AWS Access Key ID used to sign the request. Because this action works for access keys under the AWS account, this API can be used to manage root credentials even if the AWS account has no associated users.

  For information about rotating keys, see Managing Keys and Certificates in Using AWS Identity and Access Management .

  関連項目:
    `AmazonIdentityManagement.updateAccessKey(UpdateAccessKeyRequest)`, 直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAccessKeyId()` The Access Key ID of the Secret Access Key you want to update.
    `java.lang.String` | `getStatus()` The status you want to assign to the Secret Access Key.
    `java.lang.String` | `getUserName()` Name of the user whose key you want to update.
    `int` | `hashCode()`
    `void` | `setAccessKeyId(java.lang.String accessKeyId)` The Access Key ID of the Secret Access Key you want to update.
    `void` | `setStatus(StatusType status)` The status you want to assign to the Secret Access Key.
    `void` | `setStatus(java.lang.String status)` The status you want to assign to the Secret Access Key.
    `void` | `setUserName(java.lang.String userName)` Name of the user whose key you want to update.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `UpdateAccessKeyRequest` | `withAccessKeyId(java.lang.String accessKeyId)` The Access Key ID of the Secret Access Key you want to update.
    `UpdateAccessKeyRequest` | `withStatus(StatusType status)` The status you want to assign to the Secret Access Key.
    `UpdateAccessKeyRequest` | `withStatus(java.lang.String status)` The status you want to assign to the Secret Access Key.
    `UpdateAccessKeyRequest` | `withUserName(java.lang.String userName)` Name of the user whose key you want to update.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### UpdateAccessKeyRequest

          public UpdateAccessKeyRequest()

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

    - #### UpdateAccessKeyRequest

          public UpdateAccessKeyRequest(java.lang.String accessKeyId,
                                java.lang.String status)

      Constructs a new UpdateAccessKeyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `accessKeyId` - The Access Key ID of the Secret Access Key you want to update.
        `status` - The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

    - #### UpdateAccessKeyRequest

          public UpdateAccessKeyRequest(java.lang.String accessKeyId,
                                StatusType status)

      Constructs a new UpdateAccessKeyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `accessKeyId` - The Access Key ID of the Secret Access Key you want to update.
        `status` - The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      Name of the user whose key you want to update.

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

      戻り値:
        Name of the user whose key you want to update.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      Name of the user whose key you want to update.

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

      パラメータ:
        `userName` - Name of the user whose key you want to update.

    - #### withUserName

          public UpdateAccessKeyRequest withUserName(java.lang.String userName)

      Name of the user whose key you want to update.

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

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

      パラメータ:
        `userName` - Name of the user whose key you want to update.

    - #### getAccessKeyId

          public java.lang.String getAccessKeyId()

      The Access Key ID of the Secret Access Key you want to update.

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

      戻り値:
        The Access Key ID of the Secret Access Key you want to update.

    - #### setAccessKeyId

          public void setAccessKeyId(java.lang.String accessKeyId)

      The Access Key ID of the Secret Access Key you want to update.

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

      パラメータ:
        `accessKeyId` - The Access Key ID of the Secret Access Key you want to update.

    - #### withAccessKeyId

          public UpdateAccessKeyRequest withAccessKeyId(java.lang.String accessKeyId)

      The Access Key ID of the Secret Access Key you want to update.

      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 of the Secret Access Key you want to update.

    - #### getStatus

          public java.lang.String getStatus()

      The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

      Constraints:
      Allowed Values: Active, Inactive

      戻り値:
        The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.
      関連項目:
        `StatusType`

    - #### setStatus

          public void setStatus(java.lang.String status)

      The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.
      関連項目:
        `StatusType`

    - #### withStatus

          public UpdateAccessKeyRequest withStatus(java.lang.String status)

      The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

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

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.
      関連項目:
        `StatusType`

    - #### setStatus

          public void setStatus(StatusType status)

      The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.
      関連項目:
        `StatusType`

    - #### withStatus

          public UpdateAccessKeyRequest withStatus(StatusType status)

      The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.

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

      Constraints:
      Allowed Values: Active, Inactive

      パラメータ:
        `status` - The status you want to assign to the Secret Access Key. `Active` means the key can be used for API calls to AWS, while `Inactive` means the key cannot be used.
      関連項目:
        `StatusType`

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