aws_sdk_panorama/client/
list_packages.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 [`ListPackages`](crate::operation::list_packages::builders::ListPackagesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_packages::builders::ListPackagesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_packages::builders::ListPackagesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_packages::builders::ListPackagesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of packages to return in one page of results.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_packages::builders::ListPackagesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_packages::builders::ListPackagesFluentBuilder::set_next_token):<br>required: **false**<br><p>Specify the pagination token from a previous request to retrieve the next page of results.</p><br>
9    /// - On success, responds with [`ListPackagesOutput`](crate::operation::list_packages::ListPackagesOutput) with field(s):
10    ///   - [`packages(Option<Vec::<PackageListItem>>)`](crate::operation::list_packages::ListPackagesOutput::packages): <p>A list of packages.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_packages::ListPackagesOutput::next_token): <p>A pagination token that's included if more results are available.</p>
12    /// - On failure, responds with [`SdkError<ListPackagesError>`](crate::operation::list_packages::ListPackagesError)
13    pub fn list_packages(&self) -> crate::operation::list_packages::builders::ListPackagesFluentBuilder {
14        crate::operation::list_packages::builders::ListPackagesFluentBuilder::new(self.handle.clone())
15    }
16}