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:
java.io.Serializable

public class GetRolePolicyRequest
extends AmazonWebServiceRequest
implements java.io.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(java.lang.Object obj)
           
 java.lang.String getPolicyName()
          Name of the policy document to get.
 java.lang.String getRoleName()
          Name of the role associated with the policy.
 int hashCode()
           
 void setPolicyName(java.lang.String policyName)
          Name of the policy document to get.
 void setRoleName(java.lang.String roleName)
          Name of the role associated with the policy.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetRolePolicyRequest withPolicyName(java.lang.String policyName)
          Name of the policy document to get.
 GetRolePolicyRequest withRoleName(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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