1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListWorkGroups`](crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of workgroups to return in this request.</p><br>
    /// - On success, responds with [`ListWorkGroupsOutput`](crate::operation::list_work_groups::ListWorkGroupsOutput) with field(s):
    ///   - [`work_groups(Option<Vec::<WorkGroupSummary>>)`](crate::operation::list_work_groups::ListWorkGroupsOutput::work_groups): <p>A list of <code>WorkGroupSummary</code> objects that include the names, descriptions, creation times, and states for each workgroup.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_work_groups::ListWorkGroupsOutput::next_token): <p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p>
    /// - On failure, responds with [`SdkError<ListWorkGroupsError>`](crate::operation::list_work_groups::ListWorkGroupsError)
    pub fn list_work_groups(&self) -> crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder {
        crate::operation::list_work_groups::builders::ListWorkGroupsFluentBuilder::new(self.handle.clone())
    }
}