Struct aws_sdk_lexmodelsv2::types::builders::DialogStateBuilder
source · #[non_exhaustive]pub struct DialogStateBuilder { /* private fields */ }
Expand description
A builder for DialogState
.
Implementations§
source§impl DialogStateBuilder
impl DialogStateBuilder
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 get_dialog_action(&self) -> &Option<DialogAction>
pub fn get_dialog_action(&self) -> &Option<DialogAction>
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 get_intent(&self) -> &Option<IntentOverride>
pub fn get_intent(&self) -> &Option<IntentOverride>
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 get_session_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_session_attributes(&self) -> &Option<HashMap<String, String>>
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
.
Trait Implementations§
source§impl Clone for DialogStateBuilder
impl Clone for DialogStateBuilder
source§fn clone(&self) -> DialogStateBuilder
fn clone(&self) -> DialogStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DialogStateBuilder
impl Debug for DialogStateBuilder
source§impl Default for DialogStateBuilder
impl Default for DialogStateBuilder
source§fn default() -> DialogStateBuilder
fn default() -> DialogStateBuilder
source§impl PartialEq for DialogStateBuilder
impl PartialEq for DialogStateBuilder
source§fn eq(&self, other: &DialogStateBuilder) -> bool
fn eq(&self, other: &DialogStateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.