Class TestInvokeAuthorizerResult

java.lang.Object
com.amazonaws.services.apigateway.model.TestInvokeAuthorizerResult
All Implemented Interfaces:
Serializable, Cloneable

public class TestInvokeAuthorizerResult extends Object implements Serializable, Cloneable

Represents the response of the test invoke request in for a custom Authorizer

See Also:
  • Constructor Details

    • TestInvokeAuthorizerResult

      public TestInvokeAuthorizerResult()
  • Method Details

    • setClientStatus

      public void setClientStatus(Integer clientStatus)

      The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

      Parameters:
      clientStatus - The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
    • getClientStatus

      public Integer getClientStatus()

      The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

      Returns:
      The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
    • withClientStatus

      public TestInvokeAuthorizerResult withClientStatus(Integer clientStatus)

      The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

      Parameters:
      clientStatus - The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLog

      public void setLog(String log)

      The Amazon API Gateway execution log for the test authorizer request.

      Parameters:
      log - The Amazon API Gateway execution log for the test authorizer request.
    • getLog

      public String getLog()

      The Amazon API Gateway execution log for the test authorizer request.

      Returns:
      The Amazon API Gateway execution log for the test authorizer request.
    • withLog

      public TestInvokeAuthorizerResult withLog(String log)

      The Amazon API Gateway execution log for the test authorizer request.

      Parameters:
      log - The Amazon API Gateway execution log for the test authorizer request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setLatency

      public void setLatency(Long latency)

      The execution latency of the test authorizer request

      Parameters:
      latency - The execution latency of the test authorizer request
    • getLatency

      public Long getLatency()

      The execution latency of the test authorizer request

      Returns:
      The execution latency of the test authorizer request
    • withLatency

      public TestInvokeAuthorizerResult withLatency(Long latency)

      The execution latency of the test authorizer request

      Parameters:
      latency - The execution latency of the test authorizer request
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPrincipalId

      public void setPrincipalId(String principalId)

      The principal identity returned by the Authorizer

      Parameters:
      principalId - The principal identity returned by the Authorizer
    • getPrincipalId

      public String getPrincipalId()

      The principal identity returned by the Authorizer

      Returns:
      The principal identity returned by the Authorizer
    • withPrincipalId

      public TestInvokeAuthorizerResult withPrincipalId(String principalId)

      The principal identity returned by the Authorizer

      Parameters:
      principalId - The principal identity returned by the Authorizer
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPolicy

      public void setPolicy(String policy)

      The policy JSON document returned by the Authorizer

      Parameters:
      policy - The policy JSON document returned by the Authorizer
    • getPolicy

      public String getPolicy()

      The policy JSON document returned by the Authorizer

      Returns:
      The policy JSON document returned by the Authorizer
    • withPolicy

      public TestInvokeAuthorizerResult withPolicy(String policy)

      The policy JSON document returned by the Authorizer

      Parameters:
      policy - The policy JSON document returned by the Authorizer
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAuthorization

      public Map<String,List<String>> getAuthorization()
      Returns:
    • setAuthorization

      public void setAuthorization(Map<String,List<String>> authorization)
      Parameters:
      authorization -
    • withAuthorization

      public TestInvokeAuthorizerResult withAuthorization(Map<String,List<String>> authorization)
      Parameters:
      authorization -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addAuthorizationEntry

      public TestInvokeAuthorizerResult addAuthorizationEntry(String key, List<String> value)
    • clearAuthorizationEntries

      public TestInvokeAuthorizerResult clearAuthorizationEntries()
      Removes all the entries added into Authorization. <p> 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

      Overrides:
      clone in class Object