Class CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.FulfillmentCodeHookSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.FulfillmentCodeHookSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.FulfillmentCodeHookSettingProperty>
A builder for
CfnBotPropsMixin.FulfillmentCodeHookSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getEnabled()fulfillmentUpdatesSpecification(CfnBotPropsMixin.FulfillmentUpdatesSpecificationProperty fulfillmentUpdatesSpecification) fulfillmentUpdatesSpecification(IResolvable fulfillmentUpdatesSpecification) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getIsActive()isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getIsActive()postFulfillmentStatusSpecification(CfnBotPropsMixin.PostFulfillmentStatusSpecificationProperty postFulfillmentStatusSpecification) postFulfillmentStatusSpecification(IResolvable postFulfillmentStatusSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getEnabled()- Parameters:
enabled- Indicates whether a Lambda function should be invoked to fulfill a specific intent.- Returns:
this
-
enabled
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getEnabled()- Parameters:
enabled- Indicates whether a Lambda function should be invoked to fulfill a specific intent.- Returns:
this
-
fulfillmentUpdatesSpecification
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder fulfillmentUpdatesSpecification(IResolvable fulfillmentUpdatesSpecification) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getFulfillmentUpdatesSpecification()- Parameters:
fulfillmentUpdatesSpecification- Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.- Returns:
this
-
fulfillmentUpdatesSpecification
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder fulfillmentUpdatesSpecification(CfnBotPropsMixin.FulfillmentUpdatesSpecificationProperty fulfillmentUpdatesSpecification) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getFulfillmentUpdatesSpecification()- Parameters:
fulfillmentUpdatesSpecification- Provides settings for update messages sent to the user for long-running Lambda fulfillment functions. Fulfillment updates can be used only with streaming conversations.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getIsActive()- Parameters:
isActive- Determines whether the fulfillment code hook is used. Whenactiveis false, the code hook doesn't run.- Returns:
this
-
isActive
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getIsActive()- Parameters:
isActive- Determines whether the fulfillment code hook is used. Whenactiveis false, the code hook doesn't run.- Returns:
this
-
postFulfillmentStatusSpecification
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder postFulfillmentStatusSpecification(IResolvable postFulfillmentStatusSpecification) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getPostFulfillmentStatusSpecification()- Parameters:
postFulfillmentStatusSpecification- Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.- Returns:
this
-
postFulfillmentStatusSpecification
@Stability(Stable) public CfnBotPropsMixin.FulfillmentCodeHookSettingProperty.Builder postFulfillmentStatusSpecification(CfnBotPropsMixin.PostFulfillmentStatusSpecificationProperty postFulfillmentStatusSpecification) Sets the value ofCfnBotPropsMixin.FulfillmentCodeHookSettingProperty.getPostFulfillmentStatusSpecification()- Parameters:
postFulfillmentStatusSpecification- Provides settings for messages sent to the user for after the Lambda fulfillment function completes. Post-fulfillment messages can be sent for both streaming and non-streaming conversations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.FulfillmentCodeHookSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.FulfillmentCodeHookSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-