Struct aws_sdk_lexmodelsv2::model::dialog_action::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DialogAction.
Implementations§
source§impl Builder
impl Builder
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.