Interface SlotValueElicitationSetting.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SlotValueElicitationSetting.Builder,SlotValueElicitationSetting>,SdkBuilder<SlotValueElicitationSetting.Builder,SlotValueElicitationSetting>,SdkPojo
- Enclosing class:
- SlotValueElicitationSetting
public static interface SlotValueElicitationSetting.Builder extends SdkPojo, CopyableBuilder<SlotValueElicitationSetting.Builder,SlotValueElicitationSetting>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SlotValueElicitationSetting.BuilderdefaultValueSpecification(Consumer<SlotDefaultValueSpecification.Builder> defaultValueSpecification)A list of default values for a slot.SlotValueElicitationSetting.BuilderdefaultValueSpecification(SlotDefaultValueSpecification defaultValueSpecification)A list of default values for a slot.default SlotValueElicitationSetting.BuilderpromptSpecification(Consumer<PromptSpecification.Builder> promptSpecification)The prompt that Amazon Lex uses to elicit the slot value from the user.SlotValueElicitationSetting.BuilderpromptSpecification(PromptSpecification promptSpecification)The prompt that Amazon Lex uses to elicit the slot value from the user.SlotValueElicitationSetting.BuildersampleUtterances(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.SlotValueElicitationSetting.BuildersampleUtterances(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.SlotValueElicitationSetting.BuildersampleUtterances(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.default SlotValueElicitationSetting.BuilderslotCaptureSetting(Consumer<SlotCaptureSetting.Builder> slotCaptureSetting)Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.SlotValueElicitationSetting.BuilderslotCaptureSetting(SlotCaptureSetting slotCaptureSetting)Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.SlotValueElicitationSetting.BuilderslotConstraint(String slotConstraint)Specifies whether the slot is required or optional.SlotValueElicitationSetting.BuilderslotConstraint(SlotConstraint slotConstraint)Specifies whether the slot is required or optional.default SlotValueElicitationSetting.BuilderslotResolutionSetting(Consumer<SlotResolutionSetting.Builder> slotResolutionSetting)An object containing information about whether assisted slot resolution is turned on for the slot or not.SlotValueElicitationSetting.BuilderslotResolutionSetting(SlotResolutionSetting slotResolutionSetting)An object containing information about whether assisted slot resolution is turned on for the slot or not.default SlotValueElicitationSetting.BuilderwaitAndContinueSpecification(Consumer<WaitAndContinueSpecification.Builder> waitAndContinueSpecification)Sets the value of the WaitAndContinueSpecification property for this object.SlotValueElicitationSetting.BuilderwaitAndContinueSpecification(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 Detail
-
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.Builderavoiding the need to create one manually viaSlotDefaultValueSpecification.builder().When the
Consumercompletes,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:
defaultValueSpecification(SlotDefaultValueSpecification)
-
slotConstraint
SlotValueElicitationSetting.Builder slotConstraint(String 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,SlotConstraint
-
slotConstraint
SlotValueElicitationSetting.Builder slotConstraint(SlotConstraint 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,SlotConstraint
-
promptSpecification
SlotValueElicitationSetting.Builder promptSpecification(PromptSpecification 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.Builderavoiding the need to create one manually viaPromptSpecification.builder().When the
Consumercompletes,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:
promptSpecification(PromptSpecification)
-
sampleUtterances
SlotValueElicitationSetting.Builder 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. 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(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. 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.Builderavoiding the need to create one manually viaSampleUtterance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sampleUtterances(List.) - 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:
#sampleUtterances(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaWaitAndContinueSpecification.builder().When the
Consumercompletes,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:
waitAndContinueSpecification(WaitAndContinueSpecification)
-
slotCaptureSetting
SlotValueElicitationSetting.Builder slotCaptureSetting(SlotCaptureSetting 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.Builderavoiding the need to create one manually viaSlotCaptureSetting.builder().When the
Consumercompletes,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:
slotCaptureSetting(SlotCaptureSetting)
-
slotResolutionSetting
SlotValueElicitationSetting.Builder slotResolutionSetting(SlotResolutionSetting slotResolutionSetting)
An object containing information about whether assisted slot resolution is turned on for the slot or not.
- Parameters:
slotResolutionSetting- An object containing information about whether assisted slot resolution is turned on for the slot or not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slotResolutionSetting
default SlotValueElicitationSetting.Builder slotResolutionSetting(Consumer<SlotResolutionSetting.Builder> slotResolutionSetting)
An object containing information about whether assisted slot resolution is turned on for the slot or not.
This is a convenience method that creates an instance of theSlotResolutionSetting.Builderavoiding the need to create one manually viaSlotResolutionSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toslotResolutionSetting(SlotResolutionSetting).- Parameters:
slotResolutionSetting- a consumer that will call methods onSlotResolutionSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
slotResolutionSetting(SlotResolutionSetting)
-
-