@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetGroupPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful GetGroupPolicy request.
Constructor and Description |
---|
GetGroupPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetGroupPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getGroupName()
The group the policy is associated with.
|
String |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The name of the policy.
|
int |
hashCode() |
void |
setGroupName(String groupName)
The group the policy is associated with.
|
void |
setPolicyDocument(String policyDocument)
The policy document.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
String |
toString()
Returns a string representation of this object.
|
GetGroupPolicyResult |
withGroupName(String groupName)
The group the policy is associated with.
|
GetGroupPolicyResult |
withPolicyDocument(String policyDocument)
The policy document.
|
GetGroupPolicyResult |
withPolicyName(String policyName)
The name of the policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setGroupName(String groupName)
The group the policy is associated with.
groupName
- The group the policy is associated with.public String getGroupName()
The group the policy is associated with.
public GetGroupPolicyResult withGroupName(String groupName)
The group the policy is associated with.
groupName
- The group 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 GetGroupPolicyResult 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 GetGroupPolicyResult 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 GetGroupPolicyResult clone()