Struct aws_sdk_lexruntimev2::types::builders::SessionStateBuilder
source · #[non_exhaustive]pub struct SessionStateBuilder { /* private fields */ }Expand description
A builder for SessionState.
Implementations§
source§impl SessionStateBuilder
impl SessionStateBuilder
sourcepub fn dialog_action(self, input: DialogAction) -> Self
pub fn dialog_action(self, input: DialogAction) -> Self
The next step that Amazon Lex V2 should take in the conversation with a user.
sourcepub fn set_dialog_action(self, input: Option<DialogAction>) -> Self
pub fn set_dialog_action(self, input: Option<DialogAction>) -> Self
The next step that Amazon Lex V2 should take in the conversation with a user.
sourcepub fn get_dialog_action(&self) -> &Option<DialogAction>
pub fn get_dialog_action(&self) -> &Option<DialogAction>
The next step that Amazon Lex V2 should take in the conversation with a user.
sourcepub fn set_intent(self, input: Option<Intent>) -> Self
pub fn set_intent(self, input: Option<Intent>) -> Self
The active intent that Amazon Lex V2 is processing.
sourcepub fn get_intent(&self) -> &Option<Intent>
pub fn get_intent(&self) -> &Option<Intent>
The active intent that Amazon Lex V2 is processing.
sourcepub fn active_contexts(self, input: ActiveContext) -> Self
pub fn active_contexts(self, input: ActiveContext) -> Self
Appends an item to active_contexts.
To override the contents of this collection use set_active_contexts.
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
sourcepub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
pub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
sourcepub fn get_active_contexts(&self) -> &Option<Vec<ActiveContext>>
pub fn get_active_contexts(&self) -> &Option<Vec<ActiveContext>>
One or more contexts that indicate to Amazon Lex V2 the context of a request. When a context is active, Amazon Lex V2 considers intents with the matching context as a trigger as the next intent in a session.
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 V2 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 V2 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 V2 and a client application.
sourcepub fn originating_request_id(self, input: impl Into<String>) -> Self
pub fn originating_request_id(self, input: impl Into<String>) -> Self
A unique identifier for a specific request.
sourcepub fn set_originating_request_id(self, input: Option<String>) -> Self
pub fn set_originating_request_id(self, input: Option<String>) -> Self
A unique identifier for a specific request.
sourcepub fn get_originating_request_id(&self) -> &Option<String>
pub fn get_originating_request_id(&self) -> &Option<String>
A unique identifier for a specific request.
sourcepub fn runtime_hints(self, input: RuntimeHints) -> Self
pub fn runtime_hints(self, input: RuntimeHints) -> Self
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
sourcepub fn set_runtime_hints(self, input: Option<RuntimeHints>) -> Self
pub fn set_runtime_hints(self, input: Option<RuntimeHints>) -> Self
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
sourcepub fn get_runtime_hints(&self) -> &Option<RuntimeHints>
pub fn get_runtime_hints(&self) -> &Option<RuntimeHints>
Hints for phrases that a customer is likely to use for a slot. Amazon Lex V2 uses the hints to help determine the correct value of a slot.
sourcepub fn build(self) -> SessionState
pub fn build(self) -> SessionState
Consumes the builder and constructs a SessionState.
Trait Implementations§
source§impl Clone for SessionStateBuilder
impl Clone for SessionStateBuilder
source§fn clone(&self) -> SessionStateBuilder
fn clone(&self) -> SessionStateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SessionStateBuilder
impl Debug for SessionStateBuilder
source§impl Default for SessionStateBuilder
impl Default for SessionStateBuilder
source§fn default() -> SessionStateBuilder
fn default() -> SessionStateBuilder
source§impl PartialEq for SessionStateBuilder
impl PartialEq for SessionStateBuilder
source§fn eq(&self, other: &SessionStateBuilder) -> bool
fn eq(&self, other: &SessionStateBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SessionStateBuilder
Auto Trait Implementations§
impl Freeze for SessionStateBuilder
impl RefUnwindSafe for SessionStateBuilder
impl Send for SessionStateBuilder
impl Sync for SessionStateBuilder
impl Unpin for SessionStateBuilder
impl UnwindSafe for SessionStateBuilder
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> 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