#[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 ==.impl StructuralPartialEq for AudioSpecificationBuilder
Auto Trait Implementations§
impl Freeze for AudioSpecificationBuilder
impl RefUnwindSafe for AudioSpecificationBuilder
impl Send for AudioSpecificationBuilder
impl Sync for AudioSpecificationBuilder
impl Unpin for AudioSpecificationBuilder
impl UnwindSafe for AudioSpecificationBuilder
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