aws_sdk_iot/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 results returned at one time.</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>The token for the next set of results.</p><br>
9 /// - On success, responds with [`ListPackagesOutput`](crate::operation::list_packages::ListPackagesOutput) with field(s):
10 /// - [`package_summaries(Option<Vec::<PackageSummary>>)`](crate::operation::list_packages::ListPackagesOutput::package_summaries): <p>The software package summary.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_packages::ListPackagesOutput::next_token): <p>The token for the next set of results.</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}