Class HandlerConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.HandlerConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HandlerConfig>
- Enclosing interface:
HandlerConfig
@Stability(Stable)
public static final class HandlerConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HandlerConfig>
A builder for
HandlerConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataSource
(AppSyncBackedDataSource dataSource) Sets the value ofHandlerConfig.getDataSource()
Sets the value ofHandlerConfig.getDirect()
lambdaInvokeType
(LambdaInvokeType lambdaInvokeType) Sets the value ofHandlerConfig.getLambdaInvokeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSource
Sets the value ofHandlerConfig.getDataSource()
- Parameters:
dataSource
- The Event Handler data source.- Returns:
this
-
direct
Sets the value ofHandlerConfig.getDirect()
- Parameters:
direct
- If the Event Handler should invoke the data source directly.- Returns:
this
-
lambdaInvokeType
Sets the value ofHandlerConfig.getLambdaInvokeType()
- Parameters:
lambdaInvokeType
- The Lambda invocation type for direct integrations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HandlerConfig>
- Returns:
- a new instance of
HandlerConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-