Class CfnBot.CodeHookSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.CodeHookSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.CodeHookSpecificationProperty>
- Enclosing interface:
CfnBot.CodeHookSpecificationProperty
@Stability(Stable)
public static final class CfnBot.CodeHookSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.CodeHookSpecificationProperty>
A builder for
CfnBot.CodeHookSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.lambdaCodeHook
(IResolvable lambdaCodeHook) Sets the value ofCfnBot.CodeHookSpecificationProperty.getLambdaCodeHook()
lambdaCodeHook
(CfnBot.LambdaCodeHookProperty lambdaCodeHook) Sets the value ofCfnBot.CodeHookSpecificationProperty.getLambdaCodeHook()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaCodeHook
@Stability(Stable) public CfnBot.CodeHookSpecificationProperty.Builder lambdaCodeHook(IResolvable lambdaCodeHook) Sets the value ofCfnBot.CodeHookSpecificationProperty.getLambdaCodeHook()
- Parameters:
lambdaCodeHook
- Specifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot. This parameter is required.- Returns:
this
-
lambdaCodeHook
@Stability(Stable) public CfnBot.CodeHookSpecificationProperty.Builder lambdaCodeHook(CfnBot.LambdaCodeHookProperty lambdaCodeHook) Sets the value ofCfnBot.CodeHookSpecificationProperty.getLambdaCodeHook()
- Parameters:
lambdaCodeHook
- Specifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.CodeHookSpecificationProperty>
- Returns:
- a new instance of
CfnBot.CodeHookSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-