Class CfnBot.LambdaCodeHookProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.LambdaCodeHookProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.LambdaCodeHookProperty>
- Enclosing interface:
CfnBot.LambdaCodeHookProperty
@Stability(Stable)
public static final class CfnBot.LambdaCodeHookProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.LambdaCodeHookProperty>
A builder for
CfnBot.LambdaCodeHookProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeHookInterfaceVersion
(String codeHookInterfaceVersion) Sets the value ofCfnBot.LambdaCodeHookProperty.getCodeHookInterfaceVersion()
Sets the value ofCfnBot.LambdaCodeHookProperty.getLambdaArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeHookInterfaceVersion
@Stability(Stable) public CfnBot.LambdaCodeHookProperty.Builder codeHookInterfaceVersion(String codeHookInterfaceVersion) Sets the value ofCfnBot.LambdaCodeHookProperty.getCodeHookInterfaceVersion()
- Parameters:
codeHookInterfaceVersion
- The version of the request-response that you want Amazon Lex to use to invoke your Lambda function. This parameter is required.- Returns:
this
-
lambdaArn
Sets the value ofCfnBot.LambdaCodeHookProperty.getLambdaArn()
- Parameters:
lambdaArn
- The Amazon Resource Name (ARN) of the Lambda function. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.LambdaCodeHookProperty>
- Returns:
- a new instance of
CfnBot.LambdaCodeHookProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-