Struct aws_sdk_lexruntimev2::input::PutSessionInput
source · #[non_exhaustive]pub struct PutSessionInput { /* private fields */ }Implementations§
source§impl PutSessionInput
impl PutSessionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutSession, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutSession, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutSession>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutSessionInput.
source§impl PutSessionInput
impl PutSessionInput
sourcepub fn bot_alias_id(&self) -> Option<&str>
pub fn bot_alias_id(&self) -> Option<&str>
The alias identifier of the bot that receives the session data.
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
The identifier of the session that receives the session data.
sourcepub fn messages(&self) -> Option<&[Message]>
pub fn messages(&self) -> Option<&[Message]>
A list of messages to send to the user. Messages are sent in the order that they are defined in the list.
sourcepub fn session_state(&self) -> Option<&SessionState>
pub fn session_state(&self) -> Option<&SessionState>
Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.
sourcepub fn request_attributes(&self) -> Option<&HashMap<String, String>>
pub fn request_attributes(&self) -> Option<&HashMap<String, String>>
Request-specific information passed between Amazon Lex V2 and the client application.
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
sourcepub fn response_content_type(&self) -> Option<&str>
pub fn response_content_type(&self) -> Option<&str>
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
-
If the value is
text/plain; charset=utf-8, Amazon Lex V2 returns text in the response.
Trait Implementations§
source§impl Clone for PutSessionInput
impl Clone for PutSessionInput
source§fn clone(&self) -> PutSessionInput
fn clone(&self) -> PutSessionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutSessionInput
impl Debug for PutSessionInput
source§impl PartialEq<PutSessionInput> for PutSessionInput
impl PartialEq<PutSessionInput> for PutSessionInput
source§fn eq(&self, other: &PutSessionInput) -> bool
fn eq(&self, other: &PutSessionInput) -> bool
self and other values to be equal, and is used
by ==.