Class GetPolicyResult

java.lang.Object
com.amazonaws.services.lambda.model.GetPolicyResult
All Implemented Interfaces:
Serializable, Cloneable

public class GetPolicyResult extends Object implements Serializable, Cloneable
See Also:
  • Constructor Details

    • GetPolicyResult

      public GetPolicyResult()
  • Method Details

    • setPolicy

      public void setPolicy(String policy)

      The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.

      Parameters:
      policy - The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.
    • getPolicy

      public String getPolicy()

      The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.

      Returns:
      The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.
    • withPolicy

      public GetPolicyResult withPolicy(String policy)

      The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.

      Parameters:
      policy - The resource policy associated with the specified function. The response returns the same as a string using a backslash ("\") as an escape character in the JSON.
      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 GetPolicyResult clone()
      Overrides:
      clone in class Object