1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RecognizeText`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`bot_id(impl Into<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_bot_id): <p>The identifier of the bot that processes the request.</p>
    ///   - [`bot_alias_id(impl Into<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::bot_alias_id) / [`set_bot_alias_id(Option<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_bot_alias_id): <p>The alias identifier in use for the bot that processes the request.</p>
    ///   - [`locale_id(impl Into<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_locale_id): <p>The locale where the session is in use.</p>
    ///   - [`session_id(impl Into<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_session_id): <p>The identifier of the user session that is having the conversation.</p>
    ///   - [`text(impl Into<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::text) / [`set_text(Option<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_text): <p>The text that the user entered. Amazon Lex V2 interprets this text.</p>
    ///   - [`session_state(SessionState)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::session_state) / [`set_session_state(Option<SessionState>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_session_state): <p>The current state of the dialog between the user and the bot.</p>
    ///   - [`request_attributes(impl Into<String>, impl Into<String>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::request_attributes) / [`set_request_attributes(Option<HashMap<String, String>>)`](crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::set_request_attributes): <p>Request-specific information passed between the client application and Amazon Lex V2 </p>  <p>The namespace <code>x-amz-lex:</code> is reserved for special attributes. Don't create any request attributes with the prefix <code>x-amz-lex:</code>.</p>
    /// - On success, responds with [`RecognizeTextOutput`](crate::operation::recognize_text::RecognizeTextOutput) with field(s):
    ///   - [`messages(Option<Vec<Message>>)`](crate::operation::recognize_text::RecognizeTextOutput::messages): <p>A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.</p>
    ///   - [`session_state(Option<SessionState>)`](crate::operation::recognize_text::RecognizeTextOutput::session_state): <p>Represents the current state of the dialog between the user and the bot. </p>  <p>Use this to determine the progress of the conversation and what the next action may be.</p>
    ///   - [`interpretations(Option<Vec<Interpretation>>)`](crate::operation::recognize_text::RecognizeTextOutput::interpretations): <p>A list of intents that Amazon Lex V2 determined might satisfy the user's utterance. </p>  <p>Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.</p>
    ///   - [`request_attributes(Option<HashMap<String, String>>)`](crate::operation::recognize_text::RecognizeTextOutput::request_attributes): <p>The attributes sent in the request.</p>
    ///   - [`session_id(Option<String>)`](crate::operation::recognize_text::RecognizeTextOutput::session_id): <p>The identifier of the session in use.</p>
    ///   - [`recognized_bot_member(Option<RecognizedBotMember>)`](crate::operation::recognize_text::RecognizeTextOutput::recognized_bot_member): <p>The bot member that recognized the text.</p>
    /// - On failure, responds with [`SdkError<RecognizeTextError>`](crate::operation::recognize_text::RecognizeTextError)
    pub fn recognize_text(&self) -> crate::operation::recognize_text::builders::RecognizeTextFluentBuilder {
        crate::operation::recognize_text::builders::RecognizeTextFluentBuilder::new(self.handle.clone())
    }
}