aws_sdk_iotsitewise/client/
list_projects.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 [`ListProjects`](crate::operation::list_projects::builders::ListProjectsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`portal_id(impl Into<String>)`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::portal_id) / [`set_portal_id(Option<String>)`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::set_portal_id):<br>required: **true**<br><p>The ID of the portal.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to be used for the next set of paginated results.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_projects::builders::ListProjectsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return for each paginated request.</p> <p>Default: 50</p><br>
10    /// - On success, responds with [`ListProjectsOutput`](crate::operation::list_projects::ListProjectsOutput) with field(s):
11    ///   - [`project_summaries(Vec::<ProjectSummary>)`](crate::operation::list_projects::ListProjectsOutput::project_summaries): <p>A list that summarizes each project in the portal.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_projects::ListProjectsOutput::next_token): <p>The token for the next set of results, or null if there are no additional results.</p>
13    /// - On failure, responds with [`SdkError<ListProjectsError>`](crate::operation::list_projects::ListProjectsError)
14    pub fn list_projects(&self) -> crate::operation::list_projects::builders::ListProjectsFluentBuilder {
15        crate::operation::list_projects::builders::ListProjectsFluentBuilder::new(self.handle.clone())
16    }
17}