public static interface TestResult.Builder extends SdkPojo, CopyableBuilder<TestResult.Builder,TestResult>
Modifier and Type | Method and Description |
---|---|
TestResult.Builder |
computeUtilization(String computeUtilization)
The amount of time that the function took to run as a percentage of the maximum allowed time.
|
TestResult.Builder |
functionErrorMessage(String functionErrorMessage)
If the result of testing the function was an error, this field contains the error message.
|
TestResult.Builder |
functionExecutionLogs(Collection<String> functionExecutionLogs)
Contains the log lines that the function wrote (if any) when running the test.
|
TestResult.Builder |
functionExecutionLogs(String... functionExecutionLogs)
Contains the log lines that the function wrote (if any) when running the test.
|
TestResult.Builder |
functionOutput(String functionOutput)
The event object returned by the function.
|
default TestResult.Builder |
functionSummary(Consumer<FunctionSummary.Builder> functionSummary)
Contains configuration information and metadata about the CloudFront function that was tested.
|
TestResult.Builder |
functionSummary(FunctionSummary functionSummary)
Contains configuration information and metadata about the CloudFront function that was tested.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
TestResult.Builder functionSummary(FunctionSummary functionSummary)
Contains configuration information and metadata about the CloudFront function that was tested.
functionSummary
- Contains configuration information and metadata about the CloudFront function that was tested.default TestResult.Builder functionSummary(Consumer<FunctionSummary.Builder> functionSummary)
Contains configuration information and metadata about the CloudFront function that was tested.
This is a convenience that creates an instance of theFunctionSummary.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)
.functionSummary
- a consumer that will call methods on FunctionSummary.Builder
functionSummary(FunctionSummary)
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.
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.TestResult.Builder functionExecutionLogs(Collection<String> functionExecutionLogs)
Contains the log lines that the function wrote (if any) when running the test.
functionExecutionLogs
- Contains the log lines that the function wrote (if any) when running the test.TestResult.Builder functionExecutionLogs(String... functionExecutionLogs)
Contains the log lines that the function wrote (if any) when running the test.
functionExecutionLogs
- Contains the log lines that the function wrote (if any) when running the test.TestResult.Builder functionErrorMessage(String functionErrorMessage)
If the result of testing the function was an error, this field contains the error message.
functionErrorMessage
- If the result of testing the function was an error, this field contains the error message.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.
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.Copyright © 2021. All rights reserved.