public class GetUserRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetUser operation
.
Retrieves information about the specified user, including the user's creation date, 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 used to sign the request.
NOOP
Constructor and Description |
---|
GetUserRequest()
Default constructor for a new GetUserRequest object.
|
Modifier and Type | Method and Description |
---|---|
GetUserRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getUserName()
The name of the user to get information about.
|
int |
hashCode() |
void |
setUserName(String userName)
The 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)
The name of the user to get information about.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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
- The 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
- The 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()
public GetUserRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.