Interface TestResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TestResult.Builder,
,TestResult> SdkBuilder<TestResult.Builder,
,TestResult> SdkPojo
- Enclosing class:
TestResult
-
Method Summary
Modifier and TypeMethodDescriptioncomputeUtilization
(String computeUtilization) The amount of time that the function took to run as a percentage of the maximum allowed time.functionErrorMessage
(String functionErrorMessage) If the result of testing the function was an error, this field contains the error message.functionExecutionLogs
(String... functionExecutionLogs) Contains the log lines that the function wrote (if any) when running the test.functionExecutionLogs
(Collection<String> functionExecutionLogs) Contains the log lines that the function wrote (if any) when running the test.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.functionSummary
(FunctionSummary functionSummary) Contains configuration information and metadata about the CloudFront function that was tested.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
Contains configuration information and metadata about the CloudFront function that was tested.
This is a convenience method that creates an instance of theFunctionSummary.Builder
avoiding the need to create one manually viaFunctionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofunctionSummary(FunctionSummary)
.- Parameters:
functionSummary
- a consumer that will call methods onFunctionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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.
-