Class CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueElicitationSettingProperty>
- Enclosing interface:
CfnBotPropsMixin.SlotValueElicitationSettingProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueElicitationSettingProperty>
A builder for
CfnBotPropsMixin.SlotValueElicitationSettingProperty-
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) slotCaptureSetting(CfnBotPropsMixin.SlotCaptureSettingProperty slotCaptureSetting) slotCaptureSetting(IResolvable slotCaptureSetting) slotConstraint(String slotConstraint) Sets the value ofCfnBotPropsMixin.SlotValueElicitationSettingProperty.getSlotConstraint()waitAndContinueSpecification(CfnBotPropsMixin.WaitAndContinueSpecificationProperty waitAndContinueSpecification) waitAndContinueSpecification(IResolvable waitAndContinueSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultValueSpecification
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder defaultValueSpecification(IResolvable defaultValueSpecification) Sets the value ofCfnBotPropsMixin.SlotValueElicitationSettingProperty.getDefaultValueSpecification()- 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:
this
-
defaultValueSpecification
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder defaultValueSpecification(CfnBotPropsMixin.SlotDefaultValueSpecificationProperty defaultValueSpecification) Sets the value ofCfnBotPropsMixin.SlotValueElicitationSettingProperty.getDefaultValueSpecification()- 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:
this
-
promptSpecification
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder promptSpecification(IResolvable promptSpecification) - Parameters:
promptSpecification- The prompt that Amazon Lex uses to elicit the slot value from the user.- Returns:
this
-
promptSpecification
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder promptSpecification(CfnBotPropsMixin.PromptSpecificationProperty promptSpecification) - Parameters:
promptSpecification- The prompt that Amazon Lex uses to elicit the slot value from the user.- Returns:
this
-
sampleUtterances
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder sampleUtterances(IResolvable sampleUtterances) - 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:
this
-
sampleUtterances
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.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 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:
this
-
slotCaptureSetting
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder slotCaptureSetting(IResolvable slotCaptureSetting) - Parameters:
slotCaptureSetting- Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.- Returns:
this
-
slotCaptureSetting
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder slotCaptureSetting(CfnBotPropsMixin.SlotCaptureSettingProperty slotCaptureSetting) - Parameters:
slotCaptureSetting- Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.- Returns:
this
-
slotConstraint
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder slotConstraint(String slotConstraint) Sets the value ofCfnBotPropsMixin.SlotValueElicitationSettingProperty.getSlotConstraint()- Parameters:
slotConstraint- Specifies whether the slot is required or optional.- Returns:
this
-
waitAndContinueSpecification
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(IResolvable waitAndContinueSpecification) Sets the value ofCfnBotPropsMixin.SlotValueElicitationSettingProperty.getWaitAndContinueSpecification()- Parameters:
waitAndContinueSpecification- Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.- Returns:
this
-
waitAndContinueSpecification
@Stability(Stable) public CfnBotPropsMixin.SlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(CfnBotPropsMixin.WaitAndContinueSpecificationProperty waitAndContinueSpecification) Sets the value ofCfnBotPropsMixin.SlotValueElicitationSettingProperty.getWaitAndContinueSpecification()- Parameters:
waitAndContinueSpecification- Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueElicitationSettingProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SlotValueElicitationSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-