Class TestInvokeAuthorizerResult

    • Constructor Detail

      • TestInvokeAuthorizerResult

        public TestInvokeAuthorizerResult()
    • Method Detail

      • 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.
      • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object