public class GetRolePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetRolePolicy operation
.
Retrieves the specified inline policy document that is embedded with the specified role.
A role can also have managed policies attached to it. To retrieve a managed policy document that is attached to a role, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities .
NOOP
Constructor and Description |
---|
GetRolePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
GetRolePolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The name of the policy document to get.
|
String |
getRoleName()
The name of the role associated with the policy.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name of the policy document to get.
|
void |
setRoleName(String roleName)
The 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)
The name of the policy document to get.
|
GetRolePolicyRequest |
withRoleName(String roleName)
The name of the role associated with the policy.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The 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
- The 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
- The 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
- The name of the policy document to get.public String toString()
toString
in class Object
Object.toString()
public GetRolePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.