Struct aws_sdk_lexmodelsv2::model::prompt_specification::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for PromptSpecification.
Implementations§
source§impl Builder
impl Builder
sourcepub fn message_groups(self, input: MessageGroup) -> Self
pub fn message_groups(self, input: MessageGroup) -> Self
Appends an item to message_groups.
To override the contents of this collection use set_message_groups.
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
sourcepub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
pub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
sourcepub fn max_retries(self, input: i32) -> Self
pub fn max_retries(self, input: i32) -> Self
The maximum number of times the bot tries to elicit a response from the user using this prompt.
sourcepub fn set_max_retries(self, input: Option<i32>) -> Self
pub fn set_max_retries(self, input: Option<i32>) -> Self
The maximum number of times the bot tries to elicit a response from the user using this prompt.
sourcepub fn allow_interrupt(self, input: bool) -> Self
pub fn allow_interrupt(self, input: bool) -> Self
Indicates whether the user can interrupt a speech prompt from the bot.
sourcepub fn set_allow_interrupt(self, input: Option<bool>) -> Self
pub fn set_allow_interrupt(self, input: Option<bool>) -> Self
Indicates whether the user can interrupt a speech prompt from the bot.
sourcepub fn message_selection_strategy(self, input: MessageSelectionStrategy) -> Self
pub fn message_selection_strategy(self, input: MessageSelectionStrategy) -> Self
Indicates how a message is selected from a message group among retries.
sourcepub fn set_message_selection_strategy(
self,
input: Option<MessageSelectionStrategy>
) -> Self
pub fn set_message_selection_strategy(
self,
input: Option<MessageSelectionStrategy>
) -> Self
Indicates how a message is selected from a message group among retries.
sourcepub fn prompt_attempts_specification(
self,
k: PromptAttempt,
v: PromptAttemptSpecification
) -> Self
pub fn prompt_attempts_specification(
self,
k: PromptAttempt,
v: PromptAttemptSpecification
) -> Self
Adds a key-value pair to prompt_attempts_specification.
To override the contents of this collection use set_prompt_attempts_specification.
Specifies the advanced settings on each attempt of the prompt.
sourcepub fn set_prompt_attempts_specification(
self,
input: Option<HashMap<PromptAttempt, PromptAttemptSpecification>>
) -> Self
pub fn set_prompt_attempts_specification(
self,
input: Option<HashMap<PromptAttempt, PromptAttemptSpecification>>
) -> Self
Specifies the advanced settings on each attempt of the prompt.
sourcepub fn build(self) -> PromptSpecification
pub fn build(self) -> PromptSpecification
Consumes the builder and constructs a PromptSpecification.