#[non_exhaustive]pub struct AudioAndDtmfInputSpecificationBuilder { /* private fields */ }Expand description
A builder for AudioAndDtmfInputSpecification.
Implementations§
source§impl AudioAndDtmfInputSpecificationBuilder
impl AudioAndDtmfInputSpecificationBuilder
sourcepub fn start_timeout_ms(self, input: i32) -> Self
pub fn start_timeout_ms(self, input: i32) -> Self
Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
This field is required.sourcepub fn set_start_timeout_ms(self, input: Option<i32>) -> Self
pub fn set_start_timeout_ms(self, input: Option<i32>) -> Self
Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
sourcepub fn get_start_timeout_ms(&self) -> &Option<i32>
pub fn get_start_timeout_ms(&self) -> &Option<i32>
Time for which a bot waits before assuming that the customer isn't going to speak or press a key. This timeout is shared between Audio and DTMF inputs.
sourcepub fn audio_specification(self, input: AudioSpecification) -> Self
pub fn audio_specification(self, input: AudioSpecification) -> Self
Specifies the settings on audio input.
sourcepub fn set_audio_specification(self, input: Option<AudioSpecification>) -> Self
pub fn set_audio_specification(self, input: Option<AudioSpecification>) -> Self
Specifies the settings on audio input.
sourcepub fn get_audio_specification(&self) -> &Option<AudioSpecification>
pub fn get_audio_specification(&self) -> &Option<AudioSpecification>
Specifies the settings on audio input.
sourcepub fn dtmf_specification(self, input: DtmfSpecification) -> Self
pub fn dtmf_specification(self, input: DtmfSpecification) -> Self
Specifies the settings on DTMF input.
sourcepub fn set_dtmf_specification(self, input: Option<DtmfSpecification>) -> Self
pub fn set_dtmf_specification(self, input: Option<DtmfSpecification>) -> Self
Specifies the settings on DTMF input.
sourcepub fn get_dtmf_specification(&self) -> &Option<DtmfSpecification>
pub fn get_dtmf_specification(&self) -> &Option<DtmfSpecification>
Specifies the settings on DTMF input.
sourcepub fn build(self) -> Result<AudioAndDtmfInputSpecification, BuildError>
pub fn build(self) -> Result<AudioAndDtmfInputSpecification, BuildError>
Consumes the builder and constructs a AudioAndDtmfInputSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AudioAndDtmfInputSpecificationBuilder
impl Clone for AudioAndDtmfInputSpecificationBuilder
source§fn clone(&self) -> AudioAndDtmfInputSpecificationBuilder
fn clone(&self) -> AudioAndDtmfInputSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AudioAndDtmfInputSpecificationBuilder
impl Default for AudioAndDtmfInputSpecificationBuilder
source§fn default() -> AudioAndDtmfInputSpecificationBuilder
fn default() -> AudioAndDtmfInputSpecificationBuilder
source§impl PartialEq for AudioAndDtmfInputSpecificationBuilder
impl PartialEq for AudioAndDtmfInputSpecificationBuilder
source§fn eq(&self, other: &AudioAndDtmfInputSpecificationBuilder) -> bool
fn eq(&self, other: &AudioAndDtmfInputSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.