@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 |
getPolicy()
The resource-based policy.
|
String |
getRevisionId()
The revision ID.
|
int |
hashCode() |
void |
setPolicy(String policy)
The resource-based policy.
|
void |
setRevisionId(String revisionId)
The revision ID.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withPolicy(String policy)
The resource-based policy.
|
GetResourcePolicyResult |
withRevisionId(String revisionId)
The revision ID.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The resource-based policy.
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.
policy
- The resource-based policy.public String getPolicy()
The resource-based policy.
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
public GetResourcePolicyResult withPolicy(String policy)
The resource-based policy.
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.
policy
- The resource-based policy.public void setRevisionId(String revisionId)
The revision ID.
revisionId
- The revision ID.public String getRevisionId()
The revision ID.
public GetResourcePolicyResult withRevisionId(String revisionId)
The revision ID.
revisionId
- The revision ID.public String toString()
toString
in class Object
Object.toString()
public GetResourcePolicyResult clone()