Interface IntentClosingSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IntentClosingSetting.Builder,
,IntentClosingSetting> SdkBuilder<IntentClosingSetting.Builder,
,IntentClosingSetting> SdkPojo
- Enclosing class:
IntentClosingSetting
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether an intent's closing response is used.default IntentClosingSetting.Builder
closingResponse
(Consumer<ResponseSpecification.Builder> closingResponse) The response that Amazon Lex sends to the user when the intent is complete.closingResponse
(ResponseSpecification closingResponse) The response that Amazon Lex sends to the user when the intent is complete.default IntentClosingSetting.Builder
conditional
(Consumer<ConditionalSpecification.Builder> conditional) A list of conditional branches associated with the intent's closing response.conditional
(ConditionalSpecification conditional) A list of conditional branches associated with the intent's closing response.default IntentClosingSetting.Builder
nextStep
(Consumer<DialogState.Builder> nextStep) Specifies the next step that the bot executes after playing the intent's closing response.nextStep
(DialogState nextStep) Specifies the next step that the bot executes after playing the intent's closing response.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
-
closingResponse
The response that Amazon Lex sends to the user when the intent is complete.
- Parameters:
closingResponse
- The response that Amazon Lex sends to the user when the intent is complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
closingResponse
default IntentClosingSetting.Builder closingResponse(Consumer<ResponseSpecification.Builder> closingResponse) The response that Amazon Lex sends to the user when the intent is complete.
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 toclosingResponse(ResponseSpecification)
.- Parameters:
closingResponse
- 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:
-
active
Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the
active
field isn't specified, the default is true.- Parameters:
active
- Specifies whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. 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.
-
nextStep
Specifies the next step that the bot executes after playing the intent's closing response.
- Parameters:
nextStep
- Specifies the next step that the bot executes after playing the intent's closing response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextStep
Specifies the next step that the bot executes after playing the intent's closing response.
This is a convenience method that creates an instance of theDialogState.Builder
avoiding the need to create one manually viaDialogState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonextStep(DialogState)
.- Parameters:
nextStep
- a consumer that will call methods onDialogState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conditional
A list of conditional branches associated with the intent's closing response. These branches are executed when the
nextStep
attribute is set toEvalutateConditional
.- Parameters:
conditional
- A list of conditional branches associated with the intent's closing response. These branches are executed when thenextStep
attribute is set toEvalutateConditional
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditional
default IntentClosingSetting.Builder conditional(Consumer<ConditionalSpecification.Builder> conditional) A list of conditional branches associated with the intent's closing response. These branches are executed when the
This is a convenience method that creates an instance of thenextStep
attribute is set toEvalutateConditional
.ConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditional(ConditionalSpecification)
.- Parameters:
conditional
- a consumer that will call methods onConditionalSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-