1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListPackageGroups`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_domain):<br>required: **true**<br><p>The domain for which you want to list package groups.</p><br>
    ///   - [`domain_owner(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_domain_owner):<br>required: **false**<br><p>The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
    ///   - [`prefix(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::prefix) / [`set_prefix(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_prefix):<br>required: **false**<br><p>A prefix for which to search package groups. When included, <code>ListPackageGroups</code> will return only package groups with patterns that match the prefix.</p><br>
    /// - On success, responds with [`ListPackageGroupsOutput`](crate::operation::list_package_groups::ListPackageGroupsOutput) with field(s):
    ///   - [`package_groups(Option<Vec::<PackageGroupSummary>>)`](crate::operation::list_package_groups::ListPackageGroupsOutput::package_groups): <p>The list of package groups in the requested domain.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_package_groups::ListPackageGroupsOutput::next_token): <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListPackageGroupsError>`](crate::operation::list_package_groups::ListPackageGroupsError)
    pub fn list_package_groups(&self) -> crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder {
        crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::new(self.handle.clone())
    }
}