Package com.amazonaws.services.kms.model
Class GetKeyPolicyResult
- java.lang.Object
-
- com.amazonaws.services.kms.model.GetKeyPolicyResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetKeyPolicyResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetKeyPolicyResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetKeyPolicyResultclone()booleanequals(Object obj)StringgetPolicy()A policy document in JSON format.inthashCode()voidsetPolicy(String policy)A policy document in JSON format.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetKeyPolicyResultwithPolicy(String policy)A policy document in JSON format.
-
-
-
Method Detail
-
setPolicy
public void setPolicy(String policy)
A policy document in JSON format.
- Parameters:
policy- A policy document in JSON format.
-
getPolicy
public String getPolicy()
A policy document in JSON format.
- Returns:
- A policy document in JSON format.
-
withPolicy
public GetKeyPolicyResult withPolicy(String policy)
A policy document in JSON format.
- Parameters:
policy- A policy document in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetKeyPolicyResult clone()
-
-