com.amazonaws.services.identitymanagement.model

## クラス UpdateUserRequest

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

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

      public class UpdateUserRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `UpdateUser operation`.

  Updates the name and/or the path of the specified user.

  IMPORTANT: You should understand the implications of changing a user's path or name. For more information, see Renaming Users and Groups in Using AWS Identity and Access Management.

  NOTE:To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.

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

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

    コンストラクタ
    コンストラクタと説明
    `UpdateUserRequest()` Default constructor for a new UpdateUserRequest object.
    `UpdateUserRequest(java.lang.String userName)` Constructs a new UpdateUserRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getNewPath()` New path for the user.
    `java.lang.String` | `getNewUserName()` New name for the user.
    `java.lang.String` | `getUserName()` Name of the user to update.
    `int` | `hashCode()`
    `void` | `setNewPath(java.lang.String newPath)` New path for the user.
    `void` | `setNewUserName(java.lang.String newUserName)` New name for the user.
    `void` | `setUserName(java.lang.String userName)` Name of the user to update.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `UpdateUserRequest` | `withNewPath(java.lang.String newPath)` New path for the user.
    `UpdateUserRequest` | `withNewUserName(java.lang.String newUserName)` New name for the user.
    `UpdateUserRequest` | `withUserName(java.lang.String userName)` Name of the user to update.

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### UpdateUserRequest

          public UpdateUserRequest()

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

    - #### UpdateUserRequest

          public UpdateUserRequest(java.lang.String userName)

      Constructs a new UpdateUserRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `userName` - Name of the user to update. If you're changing the name of the user, this is the original user name.

  - ### メソッドの詳細

    - #### getUserName

          public java.lang.String getUserName()

      Name of the user to update. If you're changing the name of the user, this is the original user name.

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

      戻り値:
        Name of the user to update. If you're changing the name of the user, this is the original user name.

    - #### setUserName

          public void setUserName(java.lang.String userName)

      Name of the user to update. If you're changing the name of the user, this is the original user name.

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

      パラメータ:
        `userName` - Name of the user to update. If you're changing the name of the user, this is the original user name.

    - #### withUserName

          public UpdateUserRequest withUserName(java.lang.String userName)

      Name of the user to update. If you're changing the name of the user, this is the original user name.

      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 to update. If you're changing the name of the user, this is the original user name.

    - #### getNewPath

          public java.lang.String getNewPath()

      New path for the user. Include this parameter only if you're changing the user's path.

      Constraints:
      Length: 1 - 512
      Pattern: (/)|(/[!-]+/)

      戻り値:
        New path for the user. Include this parameter only if you're changing the user's path.

    - #### setNewPath

          public void setNewPath(java.lang.String newPath)

      New path for the user. Include this parameter only if you're changing the user's path.

      Constraints:
      Length: 1 - 512
      Pattern: (/)|(/[!-]+/)

      パラメータ:
        `newPath` - New path for the user. Include this parameter only if you're changing the user's path.

    - #### withNewPath

          public UpdateUserRequest withNewPath(java.lang.String newPath)

      New path for the user. Include this parameter only if you're changing the user's path.

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

      Constraints:
      Length: 1 - 512
      Pattern: (/)|(/[!-]+/)

      パラメータ:
        `newPath` - New path for the user. Include this parameter only if you're changing the user's path.

    - #### getNewUserName

          public java.lang.String getNewUserName()

      New name for the user. Include this parameter only if you're changing the user's name.

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

      戻り値:
        New name for the user. Include this parameter only if you're changing the user's name.

    - #### setNewUserName

          public void setNewUserName(java.lang.String newUserName)

      New name for the user. Include this parameter only if you're changing the user's name.

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

      パラメータ:
        `newUserName` - New name for the user. Include this parameter only if you're changing the user's name.

    - #### withNewUserName

          public UpdateUserRequest withNewUserName(java.lang.String newUserName)

      New name for the user. Include this parameter only if you're changing the user's name.

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

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

      パラメータ:
        `newUserName` - New name for the user. Include this parameter only if you're changing the user's name.

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