aws_sdk_devopsagent/client/list_chats.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ListChats`](crate::operation::list_chats::builders::ListChatsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`agent_space_id(impl Into<String>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::set_agent_space_id):<br>required: **true**<br>Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)<br>
7 /// - [`user_id(impl Into<String>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::set_user_id):<br>required: **true**<br>The user identifier to list chats for<br>
8 /// - [`max_results(i32)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::set_max_results):<br>required: **false**<br>Maximum number of results to return<br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_chats::builders::ListChatsFluentBuilder::set_next_token):<br>required: **false**<br>Token for pagination<br>
10 /// - On success, responds with [`ListChatsOutput`](crate::operation::list_chats::ListChatsOutput) with field(s):
11 /// - [`executions(Vec::<ChatExecution>)`](crate::operation::list_chats::ListChatsOutput::executions): List of recent chat executions
12 /// - [`next_token(Option<String>)`](crate::operation::list_chats::ListChatsOutput::next_token): Token for retrieving the next page of results
13 /// - On failure, responds with [`SdkError<ListChatsError>`](crate::operation::list_chats::ListChatsError)
14 pub fn list_chats(&self) -> crate::operation::list_chats::builders::ListChatsFluentBuilder {
15 crate::operation::list_chats::builders::ListChatsFluentBuilder::new(self.handle.clone())
16 }
17}