@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRolePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful GetRolePolicy request.
Constructor and Description |
---|
GetRolePolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetRolePolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The name of the policy.
|
String |
getRoleName()
The role the policy is associated with.
|
int |
hashCode() |
void |
setPolicyDocument(String policyDocument)
The policy document.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
void |
setRoleName(String roleName)
The role the policy is associated with.
|
String |
toString()
Returns a string representation of this object.
|
GetRolePolicyResult |
withPolicyDocument(String policyDocument)
The policy document.
|
GetRolePolicyResult |
withPolicyName(String policyName)
The name of the policy.
|
GetRolePolicyResult |
withRoleName(String roleName)
The role the policy is associated with.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setRoleName(String roleName)
The role the policy is associated with.
roleName
- The role the policy is associated with.public String getRoleName()
The role the policy is associated with.
public GetRolePolicyResult withRoleName(String roleName)
The role the policy is associated with.
roleName
- The role the policy is associated with.public void setPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public String getPolicyName()
The name of the policy.
public GetRolePolicyResult withPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public void setPolicyDocument(String policyDocument)
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
policyDocument
- The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
public String getPolicyDocument()
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
public GetRolePolicyResult withPolicyDocument(String policyDocument)
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
policyDocument
- The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
public String toString()
toString
in class Object
Object.toString()
public GetRolePolicyResult clone()