Struct aws_sdk_lexmodelsv2::model::dialog_state::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for DialogState.
Implementations§
source§impl Builder
impl Builder
sourcepub fn dialog_action(self, input: DialogAction) -> Self
pub fn dialog_action(self, input: DialogAction) -> Self
Defines the action that the bot executes at runtime when the conversation reaches this step.
sourcepub fn set_dialog_action(self, input: Option<DialogAction>) -> Self
pub fn set_dialog_action(self, input: Option<DialogAction>) -> Self
Defines the action that the bot executes at runtime when the conversation reaches this step.
sourcepub fn intent(self, input: IntentOverride) -> Self
pub fn intent(self, input: IntentOverride) -> Self
Override settings to configure the intent state.
sourcepub fn set_intent(self, input: Option<IntentOverride>) -> Self
pub fn set_intent(self, input: Option<IntentOverride>) -> Self
Override settings to configure the intent state.
sourcepub fn session_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn session_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to session_attributes.
To override the contents of this collection use set_session_attributes.
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
sourcepub fn set_session_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_session_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
Map of key/value pairs representing session-specific context information. It contains application information passed between Amazon Lex and a client application.
sourcepub fn build(self) -> DialogState
pub fn build(self) -> DialogState
Consumes the builder and constructs a DialogState.