aws_sdk_forecast/client/list_dataset_groups.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 [`ListDatasetGroups`](crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the result of the previous request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder::set_max_results):<br>required: **false**<br><p>The number of items to return in the response.</p><br>
9 /// - On success, responds with [`ListDatasetGroupsOutput`](crate::operation::list_dataset_groups::ListDatasetGroupsOutput) with field(s):
10 /// - [`dataset_groups(Option<Vec::<DatasetGroupSummary>>)`](crate::operation::list_dataset_groups::ListDatasetGroupsOutput::dataset_groups): <p>An array of objects that summarize each dataset group's properties.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_dataset_groups::ListDatasetGroupsOutput::next_token): <p>If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.</p>
12 /// - On failure, responds with [`SdkError<ListDatasetGroupsError>`](crate::operation::list_dataset_groups::ListDatasetGroupsError)
13 pub fn list_dataset_groups(&self) -> crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder {
14 crate::operation::list_dataset_groups::builders::ListDatasetGroupsFluentBuilder::new(self.handle.clone())
15 }
16}