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 [`ListGroups`](crate::operation::list_groups::builders::ListGroupsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`application_id(impl Into<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_application_id):<br>required: **true**<br><p>The identifier of the application for getting a list of groups mapped to users.</p><br>
    ///   - [`index_id(impl Into<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::index_id) / [`set_index_id(Option<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_index_id):<br>required: **true**<br><p>The identifier of the index for getting a list of groups mapped to users.</p><br>
    ///   - [`updated_earlier_than(DateTime)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::updated_earlier_than) / [`set_updated_earlier_than(Option<DateTime>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_updated_earlier_than):<br>required: **true**<br><p>The timestamp identifier used for the latest <code>PUT</code> or <code>DELETE</code> action for mapping users to their groups.</p><br>
    ///   - [`data_source_id(impl Into<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::data_source_id) / [`set_data_source_id(Option<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_data_source_id):<br>required: **false**<br><p>The identifier of the data source for getting a list of groups mapped to users.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the previous response was incomplete (because there is more data to retrieve), Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of groups that are mapped to users.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of returned groups that are mapped to users.</p><br>
    /// - On success, responds with [`ListGroupsOutput`](crate::operation::list_groups::ListGroupsOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_groups::ListGroupsOutput::next_token): <p>If the response is truncated, Amazon Q Business returns this token that you can use in the subsequent request to retrieve the next set of groups that are mapped to users.</p>
    ///   - [`items(Option<Vec::<GroupSummary>>)`](crate::operation::list_groups::ListGroupsOutput::items): <p>Summary information for list of groups that are mapped to users.</p>
    /// - On failure, responds with [`SdkError<ListGroupsError>`](crate::operation::list_groups::ListGroupsError)
    pub fn list_groups(&self) -> crate::operation::list_groups::builders::ListGroupsFluentBuilder {
        crate::operation::list_groups::builders::ListGroupsFluentBuilder::new(self.handle.clone())
    }
}