@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()
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withPolicy(String policy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setPolicy(String policy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
policy - A JSON-formatted string for an Amazon Web Services resource-based policy.public String getPolicy()
A JSON-formatted string for an Amazon Web Services resource-based policy.
public GetResourcePolicyResult withPolicy(String policy)
A JSON-formatted string for an Amazon Web Services resource-based policy.
policy - A JSON-formatted string for an Amazon Web Services resource-based policy.public String toString()
toString in class ObjectObject.toString()public GetResourcePolicyResult clone()