@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetResourcePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetResourcePolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetResourcePolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyDocument()
The resource policy document.
|
int |
hashCode() |
void |
setPolicyDocument(String policyDocument)
The resource policy document.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withPolicyDocument(String policyDocument)
The resource policy document.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicyDocument(String policyDocument)
The resource policy document.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policyDocument
- The resource policy document.public String getPolicyDocument()
The resource policy document.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public GetResourcePolicyResult withPolicyDocument(String policyDocument)
The resource policy document.
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
policyDocument
- The resource policy document.public String toString()
toString
in class Object
Object.toString()
public GetResourcePolicyResult clone()