#[non_exhaustive]pub struct RecognizeTextInputBuilder { /* private fields */ }Expand description
A builder for RecognizeTextInput.
Implementations§
source§impl RecognizeTextInputBuilder
impl RecognizeTextInputBuilder
sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The identifier of the bot that processes the request.
This field is required.sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot that processes the request.
sourcepub fn get_bot_id(&self) -> &Option<String>
pub fn get_bot_id(&self) -> &Option<String>
The identifier of the bot that processes the request.
sourcepub fn bot_alias_id(self, input: impl Into<String>) -> Self
pub fn bot_alias_id(self, input: impl Into<String>) -> Self
The alias identifier in use for the bot that processes the request.
This field is required.sourcepub fn set_bot_alias_id(self, input: Option<String>) -> Self
pub fn set_bot_alias_id(self, input: Option<String>) -> Self
The alias identifier in use for the bot that processes the request.
sourcepub fn get_bot_alias_id(&self) -> &Option<String>
pub fn get_bot_alias_id(&self) -> &Option<String>
The alias identifier in use for the bot that processes the request.
sourcepub fn locale_id(self, input: impl Into<String>) -> Self
pub fn locale_id(self, input: impl Into<String>) -> Self
The locale where the session is in use.
This field is required.sourcepub fn set_locale_id(self, input: Option<String>) -> Self
pub fn set_locale_id(self, input: Option<String>) -> Self
The locale where the session is in use.
sourcepub fn get_locale_id(&self) -> &Option<String>
pub fn get_locale_id(&self) -> &Option<String>
The locale where the session is in use.
sourcepub fn session_id(self, input: impl Into<String>) -> Self
pub fn session_id(self, input: impl Into<String>) -> Self
The identifier of the user session that is having the conversation.
This field is required.sourcepub fn set_session_id(self, input: Option<String>) -> Self
pub fn set_session_id(self, input: Option<String>) -> Self
The identifier of the user session that is having the conversation.
sourcepub fn get_session_id(&self) -> &Option<String>
pub fn get_session_id(&self) -> &Option<String>
The identifier of the user session that is having the conversation.
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The text that the user entered. Amazon Lex V2 interprets this text.
This field is required.sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The text that the user entered. Amazon Lex V2 interprets this text.
sourcepub fn get_text(&self) -> &Option<String>
pub fn get_text(&self) -> &Option<String>
The text that the user entered. Amazon Lex V2 interprets this text.
sourcepub fn session_state(self, input: SessionState) -> Self
pub fn session_state(self, input: SessionState) -> Self
The current state of the dialog between the user and the bot.
sourcepub fn set_session_state(self, input: Option<SessionState>) -> Self
pub fn set_session_state(self, input: Option<SessionState>) -> Self
The current state of the dialog between the user and the bot.
sourcepub fn get_session_state(&self) -> &Option<SessionState>
pub fn get_session_state(&self) -> &Option<SessionState>
The current state of the dialog between the user and the bot.
sourcepub fn request_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn request_attributes( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to request_attributes.
To override the contents of this collection use set_request_attributes.
Request-specific information passed between the client application and Amazon Lex V2
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
sourcepub fn set_request_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_request_attributes( self, input: Option<HashMap<String, String>> ) -> Self
Request-specific information passed between the client application and Amazon Lex V2
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
sourcepub fn get_request_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_request_attributes(&self) -> &Option<HashMap<String, String>>
Request-specific information passed between the client application and Amazon Lex V2
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes with the prefix x-amz-lex:.
sourcepub fn build(self) -> Result<RecognizeTextInput, BuildError>
pub fn build(self) -> Result<RecognizeTextInput, BuildError>
Consumes the builder and constructs a RecognizeTextInput.
source§impl RecognizeTextInputBuilder
impl RecognizeTextInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RecognizeTextOutput, SdkError<RecognizeTextError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RecognizeTextOutput, SdkError<RecognizeTextError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RecognizeTextInputBuilder
impl Clone for RecognizeTextInputBuilder
source§fn clone(&self) -> RecognizeTextInputBuilder
fn clone(&self) -> RecognizeTextInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RecognizeTextInputBuilder
impl Debug for RecognizeTextInputBuilder
source§impl Default for RecognizeTextInputBuilder
impl Default for RecognizeTextInputBuilder
source§fn default() -> RecognizeTextInputBuilder
fn default() -> RecognizeTextInputBuilder
source§impl PartialEq for RecognizeTextInputBuilder
impl PartialEq for RecognizeTextInputBuilder
source§fn eq(&self, other: &RecognizeTextInputBuilder) -> bool
fn eq(&self, other: &RecognizeTextInputBuilder) -> bool
self and other values to be equal, and is used
by ==.