Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class GetRolePolicyRequest

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

public class GetRolePolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the GetRolePolicy operation.

Retrieves the specified policy document for the specified role. For more information about roles, go to Working with Roles .

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.getRolePolicy(GetRolePolicyRequest), Serialized Form

Constructor Summary
GetRolePolicyRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getPolicyName()
          Name of the policy document to get.
 String getRoleName()
          Name of the role associated with the policy.
 int hashCode()
           
 void setPolicyName(String policyName)
          Name of the policy document to get.
 void setRoleName(String roleName)
          Name of the role associated with the policy.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetRolePolicyRequest withPolicyName(String policyName)
          Name of the policy document to get.
 GetRolePolicyRequest withRoleName(String roleName)
          Name of the role associated with the policy.
 
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

GetRolePolicyRequest

public GetRolePolicyRequest()
Method Detail

getRoleName

public String getRoleName()
Name of the role associated with the policy.

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

Returns:
Name of the role associated with the policy.

setRoleName

public void setRoleName(String roleName)
Name of the role associated with the policy.

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

Parameters:
roleName - Name of the role associated with the policy.

withRoleName

public GetRolePolicyRequest withRoleName(String roleName)
Name of the role associated with the policy.

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

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

Parameters:
roleName - Name of the role associated with the policy.
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 GetRolePolicyRequest 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.