aws_sdk_voiceid/client/list_watchlists.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListWatchlists`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`domain_id(impl Into<String>)`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::domain_id) / [`set_domain_id(Option<String>)`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::set_domain_id):<br>required: **true**<br><p>The identifier of the domain.</p><br>
/// - [`max_results(i32)`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results that are returned per call. You can use <code>NextToken</code> to obtain more pages of results. The default is 100; the maximum allowed page size is also 100.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::set_next_token):<br>required: **false**<br><p>If <code>NextToken</code> is returned, there are more results available. The value of <code>NextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.</p><br>
/// - On success, responds with [`ListWatchlistsOutput`](crate::operation::list_watchlists::ListWatchlistsOutput) with field(s):
/// - [`watchlist_summaries(Option<Vec::<WatchlistSummary>>)`](crate::operation::list_watchlists::ListWatchlistsOutput::watchlist_summaries): <p>A list that contains details about each watchlist in the Amazon Web Services account.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_watchlists::ListWatchlistsOutput::next_token): <p>If <code>NextToken</code> is returned, there are more results available. The value of <code>NextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours.</p>
/// - On failure, responds with [`SdkError<ListWatchlistsError>`](crate::operation::list_watchlists::ListWatchlistsError)
pub fn list_watchlists(&self) -> crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder {
crate::operation::list_watchlists::builders::ListWatchlistsFluentBuilder::new(self.handle.clone())
}
}