#[non_exhaustive]pub struct PromptSpecificationBuilder { /* private fields */ }Expand description
A builder for PromptSpecification.
Implementations§
source§impl PromptSpecificationBuilder
impl PromptSpecificationBuilder
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 get_message_groups(&self) -> &Option<Vec<MessageGroup>>
pub fn get_message_groups(&self) -> &Option<Vec<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, 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.
This field is required.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 get_max_retries(&self) -> &Option<i32>
pub fn get_max_retries(&self) -> &Option<i32>
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 get_allow_interrupt(&self) -> &Option<bool>
pub fn get_allow_interrupt(&self) -> &Option<bool>
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 get_message_selection_strategy(
&self,
) -> &Option<MessageSelectionStrategy>
pub fn get_message_selection_strategy( &self, ) -> &Option<MessageSelectionStrategy>
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 get_prompt_attempts_specification(
&self,
) -> &Option<HashMap<PromptAttempt, PromptAttemptSpecification>>
pub fn get_prompt_attempts_specification( &self, ) -> &Option<HashMap<PromptAttempt, PromptAttemptSpecification>>
Specifies the advanced settings on each attempt of the prompt.
sourcepub fn build(self) -> Result<PromptSpecification, BuildError>
pub fn build(self) -> Result<PromptSpecification, BuildError>
Consumes the builder and constructs a PromptSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PromptSpecificationBuilder
impl Clone for PromptSpecificationBuilder
source§fn clone(&self) -> PromptSpecificationBuilder
fn clone(&self) -> PromptSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PromptSpecificationBuilder
impl Debug for PromptSpecificationBuilder
source§impl Default for PromptSpecificationBuilder
impl Default for PromptSpecificationBuilder
source§fn default() -> PromptSpecificationBuilder
fn default() -> PromptSpecificationBuilder
source§impl PartialEq for PromptSpecificationBuilder
impl PartialEq for PromptSpecificationBuilder
source§fn eq(&self, other: &PromptSpecificationBuilder) -> bool
fn eq(&self, other: &PromptSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PromptSpecificationBuilder
Auto Trait Implementations§
impl Freeze for PromptSpecificationBuilder
impl RefUnwindSafe for PromptSpecificationBuilder
impl Send for PromptSpecificationBuilder
impl Sync for PromptSpecificationBuilder
impl Unpin for PromptSpecificationBuilder
impl UnwindSafe for PromptSpecificationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more