Class CfnBot.SubSlotValueElicitationSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SubSlotValueElicitationSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SubSlotValueElicitationSettingProperty>
- Enclosing interface:
CfnBot.SubSlotValueElicitationSettingProperty
@Stability(Stable)
public static final class CfnBot.SubSlotValueElicitationSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SubSlotValueElicitationSettingProperty>
A builder for
CfnBot.SubSlotValueElicitationSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultValueSpecification(IResolvable defaultValueSpecification) defaultValueSpecification(CfnBot.SlotDefaultValueSpecificationProperty defaultValueSpecification) promptSpecification(IResolvable promptSpecification) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getPromptSpecification()promptSpecification(CfnBot.PromptSpecificationProperty promptSpecification) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getPromptSpecification()sampleUtterances(List<? extends Object> sampleUtterances) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getSampleUtterances()sampleUtterances(IResolvable sampleUtterances) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getSampleUtterances()waitAndContinueSpecification(IResolvable waitAndContinueSpecification) waitAndContinueSpecification(CfnBot.WaitAndContinueSpecificationProperty waitAndContinueSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultValueSpecification
@Stability(Stable) public CfnBot.SubSlotValueElicitationSettingProperty.Builder defaultValueSpecification(IResolvable defaultValueSpecification) - Parameters:
defaultValueSpecification- the value to be set.- Returns:
this
-
defaultValueSpecification
@Stability(Stable) public CfnBot.SubSlotValueElicitationSettingProperty.Builder defaultValueSpecification(CfnBot.SlotDefaultValueSpecificationProperty defaultValueSpecification) - Parameters:
defaultValueSpecification- the value to be set.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBot.SubSlotValueElicitationSettingProperty.Builder promptSpecification(IResolvable promptSpecification) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getPromptSpecification()- Parameters:
promptSpecification- the value to be set.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBot.SubSlotValueElicitationSettingProperty.Builder promptSpecification(CfnBot.PromptSpecificationProperty promptSpecification) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getPromptSpecification()- Parameters:
promptSpecification- the value to be set.- Returns:
this
-
sampleUtterances
@Stability(Stable) public CfnBot.SubSlotValueElicitationSettingProperty.Builder sampleUtterances(IResolvable sampleUtterances) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getSampleUtterances()- 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 CfnBot.SubSlotValueElicitationSettingProperty.Builder sampleUtterances(List<? extends Object> sampleUtterances) Sets the value ofCfnBot.SubSlotValueElicitationSettingProperty.getSampleUtterances()- 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 CfnBot.SubSlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(IResolvable waitAndContinueSpecification) - Parameters:
waitAndContinueSpecification- the value to be set.- Returns:
this
-
waitAndContinueSpecification
@Stability(Stable) public CfnBot.SubSlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(CfnBot.WaitAndContinueSpecificationProperty waitAndContinueSpecification) - Parameters:
waitAndContinueSpecification- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.SubSlotValueElicitationSettingProperty>- Returns:
- a new instance of
CfnBot.SubSlotValueElicitationSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-