public static final class CfnBot.SlotValueElicitationSettingProperty.Builder
extends java.lang.Object
CfnBot.SlotValueElicitationSettingProperty
Constructor and Description |
---|
Builder() |
public CfnBot.SlotValueElicitationSettingProperty.Builder slotConstraint(java.lang.String slotConstraint)
CfnBot.SlotValueElicitationSettingProperty.getSlotConstraint()
slotConstraint
- Specifies whether the slot is required or optional. This parameter is required.this
public CfnBot.SlotValueElicitationSettingProperty.Builder defaultValueSpecification(IResolvable defaultValueSpecification)
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
public CfnBot.SlotValueElicitationSettingProperty.Builder defaultValueSpecification(CfnBot.SlotDefaultValueSpecificationProperty defaultValueSpecification)
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
public CfnBot.SlotValueElicitationSettingProperty.Builder promptSpecification(IResolvable promptSpecification)
CfnBot.SlotValueElicitationSettingProperty.getPromptSpecification()
promptSpecification
- The prompt that Amazon Lex uses to elicit the slot value from the user.this
public CfnBot.SlotValueElicitationSettingProperty.Builder promptSpecification(CfnBot.PromptSpecificationProperty promptSpecification)
CfnBot.SlotValueElicitationSettingProperty.getPromptSpecification()
promptSpecification
- The prompt that Amazon Lex uses to elicit the slot value from the user.this
public CfnBot.SlotValueElicitationSettingProperty.Builder sampleUtterances(IResolvable sampleUtterances)
CfnBot.SlotValueElicitationSettingProperty.getSampleUtterances()
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
public CfnBot.SlotValueElicitationSettingProperty.Builder sampleUtterances(java.util.List<? extends java.lang.Object> sampleUtterances)
CfnBot.SlotValueElicitationSettingProperty.getSampleUtterances()
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
public CfnBot.SlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(IResolvable waitAndContinueSpecification)
waitAndContinueSpecification
- Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.this
public CfnBot.SlotValueElicitationSettingProperty.Builder waitAndContinueSpecification(CfnBot.WaitAndContinueSpecificationProperty waitAndContinueSpecification)
waitAndContinueSpecification
- Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.this
public CfnBot.SlotValueElicitationSettingProperty build()
CfnBot.SlotValueElicitationSettingProperty
java.lang.NullPointerException
- if any required attribute was not provided