Interface WaitAndContinueSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<WaitAndContinueSpecification.Builder,
,WaitAndContinueSpecification> SdkBuilder<WaitAndContinueSpecification.Builder,
,WaitAndContinueSpecification> SdkPojo
- Enclosing class:
WaitAndContinueSpecification
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether the bot will wait for a user to respond.continueResponse
(Consumer<ResponseSpecification.Builder> continueResponse) The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.continueResponse
(ResponseSpecification continueResponse) The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.stillWaitingResponse
(Consumer<StillWaitingResponseSpecification.Builder> stillWaitingResponse) A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.stillWaitingResponse
(StillWaitingResponseSpecification stillWaitingResponse) A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.waitingResponse
(Consumer<ResponseSpecification.Builder> waitingResponse) The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.waitingResponse
(ResponseSpecification waitingResponse) The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
waitingResponse
The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
- Parameters:
waitingResponse
- The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waitingResponse
default WaitAndContinueSpecification.Builder waitingResponse(Consumer<ResponseSpecification.Builder> waitingResponse) The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.
This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towaitingResponse(ResponseSpecification)
.- Parameters:
waitingResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
continueResponse
The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
- Parameters:
continueResponse
- The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
continueResponse
default WaitAndContinueSpecification.Builder continueResponse(Consumer<ResponseSpecification.Builder> continueResponse) The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.
This is a convenience method that creates an instance of theResponseSpecification.Builder
avoiding the need to create one manually viaResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontinueResponse(ResponseSpecification)
.- Parameters:
continueResponse
- a consumer that will call methods onResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stillWaitingResponse
WaitAndContinueSpecification.Builder stillWaitingResponse(StillWaitingResponseSpecification stillWaitingResponse) A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
stillWaitingResponse
default WaitAndContinueSpecification.Builder stillWaitingResponse(Consumer<StillWaitingResponseSpecification.Builder> stillWaitingResponse) A response that Amazon Lex sends periodically to the user to indicate that the bot is still waiting for input from the user.
This is a convenience method that creates an instance of theStillWaitingResponseSpecification.Builder
avoiding the need to create one manually viaStillWaitingResponseSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostillWaitingResponse(StillWaitingResponseSpecification)
.- Parameters:
stillWaitingResponse
- a consumer that will call methods onStillWaitingResponseSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
active
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 the
active
field isn't specified, the default is true.- Parameters:
active
- 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 theactive
field isn't specified, the default is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-