#[non_exhaustive]pub struct PlaybackInterruptionEventBuilder { /* private fields */ }Expand description
A builder for PlaybackInterruptionEvent.
Implementations§
source§impl PlaybackInterruptionEventBuilder
impl PlaybackInterruptionEventBuilder
sourcepub fn event_reason(self, input: PlaybackInterruptionReason) -> Self
pub fn event_reason(self, input: PlaybackInterruptionReason) -> Self
Indicates the type of user input that Amazon Lex V2 detected.
sourcepub fn set_event_reason(self, input: Option<PlaybackInterruptionReason>) -> Self
pub fn set_event_reason(self, input: Option<PlaybackInterruptionReason>) -> Self
Indicates the type of user input that Amazon Lex V2 detected.
sourcepub fn get_event_reason(&self) -> &Option<PlaybackInterruptionReason>
pub fn get_event_reason(&self) -> &Option<PlaybackInterruptionReason>
Indicates the type of user input that Amazon Lex V2 detected.
sourcepub fn caused_by_event_id(self, input: impl Into<String>) -> Self
pub fn caused_by_event_id(self, input: impl Into<String>) -> Self
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
sourcepub fn set_caused_by_event_id(self, input: Option<String>) -> Self
pub fn set_caused_by_event_id(self, input: Option<String>) -> Self
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
sourcepub fn get_caused_by_event_id(&self) -> &Option<String>
pub fn get_caused_by_event_id(&self) -> &Option<String>
The identifier of the event that contained the audio, DTMF, or text that caused the interruption.
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) -> PlaybackInterruptionEvent
pub fn build(self) -> PlaybackInterruptionEvent
Consumes the builder and constructs a PlaybackInterruptionEvent.
Trait Implementations§
source§impl Clone for PlaybackInterruptionEventBuilder
impl Clone for PlaybackInterruptionEventBuilder
source§fn clone(&self) -> PlaybackInterruptionEventBuilder
fn clone(&self) -> PlaybackInterruptionEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PlaybackInterruptionEventBuilder
impl Default for PlaybackInterruptionEventBuilder
source§fn default() -> PlaybackInterruptionEventBuilder
fn default() -> PlaybackInterruptionEventBuilder
source§impl PartialEq for PlaybackInterruptionEventBuilder
impl PartialEq for PlaybackInterruptionEventBuilder
source§fn eq(&self, other: &PlaybackInterruptionEventBuilder) -> bool
fn eq(&self, other: &PlaybackInterruptionEventBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PlaybackInterruptionEventBuilder
Auto Trait Implementations§
impl Freeze for PlaybackInterruptionEventBuilder
impl RefUnwindSafe for PlaybackInterruptionEventBuilder
impl Send for PlaybackInterruptionEventBuilder
impl Sync for PlaybackInterruptionEventBuilder
impl Unpin for PlaybackInterruptionEventBuilder
impl UnwindSafe for PlaybackInterruptionEventBuilder
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