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
Constructors -
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 theresponsePayloadof the source function. When set totrueand used asonSuccessdestination, the destination function will be invoked with the payload returned by the source function.When set to
trueand used asonFailuredestination, 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:
buildin interfacesoftware.amazon.jsii.Builder<LambdaDestinationOptions>- Returns:
- a new instance of
LambdaDestinationOptions - Throws:
NullPointerException- if any required attribute was not provided
-