Interface TestInvokeAuthorizerResponse.Builder

    • Method Detail

      • clientStatus

        TestInvokeAuthorizerResponse.Builder clientStatus​(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.
      • log

        TestInvokeAuthorizerResponse.Builder log​(String log)

        The API Gateway execution log for the test authorizer request.

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

        TestInvokeAuthorizerResponse.Builder latency​(Long latency)

        The execution latency, in ms, of the test authorizer request.

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

        TestInvokeAuthorizerResponse.Builder principalId​(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.
      • policy

        TestInvokeAuthorizerResponse.Builder policy​(String policy)

        The JSON policy document returned by the Authorizer

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

        TestInvokeAuthorizerResponse.Builder claims​(Map<String,​String> claims)

        The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

        Parameters:
        claims - The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.