@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a successful GetPolicy request.
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(Object obj) |
Policy |
getPolicy()
A structure containing details about the policy.
|
int |
hashCode() |
void |
setPolicy(Policy policy)
A structure containing details about the policy.
|
String |
toString()
Returns a string representation of this object.
|
GetPolicyResult |
withPolicy(Policy policy)
A structure containing details about the policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(Policy policy)
A structure containing details about the policy.
policy
- A structure containing details about the policy.public Policy getPolicy()
A structure containing details about the policy.
public GetPolicyResult withPolicy(Policy policy)
A structure containing details about the policy.
policy
- A structure containing details about the policy.public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()