#[non_exhaustive]pub struct ResponseSpecificationBuilder { /* private fields */ }Expand description
A builder for ResponseSpecification.
Implementations§
source§impl ResponseSpecificationBuilder
impl ResponseSpecificationBuilder
sourcepub fn message_groups(self, input: MessageGroup) -> Self
pub fn message_groups(self, input: MessageGroup) -> Self
Appends an item to message_groups.
To override the contents of this collection use set_message_groups.
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
sourcepub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
pub fn set_message_groups(self, input: Option<Vec<MessageGroup>>) -> Self
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
sourcepub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
pub fn get_message_groups(&self) -> &Option<Vec<MessageGroup>>
A collection of responses that Amazon Lex can send to the user. Amazon Lex chooses the actual response to send at runtime.
sourcepub fn allow_interrupt(self, input: bool) -> Self
pub fn allow_interrupt(self, input: bool) -> Self
Indicates whether the user can interrupt a speech response from Amazon Lex.
sourcepub fn set_allow_interrupt(self, input: Option<bool>) -> Self
pub fn set_allow_interrupt(self, input: Option<bool>) -> Self
Indicates whether the user can interrupt a speech response from Amazon Lex.
sourcepub fn get_allow_interrupt(&self) -> &Option<bool>
pub fn get_allow_interrupt(&self) -> &Option<bool>
Indicates whether the user can interrupt a speech response from Amazon Lex.
sourcepub fn build(self) -> Result<ResponseSpecification, BuildError>
pub fn build(self) -> Result<ResponseSpecification, BuildError>
Consumes the builder and constructs a ResponseSpecification.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResponseSpecificationBuilder
impl Clone for ResponseSpecificationBuilder
source§fn clone(&self) -> ResponseSpecificationBuilder
fn clone(&self) -> ResponseSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResponseSpecificationBuilder
impl Debug for ResponseSpecificationBuilder
source§impl Default for ResponseSpecificationBuilder
impl Default for ResponseSpecificationBuilder
source§fn default() -> ResponseSpecificationBuilder
fn default() -> ResponseSpecificationBuilder
source§impl PartialEq for ResponseSpecificationBuilder
impl PartialEq for ResponseSpecificationBuilder
source§fn eq(&self, other: &ResponseSpecificationBuilder) -> bool
fn eq(&self, other: &ResponseSpecificationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseSpecificationBuilder
Auto Trait Implementations§
impl Freeze for ResponseSpecificationBuilder
impl RefUnwindSafe for ResponseSpecificationBuilder
impl Send for ResponseSpecificationBuilder
impl Sync for ResponseSpecificationBuilder
impl Unpin for ResponseSpecificationBuilder
impl UnwindSafe for ResponseSpecificationBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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