Interface TestResult.Builder

    • Method Detail

      • functionSummary

        TestResult.Builder functionSummary​(FunctionSummary functionSummary)

        Contains configuration information and metadata about the CloudFront function that was tested.

        Parameters:
        functionSummary - Contains configuration information and metadata about the CloudFront function that was tested.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • computeUtilization

        TestResult.Builder computeUtilization​(String computeUtilization)

        The amount of time that the function took to run as a percentage of the maximum allowed time. For example, a compute utilization of 35 means that the function completed in 35% of the maximum allowed time.

        Parameters:
        computeUtilization - The amount of time that the function took to run as a percentage of the maximum allowed time. For example, a compute utilization of 35 means that the function completed in 35% of the maximum allowed time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionExecutionLogs

        TestResult.Builder functionExecutionLogs​(Collection<String> functionExecutionLogs)

        Contains the log lines that the function wrote (if any) when running the test.

        Parameters:
        functionExecutionLogs - Contains the log lines that the function wrote (if any) when running the test.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionExecutionLogs

        TestResult.Builder functionExecutionLogs​(String... functionExecutionLogs)

        Contains the log lines that the function wrote (if any) when running the test.

        Parameters:
        functionExecutionLogs - Contains the log lines that the function wrote (if any) when running the test.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionErrorMessage

        TestResult.Builder functionErrorMessage​(String functionErrorMessage)

        If the result of testing the function was an error, this field contains the error message.

        Parameters:
        functionErrorMessage - If the result of testing the function was an error, this field contains the error message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionOutput

        TestResult.Builder functionOutput​(String functionOutput)

        The event object returned by the function. For more information about the structure of the event object, see Event object structure in the Amazon CloudFront Developer Guide.

        Parameters:
        functionOutput - The event object returned by the function. For more information about the structure of the event object, see Event object structure in the Amazon CloudFront Developer Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.