#[non_exhaustive]pub struct SlotValueElicitationSettingBuilder { /* private fields */ }Expand description
A builder for SlotValueElicitationSetting.
Implementations§
source§impl SlotValueElicitationSettingBuilder
impl SlotValueElicitationSettingBuilder
sourcepub fn default_value_specification(
self,
input: SlotDefaultValueSpecification
) -> Self
pub fn default_value_specification( self, input: SlotDefaultValueSpecification ) -> Self
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.
sourcepub fn set_default_value_specification(
self,
input: Option<SlotDefaultValueSpecification>
) -> Self
pub fn set_default_value_specification( self, input: Option<SlotDefaultValueSpecification> ) -> Self
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.
sourcepub fn slot_constraint(self, input: SlotConstraint) -> Self
pub fn slot_constraint(self, input: SlotConstraint) -> Self
Specifies whether the slot is required or optional.
sourcepub fn set_slot_constraint(self, input: Option<SlotConstraint>) -> Self
pub fn set_slot_constraint(self, input: Option<SlotConstraint>) -> Self
Specifies whether the slot is required or optional.
sourcepub fn prompt_specification(self, input: PromptSpecification) -> Self
pub fn prompt_specification(self, input: PromptSpecification) -> Self
The prompt that Amazon Lex uses to elicit the slot value from the user.
sourcepub fn set_prompt_specification(
self,
input: Option<PromptSpecification>
) -> Self
pub fn set_prompt_specification( self, input: Option<PromptSpecification> ) -> Self
The prompt that Amazon Lex uses to elicit the slot value from the user.
sourcepub fn sample_utterances(self, input: SampleUtterance) -> Self
pub fn sample_utterances(self, input: SampleUtterance) -> Self
Appends an item to sample_utterances.
To override the contents of this collection use set_sample_utterances.
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.
sourcepub fn set_sample_utterances(self, input: Option<Vec<SampleUtterance>>) -> Self
pub fn set_sample_utterances(self, input: Option<Vec<SampleUtterance>>) -> Self
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.
sourcepub fn wait_and_continue_specification(
self,
input: WaitAndContinueSpecification
) -> Self
pub fn wait_and_continue_specification( self, input: WaitAndContinueSpecification ) -> Self
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
sourcepub fn set_wait_and_continue_specification(
self,
input: Option<WaitAndContinueSpecification>
) -> Self
pub fn set_wait_and_continue_specification( self, input: Option<WaitAndContinueSpecification> ) -> Self
Specifies the prompts that Amazon Lex uses while a bot is waiting for customer input.
sourcepub fn slot_capture_setting(self, input: SlotCaptureSetting) -> Self
pub fn slot_capture_setting(self, input: SlotCaptureSetting) -> Self
Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
sourcepub fn set_slot_capture_setting(self, input: Option<SlotCaptureSetting>) -> Self
pub fn set_slot_capture_setting(self, input: Option<SlotCaptureSetting>) -> Self
Specifies the settings that Amazon Lex uses when a slot value is successfully entered by a user.
sourcepub fn build(self) -> SlotValueElicitationSetting
pub fn build(self) -> SlotValueElicitationSetting
Consumes the builder and constructs a SlotValueElicitationSetting.
Trait Implementations§
source§impl Clone for SlotValueElicitationSettingBuilder
impl Clone for SlotValueElicitationSettingBuilder
source§fn clone(&self) -> SlotValueElicitationSettingBuilder
fn clone(&self) -> SlotValueElicitationSettingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SlotValueElicitationSettingBuilder
impl Default for SlotValueElicitationSettingBuilder
source§fn default() -> SlotValueElicitationSettingBuilder
fn default() -> SlotValueElicitationSettingBuilder
source§impl PartialEq<SlotValueElicitationSettingBuilder> for SlotValueElicitationSettingBuilder
impl PartialEq<SlotValueElicitationSettingBuilder> for SlotValueElicitationSettingBuilder
source§fn eq(&self, other: &SlotValueElicitationSettingBuilder) -> bool
fn eq(&self, other: &SlotValueElicitationSettingBuilder) -> bool
self and other values to be equal, and is used
by ==.