com.amazonaws.services.identitymanagement.model

## クラス CreateAccessKeyRequest

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

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

      public class CreateAccessKeyRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateAccessKey operation`.

  Creates a new AWS Secret Access Key and corresponding AWS Access Key ID for the specified user. The default status for new keys is `Active` .

  If you do not specify a user name, IAM determines the user name implicitly based on the AWS Access Key ID signing the request. Because this action works for access keys under the AWS account, you can use this API to manage root credentials even if the AWS account has no associated users.

  For information about limits on the number of keys you can create, see Limitations on IAM Entities in Using AWS Identity and Access Management .

  IMPORTANT:To ensure the security of your AWS account, the Secret Access Key is accessible only during key and user creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret key is lost, you can delete the access keys for the associated user and then create new keys.

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

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

    コンストラクタ
    コンストラクタと説明
    `CreateAccessKeyRequest()` Default constructor for a new CreateAccessKeyRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getUserName()` The user name that the new key will belong to.
    `int` | `hashCode()`
    `void` | `setUserName(java.lang.String userName)` The user name that the new key will belong to.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateAccessKeyRequest` | `withUserName(java.lang.String userName)` The user name that the new key will belong to.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### CreateAccessKeyRequest

          public CreateAccessKeyRequest()

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

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      The user name that the new key will belong to.

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

      戻り値:
        The user name that the new key will belong to.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      The user name that the new key will belong to.

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

      パラメータ:
        `userName` - The user name that the new key will belong to.

    - #### withUserName

          public CreateAccessKeyRequest withUserName(java.lang.String userName)

      The user name that the new key will belong to.

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

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

      パラメータ:
        `userName` - The user name that the new key will belong to.

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