@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()
Details of the resource policy.
|
int |
hashCode() |
void |
setPolicy(String policy)
Details of the resource policy.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withPolicy(String policy)
Details of the resource policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
Details of the resource policy. This is formatted as a JSON string.
policy
- Details of the resource policy. This is formatted as a JSON string.public String getPolicy()
Details of the resource policy. This is formatted as a JSON string.
public GetResourcePolicyResult withPolicy(String policy)
Details of the resource policy. This is formatted as a JSON string.
policy
- Details of the resource policy. This is formatted as a JSON string.public String toString()
toString
in class Object
Object.toString()
public GetResourcePolicyResult clone()