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