#[non_exhaustive]pub struct PutSessionOutputBuilder { /* private fields */ }Expand description
A builder for PutSessionOutput.
Implementations§
source§impl PutSessionOutputBuilder
impl PutSessionOutputBuilder
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The type of response. Same as the type specified in the responseContentType field in the request.
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The type of response. Same as the type specified in the responseContentType field in the request.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The type of response. Same as the type specified in the responseContentType field in the request.
sourcepub fn messages(self, input: impl Into<String>) -> Self
pub fn messages(self, input: impl Into<String>) -> Self
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
sourcepub fn set_messages(self, input: Option<String>) -> Self
pub fn set_messages(self, input: Option<String>) -> Self
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
sourcepub fn get_messages(&self) -> &Option<String>
pub fn get_messages(&self) -> &Option<String>
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
sourcepub fn session_state(self, input: impl Into<String>) -> Self
pub fn session_state(self, input: impl Into<String>) -> Self
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
sourcepub fn set_session_state(self, input: Option<String>) -> Self
pub fn set_session_state(self, input: Option<String>) -> Self
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
sourcepub fn get_session_state(&self) -> &Option<String>
pub fn get_session_state(&self) -> &Option<String>
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
sourcepub fn request_attributes(self, input: impl Into<String>) -> Self
pub fn request_attributes(self, input: impl Into<String>) -> Self
A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the requestAttribute parameter in the call to the PutSession operation.
sourcepub fn set_request_attributes(self, input: Option<String>) -> Self
pub fn set_request_attributes(self, input: Option<String>) -> Self
A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the requestAttribute parameter in the call to the PutSession operation.
sourcepub fn get_request_attributes(&self) -> &Option<String>
pub fn get_request_attributes(&self) -> &Option<String>
A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the requestAttribute parameter in the call to the PutSession operation.
sourcepub fn session_id(self, input: impl Into<String>) -> Self
pub fn session_id(self, input: impl Into<String>) -> Self
The identifier of the session that received the data.
sourcepub fn set_session_id(self, input: Option<String>) -> Self
pub fn set_session_id(self, input: Option<String>) -> Self
The identifier of the session that received the data.
sourcepub fn get_session_id(&self) -> &Option<String>
pub fn get_session_id(&self) -> &Option<String>
The identifier of the session that received the data.
sourcepub fn audio_stream(self, input: ByteStream) -> Self
pub fn audio_stream(self, input: ByteStream) -> Self
If the requested content type was audio, the audio version of the message to convey to the user.
sourcepub fn set_audio_stream(self, input: Option<ByteStream>) -> Self
pub fn set_audio_stream(self, input: Option<ByteStream>) -> Self
If the requested content type was audio, the audio version of the message to convey to the user.
sourcepub fn get_audio_stream(&self) -> &Option<ByteStream>
pub fn get_audio_stream(&self) -> &Option<ByteStream>
If the requested content type was audio, the audio version of the message to convey to the user.
sourcepub fn build(self) -> PutSessionOutput
pub fn build(self) -> PutSessionOutput
Consumes the builder and constructs a PutSessionOutput.