Interface WaitAndContinueSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WaitAndContinueSpecification.Builder,WaitAndContinueSpecification>,SdkBuilder<WaitAndContinueSpecification.Builder,WaitAndContinueSpecification>,SdkPojo
- Enclosing class:
- WaitAndContinueSpecification
public static interface WaitAndContinueSpecification.Builder extends SdkPojo, CopyableBuilder<WaitAndContinueSpecification.Builder,WaitAndContinueSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description WaitAndContinueSpecification.Builderactive(Boolean active)Specifies whether the bot will wait for a user to respond.default WaitAndContinueSpecification.BuildercontinueResponse(Consumer<ResponseSpecification.Builder> continueResponse)The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.WaitAndContinueSpecification.BuildercontinueResponse(ResponseSpecification continueResponse)The response that Amazon Lex sends to indicate that the bot is ready to continue the conversation.default WaitAndContinueSpecification.BuilderstillWaitingResponse(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.WaitAndContinueSpecification.BuilderstillWaitingResponse(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.default WaitAndContinueSpecification.BuilderwaitingResponse(Consumer<ResponseSpecification.Builder> waitingResponse)The response that Amazon Lex sends to indicate that the bot is waiting for the conversation to continue.WaitAndContinueSpecification.BuilderwaitingResponse(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 Detail
-
waitingResponse
WaitAndContinueSpecification.Builder waitingResponse(ResponseSpecification 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.Builderavoiding the need to create one manually viaResponseSpecification.builder().When the
Consumercompletes,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:
waitingResponse(ResponseSpecification)
-
continueResponse
WaitAndContinueSpecification.Builder continueResponse(ResponseSpecification 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.Builderavoiding the need to create one manually viaResponseSpecification.builder().When the
Consumercompletes,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:
continueResponse(ResponseSpecification)
-
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.Builderavoiding the need to create one manually viaStillWaitingResponseSpecification.builder().When the
Consumercompletes,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:
stillWaitingResponse(StillWaitingResponseSpecification)
-
active
WaitAndContinueSpecification.Builder active(Boolean 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
activefield 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 theactivefield isn't specified, the default is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-