Class CfnBotAlias.CodeHookSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBotAlias.CodeHookSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotAlias.CodeHookSpecificationProperty>
- Enclosing interface:
CfnBotAlias.CodeHookSpecificationProperty
@Stability(Stable)
public static final class CfnBotAlias.CodeHookSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotAlias.CodeHookSpecificationProperty>
A builder for
CfnBotAlias.CodeHookSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.lambdaCodeHook
(IResolvable lambdaCodeHook) Sets the value ofCfnBotAlias.CodeHookSpecificationProperty.getLambdaCodeHook()
lambdaCodeHook
(CfnBotAlias.LambdaCodeHookProperty lambdaCodeHook) Sets the value ofCfnBotAlias.CodeHookSpecificationProperty.getLambdaCodeHook()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaCodeHook
@Stability(Stable) public CfnBotAlias.CodeHookSpecificationProperty.Builder lambdaCodeHook(IResolvable lambdaCodeHook) Sets the value ofCfnBotAlias.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 CfnBotAlias.CodeHookSpecificationProperty.Builder lambdaCodeHook(CfnBotAlias.LambdaCodeHookProperty lambdaCodeHook) Sets the value ofCfnBotAlias.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<CfnBotAlias.CodeHookSpecificationProperty>
- Returns:
- a new instance of
CfnBotAlias.CodeHookSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-