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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TestFunctionResponse.BuildertestResult(Consumer<TestResult.Builder> testResult)An object that represents the result of running the function with the provided event object.TestFunctionResponse.BuildertestResult(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 Detail
-
testResult
TestFunctionResponse.Builder testResult(TestResult 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
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 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:
testResult(TestResult)
-
-