public class UpdateUserRequest extends AmazonWebServiceRequest implements Serializable
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 the Using IAM guide.
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.
NOOP
Constructor and Description |
---|
UpdateUserRequest()
Default constructor for a new UpdateUserRequest object.
|
UpdateUserRequest(String userName)
Constructs a new UpdateUserRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNewPath()
New path for the user.
|
String |
getNewUserName()
New name for the user.
|
String |
getUserName()
Name of the user to update.
|
int |
hashCode() |
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public UpdateUserRequest()
public UpdateUserRequest(String userName)
userName
- Name of the user to update. If you're changing the
name of the user, this is the original user name.public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
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.public UpdateUserRequest withUserName(String userName)
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.public String getNewPath()
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setNewPath(String newPath)
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
newPath
- New path for the user. Include this parameter only if you're changing
the user's path.public UpdateUserRequest withNewPath(String newPath)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
newPath
- New path for the user. Include this parameter only if you're changing
the user's path.public String getNewUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setNewUserName(String newUserName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
newUserName
- New name for the user. Include this parameter only if you're changing
the user's name.public UpdateUserRequest withNewUserName(String newUserName)
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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.