Class CfnBot.FulfillmentUpdatesSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.FulfillmentUpdatesSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.FulfillmentUpdatesSpecificationProperty>
- Enclosing interface:
CfnBot.FulfillmentUpdatesSpecificationProperty
@Stability(Stable)
public static final class CfnBot.FulfillmentUpdatesSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.FulfillmentUpdatesSpecificationProperty>
A builder for
CfnBot.FulfillmentUpdatesSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getActive()
active
(IResolvable active) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getActive()
build()
Builds the configured instance.startResponse
(IResolvable startResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getStartResponse()
Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getStartResponse()
timeoutInSeconds
(Number timeoutInSeconds) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getTimeoutInSeconds()
updateResponse
(IResolvable updateResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getUpdateResponse()
updateResponse
(CfnBot.FulfillmentUpdateResponseSpecificationProperty updateResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getUpdateResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
active
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder active(Boolean active) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getActive()
- Parameters:
active
- Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent. This parameter is required. If theactive
field is set to true, thestartResponse
,updateResponse
, andtimeoutInSeconds
fields are required.- Returns:
this
-
active
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder active(IResolvable active) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getActive()
- Parameters:
active
- Determines whether fulfillment updates are sent to the user. When this field is true, updates are sent. This parameter is required. If theactive
field is set to true, thestartResponse
,updateResponse
, andtimeoutInSeconds
fields are required.- Returns:
this
-
startResponse
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder startResponse(IResolvable startResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getStartResponse()
- Parameters:
startResponse
- Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.- Returns:
this
-
startResponse
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder startResponse(CfnBot.FulfillmentStartResponseSpecificationProperty startResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getStartResponse()
- Parameters:
startResponse
- Provides configuration information for the message sent to users when the fulfillment Lambda functions starts running.- Returns:
this
-
timeoutInSeconds
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder timeoutInSeconds(Number timeoutInSeconds) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getTimeoutInSeconds()
- Parameters:
timeoutInSeconds
- The length of time that the fulfillment Lambda function should run before it times out.- Returns:
this
-
updateResponse
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder updateResponse(IResolvable updateResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getUpdateResponse()
- Parameters:
updateResponse
- Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.- Returns:
this
-
updateResponse
@Stability(Stable) public CfnBot.FulfillmentUpdatesSpecificationProperty.Builder updateResponse(CfnBot.FulfillmentUpdateResponseSpecificationProperty updateResponse) Sets the value ofCfnBot.FulfillmentUpdatesSpecificationProperty.getUpdateResponse()
- Parameters:
updateResponse
- Provides configuration information for messages sent periodically to the user while the fulfillment Lambda function is running.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.FulfillmentUpdatesSpecificationProperty>
- Returns:
- a new instance of
CfnBot.FulfillmentUpdatesSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-