public class GetPolicyResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a successful GetPolicy request.
Modifier and Type | Field and Description |
---|---|
private Policy |
policy
A structure containing details about the policy.
|
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(java.lang.Object obj) |
Policy |
getPolicy()
A structure containing details about the policy.
|
int |
hashCode() |
void |
setPolicy(Policy policy)
A structure containing details about the policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyResult |
withPolicy(Policy policy)
A structure containing details about the policy.
|
private Policy policy
A structure containing details about the policy.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetPolicyResult clone()
clone
in class java.lang.Object