Interface TestResult.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TestResult.Builder,TestResult>, SdkBuilder<TestResult.Builder,TestResult>, SdkPojo
Enclosing class:
TestResult

public static interface TestResult.Builder extends SdkPojo, CopyableBuilder<TestResult.Builder,TestResult>
  • Method Details

    • 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.
    • functionSummary

      default TestResult.Builder functionSummary(Consumer<FunctionSummary.Builder> functionSummary)

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

      This is a convenience method that creates an instance of the FunctionSummary.Builder avoiding the need to create one manually via FunctionSummary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to functionSummary(FunctionSummary).

      Parameters:
      functionSummary - a consumer that will call methods on FunctionSummary.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.