Interface SlotCaptureSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SlotCaptureSetting.Builder,
,SlotCaptureSetting> SdkBuilder<SlotCaptureSetting.Builder,
,SlotCaptureSetting> SdkPojo
- Enclosing class:
SlotCaptureSetting
-
Method Summary
Modifier and TypeMethodDescriptiondefault SlotCaptureSetting.Builder
captureConditional
(Consumer<ConditionalSpecification.Builder> captureConditional) A list of conditional branches to evaluate after the slot value is captured.captureConditional
(ConditionalSpecification captureConditional) A list of conditional branches to evaluate after the slot value is captured.default SlotCaptureSetting.Builder
captureNextStep
(Consumer<DialogState.Builder> captureNextStep) Specifies the next step that the bot runs when the slot value is captured before the code hook times out.captureNextStep
(DialogState captureNextStep) Specifies the next step that the bot runs when the slot value is captured before the code hook times out.default SlotCaptureSetting.Builder
captureResponse
(Consumer<ResponseSpecification.Builder> captureResponse) Sets the value of the CaptureResponse property for this object.captureResponse
(ResponseSpecification captureResponse) Sets the value of the CaptureResponse property for this object.default SlotCaptureSetting.Builder
Code hook called after Amazon Lex successfully captures a slot value.codeHook
(DialogCodeHookInvocationSetting codeHook) Code hook called after Amazon Lex successfully captures a slot value.default SlotCaptureSetting.Builder
elicitationCodeHook
(Consumer<ElicitationCodeHookInvocationSetting.Builder> elicitationCodeHook) Code hook called when Amazon Lex doesn't capture a slot value.elicitationCodeHook
(ElicitationCodeHookInvocationSetting elicitationCodeHook) Code hook called when Amazon Lex doesn't capture a slot value.default SlotCaptureSetting.Builder
failureConditional
(Consumer<ConditionalSpecification.Builder> failureConditional) A list of conditional branches to evaluate when the slot value isn't captured.failureConditional
(ConditionalSpecification failureConditional) A list of conditional branches to evaluate when the slot value isn't captured.default SlotCaptureSetting.Builder
failureNextStep
(Consumer<DialogState.Builder> failureNextStep) Specifies the next step that the bot runs when the slot value code is not recognized.failureNextStep
(DialogState failureNextStep) Specifies the next step that the bot runs when the slot value code is not recognized.default SlotCaptureSetting.Builder
failureResponse
(Consumer<ResponseSpecification.Builder> failureResponse) Sets the value of the FailureResponse property for this object.failureResponse
(ResponseSpecification failureResponse) Sets the value of the FailureResponse property for this object.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
-
captureResponse
Sets the value of the CaptureResponse property for this object.- Parameters:
captureResponse
- The new value for the CaptureResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureResponse
default SlotCaptureSetting.Builder captureResponse(Consumer<ResponseSpecification.Builder> captureResponse) Sets the value of the CaptureResponse property for this object. 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 tocaptureResponse(ResponseSpecification)
.- Parameters:
captureResponse
- 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:
-
captureNextStep
Specifies the next step that the bot runs when the slot value is captured before the code hook times out.
- Parameters:
captureNextStep
- Specifies the next step that the bot runs when the slot value is captured before the code hook times out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureNextStep
Specifies the next step that the bot runs when the slot value is captured before the code hook times out.
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 tocaptureNextStep(DialogState)
.- Parameters:
captureNextStep
- 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:
-
captureConditional
A list of conditional branches to evaluate after the slot value is captured.
- Parameters:
captureConditional
- A list of conditional branches to evaluate after the slot value is captured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureConditional
default SlotCaptureSetting.Builder captureConditional(Consumer<ConditionalSpecification.Builder> captureConditional) A list of conditional branches to evaluate after the slot value is captured.
This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocaptureConditional(ConditionalSpecification)
.- Parameters:
captureConditional
- 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:
-
failureResponse
Sets the value of the FailureResponse property for this object.- Parameters:
failureResponse
- The new value for the FailureResponse property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureResponse
default SlotCaptureSetting.Builder failureResponse(Consumer<ResponseSpecification.Builder> failureResponse) Sets the value of the FailureResponse property for this object. 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 tofailureResponse(ResponseSpecification)
.- Parameters:
failureResponse
- 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:
-
failureNextStep
Specifies the next step that the bot runs when the slot value code is not recognized.
- Parameters:
failureNextStep
- Specifies the next step that the bot runs when the slot value code is not recognized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureNextStep
Specifies the next step that the bot runs when the slot value code is not recognized.
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 tofailureNextStep(DialogState)
.- Parameters:
failureNextStep
- 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:
-
failureConditional
A list of conditional branches to evaluate when the slot value isn't captured.
- Parameters:
failureConditional
- A list of conditional branches to evaluate when the slot value isn't captured.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureConditional
default SlotCaptureSetting.Builder failureConditional(Consumer<ConditionalSpecification.Builder> failureConditional) A list of conditional branches to evaluate when the slot value isn't captured.
This is a convenience method that creates an instance of theConditionalSpecification.Builder
avoiding the need to create one manually viaConditionalSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureConditional(ConditionalSpecification)
.- Parameters:
failureConditional
- 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:
-
codeHook
Code hook called after Amazon Lex successfully captures a slot value.
- Parameters:
codeHook
- Code hook called after Amazon Lex successfully captures a slot value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeHook
default SlotCaptureSetting.Builder codeHook(Consumer<DialogCodeHookInvocationSetting.Builder> codeHook) Code hook called after Amazon Lex successfully captures a slot value.
This is a convenience method that creates an instance of theDialogCodeHookInvocationSetting.Builder
avoiding the need to create one manually viaDialogCodeHookInvocationSetting.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeHook(DialogCodeHookInvocationSetting)
.- Parameters:
codeHook
- a consumer that will call methods onDialogCodeHookInvocationSetting.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elicitationCodeHook
SlotCaptureSetting.Builder elicitationCodeHook(ElicitationCodeHookInvocationSetting elicitationCodeHook) Code hook called when Amazon Lex doesn't capture a slot value.
- Parameters:
elicitationCodeHook
- Code hook called when Amazon Lex doesn't capture a slot value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elicitationCodeHook
default SlotCaptureSetting.Builder elicitationCodeHook(Consumer<ElicitationCodeHookInvocationSetting.Builder> elicitationCodeHook) Code hook called when Amazon Lex doesn't capture a slot value.
This is a convenience method that creates an instance of theElicitationCodeHookInvocationSetting.Builder
avoiding the need to create one manually viaElicitationCodeHookInvocationSetting.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelicitationCodeHook(ElicitationCodeHookInvocationSetting)
.- Parameters:
elicitationCodeHook
- a consumer that will call methods onElicitationCodeHookInvocationSetting.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-