Interface SlotValueElicitationSetting.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SlotValueElicitationSetting.Builder,
,SlotValueElicitationSetting> SdkBuilder<SlotValueElicitationSetting.Builder,
,SlotValueElicitationSetting> SdkPojo
- Enclosing class:
SlotValueElicitationSetting
-
Method Summary
Modifier and TypeMethodDescriptiondefaultValueSpecification
(Consumer<SlotDefaultValueSpecification.Builder> defaultValueSpecification) A list of default values for a slot.defaultValueSpecification
(SlotDefaultValueSpecification defaultValueSpecification) A list of default values for a slot.promptSpecification
(Consumer<PromptSpecification.Builder> promptSpecification) The prompt that Amazon Lex uses to elicit the slot value from the user.promptSpecification
(PromptSpecification promptSpecification) The prompt that Amazon Lex uses to elicit the slot value from the user.sampleUtterances
(Collection<SampleUtterance> sampleUtterances) If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.sampleUtterances
(Consumer<SampleUtterance.Builder>... sampleUtterances) If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.sampleUtterances
(SampleUtterance... sampleUtterances) If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.slotCaptureSetting
(Consumer<SlotCaptureSetting.Builder> slotCaptureSetting) Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.slotCaptureSetting
(SlotCaptureSetting slotCaptureSetting) Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.slotConstraint
(String slotConstraint) Specifies whether the slot is required or optional.slotConstraint
(SlotConstraint slotConstraint) Specifies whether the slot is required or optional.waitAndContinueSpecification
(Consumer<WaitAndContinueSpecification.Builder> waitAndContinueSpecification) Sets the value of the WaitAndContinueSpecification property for this object.waitAndContinueSpecification
(WaitAndContinueSpecification waitAndContinueSpecification) Sets the value of the WaitAndContinueSpecification 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
-
defaultValueSpecification
SlotValueElicitationSetting.Builder defaultValueSpecification(SlotDefaultValueSpecification defaultValueSpecification) A list of default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
- Parameters:
defaultValueSpecification
- A list of default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultValueSpecification
default SlotValueElicitationSetting.Builder defaultValueSpecification(Consumer<SlotDefaultValueSpecification.Builder> defaultValueSpecification) A list of default values for a slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
This is a convenience method that creates an instance of theSlotDefaultValueSpecification.Builder
avoiding the need to create one manually viaSlotDefaultValueSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultValueSpecification(SlotDefaultValueSpecification)
.- Parameters:
defaultValueSpecification
- a consumer that will call methods onSlotDefaultValueSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotConstraint
Specifies whether the slot is required or optional.
- Parameters:
slotConstraint
- Specifies whether the slot is required or optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotConstraint
Specifies whether the slot is required or optional.
- Parameters:
slotConstraint
- Specifies whether the slot is required or optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
promptSpecification
The prompt that Amazon Lex uses to elicit the slot value from the user.
- Parameters:
promptSpecification
- The prompt that Amazon Lex uses to elicit the slot value from the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptSpecification
default SlotValueElicitationSetting.Builder promptSpecification(Consumer<PromptSpecification.Builder> promptSpecification) The prompt that Amazon Lex uses to elicit the slot value from the user.
This is a convenience method that creates an instance of thePromptSpecification.Builder
avoiding the need to create one manually viaPromptSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topromptSpecification(PromptSpecification)
.- Parameters:
promptSpecification
- a consumer that will call methods onPromptSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sampleUtterances
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
- Parameters:
sampleUtterances
- If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleUtterances
If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
- Parameters:
sampleUtterances
- If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleUtterances
SlotValueElicitationSetting.Builder sampleUtterances(Consumer<SampleUtterance.Builder>... sampleUtterances) If you know a specific pattern that users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
This is a convenience method that creates an instance of theSampleUtterance.Builder
avoiding the need to create one manually viaSampleUtterance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosampleUtterances(List<SampleUtterance>)
.- Parameters:
sampleUtterances
- a consumer that will call methods onSampleUtterance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
waitAndContinueSpecification
SlotValueElicitationSetting.Builder waitAndContinueSpecification(WaitAndContinueSpecification waitAndContinueSpecification) Sets the value of the WaitAndContinueSpecification property for this object.- Parameters:
waitAndContinueSpecification
- The new value for the WaitAndContinueSpecification property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waitAndContinueSpecification
default SlotValueElicitationSetting.Builder waitAndContinueSpecification(Consumer<WaitAndContinueSpecification.Builder> waitAndContinueSpecification) Sets the value of the WaitAndContinueSpecification property for this object. This is a convenience method that creates an instance of theWaitAndContinueSpecification.Builder
avoiding the need to create one manually viaWaitAndContinueSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towaitAndContinueSpecification(WaitAndContinueSpecification)
.- Parameters:
waitAndContinueSpecification
- a consumer that will call methods onWaitAndContinueSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slotCaptureSetting
Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
- Parameters:
slotCaptureSetting
- Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotCaptureSetting
default SlotValueElicitationSetting.Builder slotCaptureSetting(Consumer<SlotCaptureSetting.Builder> slotCaptureSetting) Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
This is a convenience method that creates an instance of theSlotCaptureSetting.Builder
avoiding the need to create one manually viaSlotCaptureSetting.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toslotCaptureSetting(SlotCaptureSetting)
.- Parameters:
slotCaptureSetting
- a consumer that will call methods onSlotCaptureSetting.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-