Struct aws_sdk_lexmodelsv2::types::PromptSpecification
source · #[non_exhaustive]pub struct PromptSpecification {
pub message_groups: Vec<MessageGroup>,
pub max_retries: i32,
pub allow_interrupt: Option<bool>,
pub message_selection_strategy: Option<MessageSelectionStrategy>,
pub prompt_attempts_specification: Option<HashMap<PromptAttempt, PromptAttemptSpecification>>,
}
Expand description
Specifies a list of message groups that Amazon Lex sends to a user to elicit a response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.message_groups: Vec<MessageGroup>
A collection of messages that Amazon Lex can send to the user. Amazon Lex chooses the actual message to send at runtime.
max_retries: i32
The maximum number of times the bot tries to elicit a response from the user using this prompt.
allow_interrupt: Option<bool>
Indicates whether the user can interrupt a speech prompt from the bot.
message_selection_strategy: Option<MessageSelectionStrategy>
Indicates how a message is selected from a message group among retries.
prompt_attempts_specification: Option<HashMap<PromptAttempt, PromptAttemptSpecification>>
Specifies the advanced settings on each attempt of the prompt.
Implementations§
source§impl PromptSpecification
impl PromptSpecification
sourcepub fn message_groups(&self) -> &[MessageGroup]
pub fn message_groups(&self) -> &[MessageGroup]
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) -> i32
pub fn max_retries(&self) -> i32
The maximum number of times the bot tries to elicit a response from the user using this prompt.
sourcepub fn allow_interrupt(&self) -> Option<bool>
pub fn allow_interrupt(&self) -> Option<bool>
Indicates whether the user can interrupt a speech prompt from the bot.
sourcepub fn message_selection_strategy(&self) -> Option<&MessageSelectionStrategy>
pub fn message_selection_strategy(&self) -> Option<&MessageSelectionStrategy>
Indicates how a message is selected from a message group among retries.
sourcepub fn prompt_attempts_specification(
&self
) -> Option<&HashMap<PromptAttempt, PromptAttemptSpecification>>
pub fn prompt_attempts_specification( &self ) -> Option<&HashMap<PromptAttempt, PromptAttemptSpecification>>
Specifies the advanced settings on each attempt of the prompt.
source§impl PromptSpecification
impl PromptSpecification
sourcepub fn builder() -> PromptSpecificationBuilder
pub fn builder() -> PromptSpecificationBuilder
Creates a new builder-style object to manufacture PromptSpecification
.
Trait Implementations§
source§impl Clone for PromptSpecification
impl Clone for PromptSpecification
source§fn clone(&self) -> PromptSpecification
fn clone(&self) -> PromptSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PromptSpecification
impl Debug for PromptSpecification
source§impl PartialEq for PromptSpecification
impl PartialEq for PromptSpecification
source§fn eq(&self, other: &PromptSpecification) -> bool
fn eq(&self, other: &PromptSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.