pub struct Builder { /* private fields */ }Expand description
A builder for PromptAttemptSpecification.
Implementations§
source§impl Builder
impl Builder
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 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.
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 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 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 build(self) -> PromptAttemptSpecification
pub fn build(self) -> PromptAttemptSpecification
Consumes the builder and constructs a PromptAttemptSpecification.