aws_sdk_mailmanager/client/
list_address_lists.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 [`ListAddressLists`](crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder::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_address_lists::builders::ListAddressListsFluentBuilder::page_size) / [`set_page_size(Option<i32>)`](crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder::set_page_size):<br>required: **false**<br><p>The maximum number of address list resources that are returned per call. You can use NextToken to retrieve the next page of address lists.</p><br>
9    /// - On success, responds with [`ListAddressListsOutput`](crate::operation::list_address_lists::ListAddressListsOutput) with field(s):
10    ///   - [`address_lists(Vec::<AddressList>)`](crate::operation::list_address_lists::ListAddressListsOutput::address_lists): <p>The list of address lists.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_address_lists::ListAddressListsOutput::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<ListAddressListsError>`](crate::operation::list_address_lists::ListAddressListsError)
13    pub fn list_address_lists(&self) -> crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder {
14        crate::operation::list_address_lists::builders::ListAddressListsFluentBuilder::new(self.handle.clone())
15    }
16}