#[non_exhaustive]pub struct AudioResponseEventBuilder { /* private fields */ }Expand description
A builder for AudioResponseEvent.
Implementations§
source§impl AudioResponseEventBuilder
impl AudioResponseEventBuilder
sourcepub fn audio_chunk(self, input: Blob) -> Self
pub fn audio_chunk(self, input: Blob) -> Self
A chunk of the audio to play.
sourcepub fn set_audio_chunk(self, input: Option<Blob>) -> Self
pub fn set_audio_chunk(self, input: Option<Blob>) -> Self
A chunk of the audio to play.
sourcepub fn get_audio_chunk(&self) -> &Option<Blob>
pub fn get_audio_chunk(&self) -> &Option<Blob>
A chunk of the audio to play.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The encoding of the audio chunk. This is the same as the encoding configure in the contentType field of the ConfigurationEvent.
sourcepub fn event_id(self, input: impl Into<String>) -> Self
pub fn event_id(self, input: impl Into<String>) -> Self
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
sourcepub fn set_event_id(self, input: Option<String>) -> Self
pub fn set_event_id(self, input: Option<String>) -> Self
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
sourcepub fn get_event_id(&self) -> &Option<String>
pub fn get_event_id(&self) -> &Option<String>
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N, where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current session.
sourcepub fn build(self) -> AudioResponseEvent
pub fn build(self) -> AudioResponseEvent
Consumes the builder and constructs a AudioResponseEvent.
Trait Implementations§
source§impl Clone for AudioResponseEventBuilder
impl Clone for AudioResponseEventBuilder
source§fn clone(&self) -> AudioResponseEventBuilder
fn clone(&self) -> AudioResponseEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AudioResponseEventBuilder
impl Debug for AudioResponseEventBuilder
source§impl Default for AudioResponseEventBuilder
impl Default for AudioResponseEventBuilder
source§fn default() -> AudioResponseEventBuilder
fn default() -> AudioResponseEventBuilder
source§impl PartialEq for AudioResponseEventBuilder
impl PartialEq for AudioResponseEventBuilder
source§fn eq(&self, other: &AudioResponseEventBuilder) -> bool
fn eq(&self, other: &AudioResponseEventBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AudioResponseEventBuilder
Auto Trait Implementations§
impl Freeze for AudioResponseEventBuilder
impl RefUnwindSafe for AudioResponseEventBuilder
impl Send for AudioResponseEventBuilder
impl Sync for AudioResponseEventBuilder
impl Unpin for AudioResponseEventBuilder
impl UnwindSafe for AudioResponseEventBuilder
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> 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