#[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 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 build(self) -> ResponseSpecification
pub fn build(self) -> ResponseSpecification
Consumes the builder and constructs a ResponseSpecification.
Trait Implementations§
source§impl Clone for ResponseSpecificationBuilder
impl Clone for ResponseSpecificationBuilder
source§fn clone(&self) -> ResponseSpecificationBuilder
fn clone(&self) -> ResponseSpecificationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<ResponseSpecificationBuilder> for ResponseSpecificationBuilder
impl PartialEq<ResponseSpecificationBuilder> for ResponseSpecificationBuilder
source§fn eq(&self, other: &ResponseSpecificationBuilder) -> bool
fn eq(&self, other: &ResponseSpecificationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResponseSpecificationBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more