aws_sdk_mailmanager/client/list_rule_sets.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 [`ListRuleSets`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::set_next_token):<br>required: **false**<br><p>If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.</p><br>
8 /// - [`page_size(i32)`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::page_size) / [`set_page_size(Option<i32>)`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::set_page_size):<br>required: **false**<br><p>The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.</p><br>
9 /// - On success, responds with [`ListRuleSetsOutput`](crate::operation::list_rule_sets::ListRuleSetsOutput) with field(s):
10 /// - [`rule_sets(Vec::<RuleSet>)`](crate::operation::list_rule_sets::ListRuleSetsOutput::rule_sets): <p>The list of rule sets.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_rule_sets::ListRuleSetsOutput::next_token): <p>If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.</p>
12 /// - On failure, responds with [`SdkError<ListRuleSetsError>`](crate::operation::list_rule_sets::ListRuleSetsError)
13 pub fn list_rule_sets(&self) -> crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder {
14 crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::new(self.handle.clone())
15 }
16}