Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class GetUserPolicyRequest

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

public class GetUserPolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the GetUserPolicy operation.

Retrieves the specified policy document for the specified user. The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html .

See Also:
AmazonIdentityManagement.getUserPolicy(GetUserPolicyRequest), Serialized Form

Constructor Summary
GetUserPolicyRequest()
          Default constructor for a new GetUserPolicyRequest object.
GetUserPolicyRequest(String userName, String policyName)
          Constructs a new GetUserPolicyRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getPolicyName()
          Name of the policy document to get.
 String getUserName()
          Name of the user who the policy is associated with.
 int hashCode()
           
 void setPolicyName(String policyName)
          Name of the policy document to get.
 void setUserName(String userName)
          Name of the user who the policy is associated with.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetUserPolicyRequest withPolicyName(String policyName)
          Name of the policy document to get.
 GetUserPolicyRequest withUserName(String userName)
          Name of the user who the policy is associated with.
 
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

GetUserPolicyRequest

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


GetUserPolicyRequest

public GetUserPolicyRequest(String userName,
                            String policyName)
Constructs a new GetUserPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
userName - Name of the user who the policy is associated with.
policyName - Name of the policy document to get.
Method Detail

getUserName

public String getUserName()
Name of the user who the policy is associated with.

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

Returns:
Name of the user who the policy is associated with.

setUserName

public void setUserName(String userName)
Name of the user who the policy is associated with.

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

Parameters:
userName - Name of the user who the policy is associated with.

withUserName

public GetUserPolicyRequest withUserName(String userName)
Name of the user who the policy is associated with.

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 who the policy is associated with.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyName

public String getPolicyName()
Name of the policy document to get.

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

Returns:
Name of the policy document to get.

setPolicyName

public void setPolicyName(String policyName)
Name of the policy document to get.

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

Parameters:
policyName - Name of the policy document to get.

withPolicyName

public GetUserPolicyRequest withPolicyName(String policyName)
Name of the policy document to get.

Returns a reference to this object so that method calls can be chained together.

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

Parameters:
policyName - Name of the policy document to get.
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.