public class GetRolePolicyRequest extends AmazonWebServiceRequest implements Serializable
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 .
| Constructor and Description |
|---|
GetRolePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
roleName - Name of the role associated with the policy.public GetRolePolicyRequest withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
roleName - Name of the role associated with the policy.public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName - Name of the policy document to get.public GetRolePolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
policyName - Name of the policy document to get.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.