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:
  • Constructor Details

    • GetKeyPolicyResult

      public GetKeyPolicyResult()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public GetKeyPolicyResult clone()
      Overrides:
      clone in class Object