#[non_exhaustive]pub struct AudioSpecificationBuilder { /* private fields */ }Expand description
A builder for AudioSpecification.
Implementations§
source§impl AudioSpecificationBuilder
impl AudioSpecificationBuilder
sourcepub fn max_length_ms(self, input: i32) -> Self
pub fn max_length_ms(self, input: i32) -> Self
Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
This field is required.sourcepub fn set_max_length_ms(self, input: Option<i32>) -> Self
pub fn set_max_length_ms(self, input: Option<i32>) -> Self
Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
sourcepub fn get_max_length_ms(&self) -> &Option<i32>
pub fn get_max_length_ms(&self) -> &Option<i32>
Time for how long Amazon Lex waits before speech input is truncated and the speech is returned to application.
sourcepub fn end_timeout_ms(self, input: i32) -> Self
pub fn end_timeout_ms(self, input: i32) -> Self
Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
This field is required.sourcepub fn set_end_timeout_ms(self, input: Option<i32>) -> Self
pub fn set_end_timeout_ms(self, input: Option<i32>) -> Self
Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
sourcepub fn get_end_timeout_ms(&self) -> &Option<i32>
pub fn get_end_timeout_ms(&self) -> &Option<i32>
Time for which a bot waits after the customer stops speaking to assume the utterance is finished.
sourcepub fn build(self) -> Result<AudioSpecification, BuildError>
pub fn build(self) -> Result<AudioSpecification, BuildError>
Consumes the builder and constructs a AudioSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AudioSpecificationBuilder
impl Clone for AudioSpecificationBuilder
source§fn clone(&self) -> AudioSpecificationBuilder
fn clone(&self) -> AudioSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AudioSpecificationBuilder
impl Debug for AudioSpecificationBuilder
source§impl Default for AudioSpecificationBuilder
impl Default for AudioSpecificationBuilder
source§fn default() -> AudioSpecificationBuilder
fn default() -> AudioSpecificationBuilder
source§impl PartialEq for AudioSpecificationBuilder
impl PartialEq for AudioSpecificationBuilder
source§fn eq(&self, other: &AudioSpecificationBuilder) -> bool
fn eq(&self, other: &AudioSpecificationBuilder) -> bool
self and other values to be equal, and is used
by ==.