Interface TestInvokeMethodResponse.Builder

    • Method Detail

      • status

        TestInvokeMethodResponse.Builder status​(Integer status)

        The HTTP status code.

        Parameters:
        status - The HTTP status code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • body

        TestInvokeMethodResponse.Builder body​(String body)

        The body of the HTTP response.

        Parameters:
        body - The body of the HTTP response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headers

        TestInvokeMethodResponse.Builder headers​(Map<String,​String> headers)

        The headers of the HTTP response.

        Parameters:
        headers - The headers of the HTTP response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • multiValueHeaders

        TestInvokeMethodResponse.Builder multiValueHeaders​(Map<String,​? extends Collection<String>> multiValueHeaders)

        The headers of the HTTP response as a map from string to list of values.

        Parameters:
        multiValueHeaders - The headers of the HTTP response as a map from string to list of values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • log

        TestInvokeMethodResponse.Builder log​(String log)

        The API Gateway execution log for the test invoke request.

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

        TestInvokeMethodResponse.Builder latency​(Long latency)

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

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