com.amazonaws.services.identitymanagement.model
Class UpdateUserRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.UpdateUserRequest

public class UpdateUserRequest
extends AmazonWebServiceRequest

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.

See Also:
AmazonIdentityManagement.updateUser(UpdateUserRequest)

Constructor Summary
UpdateUserRequest()
           
 
Method Summary
 String getNewPath()
          New path for the User.
 String getNewUserName()
          New name for the User.
 String getUserName()
          Name of the User to update.
 void setNewPath(String newPath)
          New path for the User.
 void setNewUserName(String newUserName)
          New name for the User.
 void setUserName(String userName)
          Name of the User to update.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UpdateUserRequest withNewPath(String newPath)
          New path for the User.
 UpdateUserRequest withNewUserName(String newUserName)
          New name for the User.
 UpdateUserRequest withUserName(String userName)
          Name of the User to update.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateUserRequest

public UpdateUserRequest()
Method Detail

getUserName

public 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+=,.@-]*

Returns:
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(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+=,.@-]*

Parameters:
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(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+=,.@-]*

Parameters:
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 updated object so that method calls can be chained together.

getNewPath

public String getNewPath()
New path for the User. Include this parameter only if you're changing the User's path.

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

Returns:
New path for the User. Include this parameter only if you're changing the User's path.

setNewPath

public void setNewPath(String newPath)
New path for the User. Include this parameter only if you're changing the User's path.

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

Parameters:
newPath - New path for the User. Include this parameter only if you're changing the User's path.

withNewPath

public UpdateUserRequest withNewPath(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: (/)|(/[!-]+/)

Parameters:
newPath - New path for the User. Include this parameter only if you're changing the User's path.
Returns:
A reference to this updated object so that method calls can be chained together.

getNewUserName

public String getNewUserName()
New name for the User. Include this parameter only if you're changing the User's name.

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

Returns:
New name for the User. Include this parameter only if you're changing the User's name.

setNewUserName

public void setNewUserName(String newUserName)
New name for the User. Include this parameter only if you're changing the User's name.

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

Parameters:
newUserName - New name for the User. Include this parameter only if you're changing the User's name.

withNewUserName

public UpdateUserRequest withNewUserName(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 - 128
Pattern: [\w+=,.@-]*

Parameters:
newUserName - New name for the User. Include this parameter only if you're changing the User's name.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.