Class CfnBot.WaitAndContinueSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.WaitAndContinueSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.WaitAndContinueSpecificationProperty>
- Enclosing interface:
CfnBot.WaitAndContinueSpecificationProperty
@Stability(Stable)
public static final class CfnBot.WaitAndContinueSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.WaitAndContinueSpecificationProperty>
A builder for
CfnBot.WaitAndContinueSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.continueResponse
(IResolvable continueResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getContinueResponse()
continueResponse
(CfnBot.ResponseSpecificationProperty continueResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getContinueResponse()
Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getIsActive()
isActive
(IResolvable isActive) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getIsActive()
stillWaitingResponse
(IResolvable stillWaitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getStillWaitingResponse()
stillWaitingResponse
(CfnBot.StillWaitingResponseSpecificationProperty stillWaitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getStillWaitingResponse()
waitingResponse
(IResolvable waitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getWaitingResponse()
waitingResponse
(CfnBot.ResponseSpecificationProperty waitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getWaitingResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
continueResponse
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder continueResponse(IResolvable continueResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getContinueResponse()
- Parameters:
continueResponse
- The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation. This parameter is required.- Returns:
this
-
continueResponse
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder continueResponse(CfnBot.ResponseSpecificationProperty continueResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getContinueResponse()
- Parameters:
continueResponse
- The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation. This parameter is required.- Returns:
this
-
waitingResponse
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder waitingResponse(IResolvable waitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getWaitingResponse()
- Parameters:
waitingResponse
- The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue. This parameter is required.- Returns:
this
-
waitingResponse
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder waitingResponse(CfnBot.ResponseSpecificationProperty waitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getWaitingResponse()
- Parameters:
waitingResponse
- The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue. This parameter is required.- Returns:
this
-
isActive
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder isActive(Boolean isActive) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getIsActive()
- Parameters:
isActive
- Specifies whether the bot will wait for a user to respond. When this field is false, wait and continue responses for a slot aren't used. If theIsActive
field isn't specified, the default is true.- Returns:
this
-
isActive
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getIsActive()
- Parameters:
isActive
- Specifies whether the bot will wait for a user to respond. When this field is false, wait and continue responses for a slot aren't used. If theIsActive
field isn't specified, the default is true.- Returns:
this
-
stillWaitingResponse
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder stillWaitingResponse(IResolvable stillWaitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getStillWaitingResponse()
- Parameters:
stillWaitingResponse
- A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.- Returns:
this
-
stillWaitingResponse
@Stability(Stable) public CfnBot.WaitAndContinueSpecificationProperty.Builder stillWaitingResponse(CfnBot.StillWaitingResponseSpecificationProperty stillWaitingResponse) Sets the value ofCfnBot.WaitAndContinueSpecificationProperty.getStillWaitingResponse()
- Parameters:
stillWaitingResponse
- A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.WaitAndContinueSpecificationProperty>
- Returns:
- a new instance of
CfnBot.WaitAndContinueSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-