Package com.amazonaws.services.kms.model
Class GetKeyPolicyResult
java.lang.Object
com.amazonaws.services.kms.model.GetKeyPolicyResult
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A policy document in JSON format.int
hashCode()
void
A policy document in JSON format.toString()
Returns a string representation of this object; useful for testing and debugging.withPolicy
(String policy) A policy document in JSON format.
-
Constructor Details
-
GetKeyPolicyResult
public GetKeyPolicyResult()
-
-
Method Details
-
setPolicy
A policy document in JSON format.
- Parameters:
policy
- A policy document in JSON format.
-
getPolicy
A policy document in JSON format.
- Returns:
- A policy document in JSON format.
-
withPolicy
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-