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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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(String... functionExecutionLogs)
Contains the log lines that the function wrote (if any) when running the test.TestResult.Builder
functionExecutionLogs(Collection<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.-
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 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.
-
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 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:
functionSummary(FunctionSummary)
-
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.
-
-