Class CfnBot.FulfillmentCodeHookSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.FulfillmentCodeHookSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.FulfillmentCodeHookSettingProperty>
- Enclosing interface:
- CfnBot.FulfillmentCodeHookSettingProperty
@Stability(Stable)
public static final class CfnBot.FulfillmentCodeHookSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.FulfillmentCodeHookSettingProperty>
A builder for
CfnBot.FulfillmentCodeHookSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBot.FulfillmentCodeHookSettingProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnBot.FulfillmentCodeHookSettingProperty.getEnabled()fulfillmentUpdatesSpecification(IResolvable fulfillmentUpdatesSpecification) fulfillmentUpdatesSpecification(CfnBot.FulfillmentUpdatesSpecificationProperty fulfillmentUpdatesSpecification) Sets the value ofCfnBot.FulfillmentCodeHookSettingProperty.getIsActive()isActive(IResolvable isActive) Sets the value ofCfnBot.FulfillmentCodeHookSettingProperty.getIsActive()postFulfillmentStatusSpecification(IResolvable postFulfillmentStatusSpecification) postFulfillmentStatusSpecification(CfnBot.PostFulfillmentStatusSpecificationProperty postFulfillmentStatusSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnBot.FulfillmentCodeHookSettingProperty.Builder enabled(Boolean enabled) Sets the value ofCfnBot.FulfillmentCodeHookSettingProperty.getEnabled()- Parameters:
enabled- Indicates whether a Lambda function should be invoked to fulfill a specific intent. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnBot.FulfillmentCodeHookSettingProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnBot.FulfillmentCodeHookSettingProperty.getEnabled()- Parameters:
enabled- Indicates whether a Lambda function should be invoked to fulfill a specific intent. This parameter is required.- Returns:
this
-
fulfillmentUpdatesSpecification
@Stability(Stable) public CfnBot.FulfillmentCodeHookSettingProperty.Builder fulfillmentUpdatesSpecification(IResolvable fulfillmentUpdatesSpecification) - 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 CfnBot.FulfillmentCodeHookSettingProperty.Builder fulfillmentUpdatesSpecification(CfnBot.FulfillmentUpdatesSpecificationProperty fulfillmentUpdatesSpecification) - 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 CfnBot.FulfillmentCodeHookSettingProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBot.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 CfnBot.FulfillmentCodeHookSettingProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBot.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 CfnBot.FulfillmentCodeHookSettingProperty.Builder postFulfillmentStatusSpecification(IResolvable postFulfillmentStatusSpecification) - 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 CfnBot.FulfillmentCodeHookSettingProperty.Builder postFulfillmentStatusSpecification(CfnBot.PostFulfillmentStatusSpecificationProperty postFulfillmentStatusSpecification) - 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<CfnBot.FulfillmentCodeHookSettingProperty>- Returns:
- a new instance of
CfnBot.FulfillmentCodeHookSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-