// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetChatMessages`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`environment_arn(impl Into<String>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
/// - [`session_id(impl Into<String>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::set_session_id):<br>required: **true**<br><p>The identifier of the chat session.</p><br>
/// - [`max_results(i32)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the <code>nextToken</code> value from the response to get the next page.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.</p><br>
/// - On success, responds with [`GetChatMessagesOutput`](crate::operation::get_chat_messages::GetChatMessagesOutput) with field(s):
/// - [`messages(Vec::<ChatMessage>)`](crate::operation::get_chat_messages::GetChatMessagesOutput::messages): <p>The list of chat messages in chronological order.</p>
/// - [`next_token(Option<String>)`](crate::operation::get_chat_messages::GetChatMessagesOutput::next_token): <p>The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.</p>
/// - On failure, responds with [`SdkError<GetChatMessagesError>`](crate::operation::get_chat_messages::GetChatMessagesError)
pub fn get_chat_messages(&self) -> crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder {
crate::operation::get_chat_messages::builders::GetChatMessagesFluentBuilder::new(self.handle.clone())
}
}