#[non_exhaustive]pub struct GetSessionOutputBuilder { /* private fields */ }
Expand description
A builder for GetSessionOutput
.
Implementations§
source§impl GetSessionOutputBuilder
impl GetSessionOutputBuilder
sourcepub fn recent_intent_summary_view(self, input: IntentSummary) -> Self
pub fn recent_intent_summary_view(self, input: IntentSummary) -> Self
Appends an item to recent_intent_summary_view
.
To override the contents of this collection use set_recent_intent_summary_view
.
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the recentIntentSummaryView
operation contains information about the last three intents used.
If you set the checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.
sourcepub fn set_recent_intent_summary_view(
self,
input: Option<Vec<IntentSummary>>
) -> Self
pub fn set_recent_intent_summary_view( self, input: Option<Vec<IntentSummary>> ) -> Self
An array of information about the intents used in the session. The array can contain a maximum of three summaries. If more than three intents are used in the session, the recentIntentSummaryView
operation contains information about the last three intents used.
If you set the checkpointLabelFilter
parameter in the request, the array contains only the intents with the specified label.
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 the 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 the session-specific context information. It contains application information passed between Amazon Lex and a client application.
sourcepub fn session_id(self, input: impl Into<String>) -> Self
pub fn session_id(self, input: impl Into<String>) -> Self
A unique identifier for the session.
sourcepub fn set_session_id(self, input: Option<String>) -> Self
pub fn set_session_id(self, input: Option<String>) -> Self
A unique identifier for the session.
sourcepub fn dialog_action(self, input: DialogAction) -> Self
pub fn dialog_action(self, input: DialogAction) -> Self
Describes the current state of the bot.
sourcepub fn set_dialog_action(self, input: Option<DialogAction>) -> Self
pub fn set_dialog_action(self, input: Option<DialogAction>) -> Self
Describes the current state of the bot.
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
.
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the PostContent
, PostText
, or PutSession
operation.
You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
sourcepub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
pub fn set_active_contexts(self, input: Option<Vec<ActiveContext>>) -> Self
A list of active contexts for the session. A context can be set when an intent is fulfilled or by calling the PostContent
, PostText
, or PutSession
operation.
You can use a context to control the intents that can follow up an intent, or to modify the operation of your application.
sourcepub fn build(self) -> GetSessionOutput
pub fn build(self) -> GetSessionOutput
Consumes the builder and constructs a GetSessionOutput
.
Trait Implementations§
source§impl Clone for GetSessionOutputBuilder
impl Clone for GetSessionOutputBuilder
source§fn clone(&self) -> GetSessionOutputBuilder
fn clone(&self) -> GetSessionOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetSessionOutputBuilder
impl Debug for GetSessionOutputBuilder
source§impl Default for GetSessionOutputBuilder
impl Default for GetSessionOutputBuilder
source§fn default() -> GetSessionOutputBuilder
fn default() -> GetSessionOutputBuilder
source§impl PartialEq<GetSessionOutputBuilder> for GetSessionOutputBuilder
impl PartialEq<GetSessionOutputBuilder> for GetSessionOutputBuilder
source§fn eq(&self, other: &GetSessionOutputBuilder) -> bool
fn eq(&self, other: &GetSessionOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.