Struct aws_sdk_lexmodelsv2::types::builders::DialogActionBuilder
source · #[non_exhaustive]pub struct DialogActionBuilder { /* private fields */ }
Expand description
A builder for DialogAction
.
Implementations§
source§impl DialogActionBuilder
impl DialogActionBuilder
sourcepub fn type(self, input: DialogActionType) -> Self
pub fn type(self, input: DialogActionType) -> Self
The action that the bot should execute.
This field is required.sourcepub fn set_type(self, input: Option<DialogActionType>) -> Self
pub fn set_type(self, input: Option<DialogActionType>) -> Self
The action that the bot should execute.
sourcepub fn get_type(&self) -> &Option<DialogActionType>
pub fn get_type(&self) -> &Option<DialogActionType>
The action that the bot should execute.
sourcepub fn slot_to_elicit(self, input: impl Into<String>) -> Self
pub fn slot_to_elicit(self, input: impl Into<String>) -> Self
If the dialog action is ElicitSlot
, defines the slot to elicit from the user.
sourcepub fn set_slot_to_elicit(self, input: Option<String>) -> Self
pub fn set_slot_to_elicit(self, input: Option<String>) -> Self
If the dialog action is ElicitSlot
, defines the slot to elicit from the user.
sourcepub fn get_slot_to_elicit(&self) -> &Option<String>
pub fn get_slot_to_elicit(&self) -> &Option<String>
If the dialog action is ElicitSlot
, defines the slot to elicit from the user.
sourcepub fn suppress_next_message(self, input: bool) -> Self
pub fn suppress_next_message(self, input: bool) -> Self
When true the next message for the intent is not used.
sourcepub fn set_suppress_next_message(self, input: Option<bool>) -> Self
pub fn set_suppress_next_message(self, input: Option<bool>) -> Self
When true the next message for the intent is not used.
sourcepub fn get_suppress_next_message(&self) -> &Option<bool>
pub fn get_suppress_next_message(&self) -> &Option<bool>
When true the next message for the intent is not used.
sourcepub fn build(self) -> Result<DialogAction, BuildError>
pub fn build(self) -> Result<DialogAction, BuildError>
Consumes the builder and constructs a DialogAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DialogActionBuilder
impl Clone for DialogActionBuilder
source§fn clone(&self) -> DialogActionBuilder
fn clone(&self) -> DialogActionBuilder
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 DialogActionBuilder
impl Debug for DialogActionBuilder
source§impl Default for DialogActionBuilder
impl Default for DialogActionBuilder
source§fn default() -> DialogActionBuilder
fn default() -> DialogActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DialogActionBuilder
impl PartialEq for DialogActionBuilder
impl StructuralPartialEq for DialogActionBuilder
Auto Trait Implementations§
impl Freeze for DialogActionBuilder
impl RefUnwindSafe for DialogActionBuilder
impl Send for DialogActionBuilder
impl Sync for DialogActionBuilder
impl Unpin for DialogActionBuilder
impl UnwindSafe for DialogActionBuilder
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
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.