public class GetUserRequest extends AmazonWebServiceRequest implements Serializable
GetUser operation
.
Retrieves information about the specified user, including the user's path, unique ID, and ARN.
If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request.
NOOP
Constructor and Description |
---|
GetUserRequest()
Default constructor for a new GetUserRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getUserName()
Name of the user to get information about.
|
int |
hashCode() |
void |
setUserName(String userName)
Name of the user to get information about.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetUserRequest |
withUserName(String userName)
Name of the user to get information about.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public GetUserRequest()
public String getUserName()
This parameter is optional. If it is not included, it defaults to the user making the request.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
This parameter is optional. If it is not included, it defaults to the user making the request.
public void setUserName(String userName)
This parameter is optional. If it is not included, it defaults to the user making the request.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user to get information about. This parameter is optional. If it is not included, it defaults to the user making the request.
public GetUserRequest withUserName(String userName)
This parameter is optional. If it is not included, it defaults to the user making the request.
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 get information about. This parameter is optional. If it is not included, it defaults to the user making the request.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.