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