Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class GetUserRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.GetUserRequest
All Implemented Interfaces:
Serializable

public class GetUserRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the GetUser operation.

Retrieves information about the specified user, including the user's path, GUID, 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.

See Also:
AmazonIdentityManagement.getUser(GetUserRequest), Serialized Form

Constructor Summary
GetUserRequest()
          Default constructor for a new GetUserRequest object.
 
Method Summary
 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.
 
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

GetUserRequest

public GetUserRequest()
Default constructor for a new GetUserRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getUserName

public String getUserName()
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.

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

Returns:
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.


setUserName

public void setUserName(String 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.

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

Parameters:
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.


withUserName

public GetUserRequest withUserName(String 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.

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 get information about.

This parameter is optional. If it is not included, it defaults to the user making the request.

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()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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