Class CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SubSlotValueElicitationSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.SubSlotValueElicitationSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SubSlotValueElicitationSettingProperty>
A builder for
CfnBotPropsMixin.SubSlotValueElicitationSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultValueSpecification(CfnBotPropsMixin.SlotDefaultValueSpecificationProperty defaultValueSpecification) defaultValueSpecification(IResolvable defaultValueSpecification) promptSpecification(CfnBotPropsMixin.PromptSpecificationProperty promptSpecification) promptSpecification(IResolvable promptSpecification) sampleUtterances(List<? extends Object> sampleUtterances) sampleUtterances(IResolvable sampleUtterances) waitAndContinueSpecification(CfnBotPropsMixin.WaitAndContinueSpecificationProperty waitAndContinueSpecification) waitAndContinueSpecification(IResolvable waitAndContinueSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultValueSpecification
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder defaultValueSpecification(IResolvable defaultValueSpecification) Sets the value ofCfnBotPropsMixin.SubSlotValueElicitationSettingProperty.getDefaultValueSpecification()- Parameters:
defaultValueSpecification- the value to be set.- Returns:
this
-
defaultValueSpecification
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder defaultValueSpecification(CfnBotPropsMixin.SlotDefaultValueSpecificationProperty defaultValueSpecification) Sets the value ofCfnBotPropsMixin.SubSlotValueElicitationSettingProperty.getDefaultValueSpecification()- Parameters:
defaultValueSpecification- the value to be set.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder promptSpecification(IResolvable promptSpecification) - Parameters:
promptSpecification- the value to be set.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder promptSpecification(CfnBotPropsMixin.PromptSpecificationProperty promptSpecification) - Parameters:
promptSpecification- the value to be set.- Returns:
this
-
sampleUtterances
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder sampleUtterances(IResolvable sampleUtterances) - Parameters:
sampleUtterances- If you know a specific pattern that users might respond to an Amazon Lex request for a sub 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 similar toSampleUtterancesfor slots.- Returns:
this
-
sampleUtterances
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder sampleUtterances(List<? extends Object> sampleUtterances) - Parameters:
sampleUtterances- If you know a specific pattern that users might respond to an Amazon Lex request for a sub 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 similar toSampleUtterancesfor slots.- Returns:
this
-
waitAndContinueSpecification
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(IResolvable waitAndContinueSpecification) Sets the value ofCfnBotPropsMixin.SubSlotValueElicitationSettingProperty.getWaitAndContinueSpecification()- Parameters:
waitAndContinueSpecification- the value to be set.- Returns:
this
-
waitAndContinueSpecification
@Stability(Stable) public CfnBotPropsMixin.SubSlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(CfnBotPropsMixin.WaitAndContinueSpecificationProperty waitAndContinueSpecification) Sets the value ofCfnBotPropsMixin.SubSlotValueElicitationSettingProperty.getWaitAndContinueSpecification()- Parameters:
waitAndContinueSpecification- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.SubSlotValueElicitationSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SubSlotValueElicitationSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-