|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.identitymanagement.model.UpdateUserRequest
public class UpdateUserRequest
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)
,
Serialized FormConstructor Summary | |
---|---|
UpdateUserRequest()
Default constructor for a new UpdateUserRequest object. |
|
UpdateUserRequest(String userName)
Constructs a new UpdateUserRequest object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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: (/)|(/[!-]+/)
public void setNewPath(String newPath)
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
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: (/)|(/[!-]+/)
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |