Interface TestFunctionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudFrontResponse.Builder,CopyableBuilder<TestFunctionResponse.Builder,,TestFunctionResponse> SdkBuilder<TestFunctionResponse.Builder,,TestFunctionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
TestFunctionResponse
@Mutable
@NotThreadSafe
public static interface TestFunctionResponse.Builder
extends CloudFrontResponse.Builder, SdkPojo, CopyableBuilder<TestFunctionResponse.Builder,TestFunctionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TestFunctionResponse.BuildertestResult(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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaTestResult.builder().When the
Consumercompletes,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:
-