public class GetKeyPolicyResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policy
A policy document in JSON format.
|
Constructor and Description |
---|
GetKeyPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetKeyPolicyResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicy()
A policy document in JSON format.
|
int |
hashCode() |
void |
setPolicy(java.lang.String policy)
A policy document in JSON format.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetKeyPolicyResult |
withPolicy(java.lang.String policy)
A policy document in JSON format.
|
public void setPolicy(java.lang.String policy)
A policy document in JSON format.
policy
- A policy document in JSON format.public java.lang.String getPolicy()
A policy document in JSON format.
public GetKeyPolicyResult withPolicy(java.lang.String policy)
A policy document in JSON format.
policy
- A policy document in JSON format.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 GetKeyPolicyResult clone()
clone
in class java.lang.Object