@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 document attached to the resource, which can be a table or stream, in JSON format.
|
String |
getRevisionId()
A unique string that represents the revision ID of the policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
|
void |
setRevisionId(String revisionId)
A unique string that represents the revision ID of the policy.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withPolicy(String policy)
The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
|
GetResourcePolicyResult |
withRevisionId(String revisionId)
A unique string that represents the revision ID of the policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
policy
- The resource-based policy document attached to the resource, which can be a table or stream, in JSON
format.public String getPolicy()
The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
public GetResourcePolicyResult withPolicy(String policy)
The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
policy
- The resource-based policy document attached to the resource, which can be a table or stream, in JSON
format.public void setRevisionId(String revisionId)
A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
revisionId
- A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make
sure to always use string comparison logic.public String getRevisionId()
A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
public GetResourcePolicyResult withRevisionId(String revisionId)
A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make sure to always use string comparison logic.
revisionId
- A unique string that represents the revision ID of the policy. If you are comparing revision IDs, make
sure to always use string comparison logic.public String toString()
toString
in class Object
Object.toString()
public GetResourcePolicyResult clone()
Copyright © 2024. All rights reserved.