Class CfnBot.DialogCodeHookInvocationSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.DialogCodeHookInvocationSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.DialogCodeHookInvocationSettingProperty>
- Enclosing interface:
CfnBot.DialogCodeHookInvocationSettingProperty
@Stability(Stable)
public static final class CfnBot.DialogCodeHookInvocationSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.DialogCodeHookInvocationSettingProperty>
A builder for
CfnBot.DialogCodeHookInvocationSettingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.enableCodeHookInvocation
(Boolean enableCodeHookInvocation) enableCodeHookInvocation
(IResolvable enableCodeHookInvocation) invocationLabel
(String invocationLabel) Sets the value ofCfnBot.DialogCodeHookInvocationSettingProperty.getInvocationLabel()
Sets the value ofCfnBot.DialogCodeHookInvocationSettingProperty.getIsActive()
isActive
(IResolvable isActive) Sets the value ofCfnBot.DialogCodeHookInvocationSettingProperty.getIsActive()
postCodeHookSpecification
(IResolvable postCodeHookSpecification) postCodeHookSpecification
(CfnBot.PostDialogCodeHookInvocationSpecificationProperty postCodeHookSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enableCodeHookInvocation
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder enableCodeHookInvocation(Boolean enableCodeHookInvocation) - Parameters:
enableCodeHookInvocation
- Indicates whether a Lambda function should be invoked for the dialog. This parameter is required.- Returns:
this
-
enableCodeHookInvocation
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder enableCodeHookInvocation(IResolvable enableCodeHookInvocation) - Parameters:
enableCodeHookInvocation
- Indicates whether a Lambda function should be invoked for the dialog. This parameter is required.- Returns:
this
-
isActive
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBot.DialogCodeHookInvocationSettingProperty.getIsActive()
- Parameters:
isActive
- Determines whether a dialog code hook is used when the intent is activated. This parameter is required.- Returns:
this
-
isActive
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBot.DialogCodeHookInvocationSettingProperty.getIsActive()
- Parameters:
isActive
- Determines whether a dialog code hook is used when the intent is activated. This parameter is required.- Returns:
this
-
postCodeHookSpecification
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder postCodeHookSpecification(IResolvable postCodeHookSpecification) - Parameters:
postCodeHookSpecification
- Contains the responses and actions that Amazon Lex takes after the Lambda function is complete. This parameter is required.- Returns:
this
-
postCodeHookSpecification
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder postCodeHookSpecification(CfnBot.PostDialogCodeHookInvocationSpecificationProperty postCodeHookSpecification) - Parameters:
postCodeHookSpecification
- Contains the responses and actions that Amazon Lex takes after the Lambda function is complete. This parameter is required.- Returns:
this
-
invocationLabel
@Stability(Stable) public CfnBot.DialogCodeHookInvocationSettingProperty.Builder invocationLabel(String invocationLabel) Sets the value ofCfnBot.DialogCodeHookInvocationSettingProperty.getInvocationLabel()
- Parameters:
invocationLabel
- A label that indicates the dialog step from which the dialog code hook is happening.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.DialogCodeHookInvocationSettingProperty>
- Returns:
- a new instance of
CfnBot.DialogCodeHookInvocationSettingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-