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
impl StructuralPartialEq for DialogStateBuilder
Auto Trait Implementations§
impl Freeze for DialogStateBuilder
impl RefUnwindSafe for DialogStateBuilder
impl Send for DialogStateBuilder
impl Sync for DialogStateBuilder
impl Unpin for DialogStateBuilder
impl UnwindSafe for DialogStateBuilder
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
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)
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>
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>
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 more