@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 policy for the resource identified by the input ARN parameter.
|
int |
hashCode() |
void |
setPolicy(String policy)
The resource policy for the resource identified by the input ARN parameter.
|
String |
toString()
Returns a string representation of this object.
|
GetResourcePolicyResult |
withPolicy(String policy)
The resource policy for the resource identified by the input ARN parameter.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setPolicy(String policy)
The resource policy for the resource identified by the input ARN parameter.
policy - The resource policy for the resource identified by the input ARN parameter.public String getPolicy()
The resource policy for the resource identified by the input ARN parameter.
public GetResourcePolicyResult withPolicy(String policy)
The resource policy for the resource identified by the input ARN parameter.
policy - The resource policy for the resource identified by the input ARN parameter.public String toString()
toString in class ObjectObject.toString()public GetResourcePolicyResult clone()