aws_sdk_codestar/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    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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 continuation token to be used to return the next set of results, if the results cannot be returned in one response.</p><br>
7    ///   - [`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 amount of data that can be contained in a single set of results.</p><br>
8    /// - On success, responds with [`ListProjectsOutput`](crate::operation::list_projects::ListProjectsOutput) with field(s):
9    ///   - [`projects(Vec::<ProjectSummary>)`](crate::operation::list_projects::ListProjectsOutput::projects): <p>A list of projects.</p>
10    ///   - [`next_token(Option<String>)`](crate::operation::list_projects::ListProjectsOutput::next_token): <p>The continuation token to use when requesting the next set of results, if there are more results to be returned.</p>
11    /// - On failure, responds with [`SdkError<ListProjectsError>`](crate::operation::list_projects::ListProjectsError)
12    pub fn list_projects(&self) -> crate::operation::list_projects::builders::ListProjectsFluentBuilder {
13        crate::operation::list_projects::builders::ListProjectsFluentBuilder::new(self.handle.clone())
14    }
15}