Class LambdaDestinationOptions.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.destinations.LambdaDestinationOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaDestinationOptions>
- Enclosing interface:
LambdaDestinationOptions
@Stability(Stable)
public static final class LambdaDestinationOptions.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaDestinationOptions>
A builder for
LambdaDestinationOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.responseOnly
(Boolean responseOnly) Sets the value ofLambdaDestinationOptions.getResponseOnly()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
responseOnly
Sets the value ofLambdaDestinationOptions.getResponseOnly()
- Parameters:
responseOnly
- Whether the destination function receives only theresponsePayload
of the source function. When set totrue
and used asonSuccess
destination, the destination function will be invoked with the payload returned by the source function.When set to
true
and used asonFailure
destination, the destination function will be invoked with the error object returned by source function.See the README of this module to see a full explanation of this option.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaDestinationOptions>
- Returns:
- a new instance of
LambdaDestinationOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-