Interface IntentClosingSetting.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IntentClosingSetting.Builder,IntentClosingSetting>,SdkBuilder<IntentClosingSetting.Builder,IntentClosingSetting>,SdkPojo
- Enclosing class:
- IntentClosingSetting
public static interface IntentClosingSetting.Builder extends SdkPojo, CopyableBuilder<IntentClosingSetting.Builder,IntentClosingSetting>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IntentClosingSetting.Builderactive(Boolean active)Specifies 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.IntentClosingSetting.BuilderclosingResponse(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.IntentClosingSetting.Builderconditional(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.IntentClosingSetting.BuildernextStep(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 Detail
-
closingResponse
IntentClosingSetting.Builder closingResponse(ResponseSpecification 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:
closingResponse(ResponseSpecification)
-
active
IntentClosingSetting.Builder active(Boolean 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
IntentClosingSetting.Builder nextStep(DialogState 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
default IntentClosingSetting.Builder nextStep(Consumer<DialogState.Builder> 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:
nextStep(DialogState)
-
conditional
IntentClosingSetting.Builder conditional(ConditionalSpecification 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:
conditional(ConditionalSpecification)
-
-