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 GetKeyPolicyResult
clone()
boolean
equals(Object obj)
String
getPolicy()
A policy document in JSON format.int
hashCode()
void
setPolicy(String policy)
A policy document in JSON format.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetKeyPolicyResult
withPolicy(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetKeyPolicyResult clone()
-
-