1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListDomains`](crate::operation::list_domains::builders::ListDomainsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_page_token(impl Into<String>)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::next_page_token) / [`set_next_page_token(Option<String>)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::set_next_page_token):<br>required: **false**<br><p>If <code>NextPageToken</code> is returned there are more results available. The value of <code>NextPageToken</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. Using an expired pagination token will return a <code>400</code> error: "<code>Specified token has exceeded its maximum lifetime</code>".</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p><br>
    ///   - [`registration_status(RegistrationStatus)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::registration_status) / [`set_registration_status(Option<RegistrationStatus>)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::set_registration_status):<br>required: **true**<br><p>Specifies the registration status of the domains to list.</p><br>
    ///   - [`maximum_page_size(i32)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::maximum_page_size) / [`set_maximum_page_size(Option<i32>)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::set_maximum_page_size):<br>required: **false**<br><p>The maximum number of results that are returned per call. Use <code>nextPageToken</code> to obtain further pages of results.</p><br>
    ///   - [`reverse_order(bool)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::reverse_order) / [`set_reverse_order(Option<bool>)`](crate::operation::list_domains::builders::ListDomainsFluentBuilder::set_reverse_order):<br>required: **false**<br><p>When set to <code>true</code>, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by <code>name</code> of the domains.</p><br>
    /// - On success, responds with [`ListDomainsOutput`](crate::operation::list_domains::ListDomainsOutput) with field(s):
    ///   - [`domain_infos(Vec::<DomainInfo>)`](crate::operation::list_domains::ListDomainsOutput::domain_infos): <p>A list of DomainInfo structures.</p>
    ///   - [`next_page_token(Option<String>)`](crate::operation::list_domains::ListDomainsOutput::next_page_token): <p>If a <code>NextPageToken</code> was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextPageToken</code>. Keep all other arguments unchanged.</p> <p>The configured <code>maximumPageSize</code> determines how many results can be returned in a single call.</p>
    /// - On failure, responds with [`SdkError<ListDomainsError>`](crate::operation::list_domains::ListDomainsError)
    pub fn list_domains(&self) -> crate::operation::list_domains::builders::ListDomainsFluentBuilder {
        crate::operation::list_domains::builders::ListDomainsFluentBuilder::new(self.handle.clone())
    }
}