@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeResourcePolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeResourcePolicyResult() |
Modifier and Type | Method and Description |
---|---|
DescribeResourcePolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
The AWS Identity and Access Management policy for the resource.
|
int |
hashCode() |
void |
setPolicy(String policy)
The AWS Identity and Access Management policy for the resource.
|
String |
toString()
Returns a string representation of this object.
|
DescribeResourcePolicyResult |
withPolicy(String policy)
The AWS Identity and Access Management policy for the resource.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
The AWS Identity and Access Management policy for the resource.
policy
- The AWS Identity and Access Management policy for the resource.public String getPolicy()
The AWS Identity and Access Management policy for the resource.
public DescribeResourcePolicyResult withPolicy(String policy)
The AWS Identity and Access Management policy for the resource.
policy
- The AWS Identity and Access Management policy for the resource.public String toString()
toString
in class Object
Object.toString()
public DescribeResourcePolicyResult clone()