public static interface TestFunctionResponse.Builder extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<TestFunctionResponse.Builder,TestFunctionResponse>
| Modifier and Type | Method and Description |
|---|---|
default TestFunctionResponse.Builder |
testResult(Consumer<TestResult.Builder> testResult)
An object that represents the result of running the function with the provided event object.
|
TestFunctionResponse.Builder |
testResult(TestResult testResult)
An object that represents the result of running the function with the provided event object.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildTestFunctionResponse.Builder testResult(TestResult testResult)
An object that represents the result of running the function with the provided event object.
testResult - An object that represents the result of running the function with the provided event object.default TestFunctionResponse.Builder testResult(Consumer<TestResult.Builder> testResult)
An object that represents the result of running the function with the provided event object.
This is a convenience that creates an instance of theTestResult.Builder avoiding the need to create
one manually via TestResult.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to testResult(TestResult).testResult - a consumer that will call methods on TestResult.BuildertestResult(TestResult)Copyright © 2021. All rights reserved.