Interface TestFunctionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudFrontResponse.Builder
,CopyableBuilder<TestFunctionResponse.Builder,
,TestFunctionResponse> SdkBuilder<TestFunctionResponse.Builder,
,TestFunctionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
TestFunctionResponse
public static interface TestFunctionResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<TestFunctionResponse.Builder,TestFunctionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TestFunctionResponse.Builder
testResult
(Consumer<TestResult.Builder> testResult) An object that represents the result of running the function with the provided event object.testResult
(TestResult testResult) An object that represents the result of running the function with the provided event object.Methods inherited from interface software.amazon.awssdk.services.cloudfront.model.CloudFrontResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
testResult
An object that represents the result of running the function with the provided event object.
- Parameters:
testResult
- An object that represents the result of running the function with the provided event object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testResult
An object that represents the result of running the function with the provided event object.
This is a convenience method that creates an instance of theTestResult.Builder
avoiding the need to create one manually viaTestResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totestResult(TestResult)
.- Parameters:
testResult
- a consumer that will call methods onTestResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-