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.
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 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 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 build(self) -> DialogAction
pub fn build(self) -> DialogAction
Consumes the builder and constructs a DialogAction.
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<DialogActionBuilder> for DialogActionBuilder
impl PartialEq<DialogActionBuilder> for DialogActionBuilder
source§fn eq(&self, other: &DialogActionBuilder) -> bool
fn eq(&self, other: &DialogActionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.