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.BuilderclosingResponse(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.Builderconditional(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.BuildernextStep(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaResponseSpecification.builder().When the
Consumercompletes,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
activefield 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 theactivefield 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.Builderavoiding the need to create one manually viaDialogState.builder().When the
Consumercompletes,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
nextStepattribute is set toEvalutateConditional.- Parameters:
conditional- A list of conditional branches associated with the intent's closing response. These branches are executed when thenextStepattribute 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 thenextStepattribute is set toEvalutateConditional.ConditionalSpecification.Builderavoiding the need to create one manually viaConditionalSpecification.builder().When the
Consumercompletes,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:
-