#[non_exhaustive]pub struct PromptAttemptSpecificationBuilder { /* private fields */ }
Expand description
A builder for PromptAttemptSpecification
.
Implementations§
source§impl PromptAttemptSpecificationBuilder
impl PromptAttemptSpecificationBuilder
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 attempt 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 attempt 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 attempt from the bot.
sourcepub fn allowed_input_types(self, input: AllowedInputTypes) -> Self
pub fn allowed_input_types(self, input: AllowedInputTypes) -> Self
Indicates the allowed input types of the prompt attempt.
This field is required.sourcepub fn set_allowed_input_types(self, input: Option<AllowedInputTypes>) -> Self
pub fn set_allowed_input_types(self, input: Option<AllowedInputTypes>) -> Self
Indicates the allowed input types of the prompt attempt.
sourcepub fn get_allowed_input_types(&self) -> &Option<AllowedInputTypes>
pub fn get_allowed_input_types(&self) -> &Option<AllowedInputTypes>
Indicates the allowed input types of the prompt attempt.
sourcepub fn audio_and_dtmf_input_specification(
self,
input: AudioAndDtmfInputSpecification
) -> Self
pub fn audio_and_dtmf_input_specification( self, input: AudioAndDtmfInputSpecification ) -> Self
Specifies the settings on audio and DTMF input.
sourcepub fn set_audio_and_dtmf_input_specification(
self,
input: Option<AudioAndDtmfInputSpecification>
) -> Self
pub fn set_audio_and_dtmf_input_specification( self, input: Option<AudioAndDtmfInputSpecification> ) -> Self
Specifies the settings on audio and DTMF input.
sourcepub fn get_audio_and_dtmf_input_specification(
&self
) -> &Option<AudioAndDtmfInputSpecification>
pub fn get_audio_and_dtmf_input_specification( &self ) -> &Option<AudioAndDtmfInputSpecification>
Specifies the settings on audio and DTMF input.
sourcepub fn text_input_specification(self, input: TextInputSpecification) -> Self
pub fn text_input_specification(self, input: TextInputSpecification) -> Self
Specifies the settings on text input.
sourcepub fn set_text_input_specification(
self,
input: Option<TextInputSpecification>
) -> Self
pub fn set_text_input_specification( self, input: Option<TextInputSpecification> ) -> Self
Specifies the settings on text input.
sourcepub fn get_text_input_specification(&self) -> &Option<TextInputSpecification>
pub fn get_text_input_specification(&self) -> &Option<TextInputSpecification>
Specifies the settings on text input.
sourcepub fn build(self) -> PromptAttemptSpecification
pub fn build(self) -> PromptAttemptSpecification
Consumes the builder and constructs a PromptAttemptSpecification
.
Trait Implementations§
source§impl Clone for PromptAttemptSpecificationBuilder
impl Clone for PromptAttemptSpecificationBuilder
source§fn clone(&self) -> PromptAttemptSpecificationBuilder
fn clone(&self) -> PromptAttemptSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PromptAttemptSpecificationBuilder
impl Default for PromptAttemptSpecificationBuilder
source§fn default() -> PromptAttemptSpecificationBuilder
fn default() -> PromptAttemptSpecificationBuilder
source§impl PartialEq for PromptAttemptSpecificationBuilder
impl PartialEq for PromptAttemptSpecificationBuilder
source§fn eq(&self, other: &PromptAttemptSpecificationBuilder) -> bool
fn eq(&self, other: &PromptAttemptSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.