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 [`ListRuleSets`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`ListRuleSetsOutput`](crate::operation::list_rule_sets::ListRuleSetsOutput) with field(s):
    ///   - [`rule_sets(Vec::<RuleSet>)`](crate::operation::list_rule_sets::ListRuleSetsOutput::rule_sets): <p>The list of rule sets.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<ListRuleSetsError>`](crate::operation::list_rule_sets::ListRuleSetsError)
    pub fn list_rule_sets(&self) -> crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder {
        crate::operation::list_rule_sets::builders::ListRuleSetsFluentBuilder::new(self.handle.clone())
    }
}