aws_sdk_qconnect/client/
get_next_message.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetNextMessage`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`assistant_id(impl Into<String>)`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect assistant.</p><br>
    ///   - [`session_id(impl Into<String>)`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::set_session_id):<br>required: **true**<br><p>The identifier of the Amazon Q in Connect session.</p><br>
    ///   - [`next_message_token(impl Into<String>)`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::next_message_token) / [`set_next_message_token(Option<String>)`](crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::set_next_message_token):<br>required: **true**<br><p>The token for the next message. Use the value returned in the SendMessage or previous response in the next request to retrieve the next message.</p><br>
    /// - On success, responds with [`GetNextMessageOutput`](crate::operation::get_next_message::GetNextMessageOutput) with field(s):
    ///   - [`r#type(MessageType)`](crate::operation::get_next_message::GetNextMessageOutput::type): <p>The type of message response.</p>
    ///   - [`response(Option<MessageOutput>)`](crate::operation::get_next_message::GetNextMessageOutput::response): <p>The message response to the requested message.</p>
    ///   - [`request_message_id(String)`](crate::operation::get_next_message::GetNextMessageOutput::request_message_id): <p>The identifier of the submitted message.</p>
    ///   - [`conversation_state(Option<ConversationState>)`](crate::operation::get_next_message::GetNextMessageOutput::conversation_state): <p>The state of current conversation.</p>
    ///   - [`next_message_token(Option<String>)`](crate::operation::get_next_message::GetNextMessageOutput::next_message_token): <p>The token for the next message.</p>
    ///   - [`conversation_session_data(Option<Vec::<RuntimeSessionData>>)`](crate::operation::get_next_message::GetNextMessageOutput::conversation_session_data): <p>The conversation data stored on an Amazon Q in Connect Session.</p>
    /// - On failure, responds with [`SdkError<GetNextMessageError>`](crate::operation::get_next_message::GetNextMessageError)
    pub fn get_next_message(&self) -> crate::operation::get_next_message::builders::GetNextMessageFluentBuilder {
        crate::operation::get_next_message::builders::GetNextMessageFluentBuilder::new(self.handle.clone())
    }
}