1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListSharedProjects`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`sort_by(SharedResourceSortByType)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::sort_by) / [`set_sort_by(Option<SharedResourceSortByType>)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::set_sort_by):<br>required: **false**<br><p>The criterion to be used to list build projects shared with the current Amazon Web Services account or user. Valid values include:</p> <ul>  <li>   <p><code>ARN</code>: List based on the ARN.</p></li>  <li>   <p><code>MODIFIED_TIME</code>: List based on when information about the shared project was last changed.</p></li> </ul><br>
    ///   - [`sort_order(SortOrderType)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::sort_order) / [`set_sort_order(Option<SortOrderType>)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::set_sort_order):<br>required: **false**<br><p>The order in which to list shared build projects. Valid values include:</p> <ul>  <li>   <p><code>ASCENDING</code>: List in ascending order.</p></li>  <li>   <p><code>DESCENDING</code>: List in descending order.</p></li> </ul><br>
    ///   - [`max_results(i32)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of paginated shared build projects returned per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>Project</code> objects. The default value is 100.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::set_next_token):<br>required: **false**<br><p>During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.</p><br>
    /// - On success, responds with [`ListSharedProjectsOutput`](crate::operation::list_shared_projects::ListSharedProjectsOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_shared_projects::ListSharedProjectsOutput::next_token): <p>During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.</p>
    ///   - [`projects(Option<Vec::<String>>)`](crate::operation::list_shared_projects::ListSharedProjectsOutput::projects): <p>The list of ARNs for the build projects shared with the current Amazon Web Services account or user.</p>
    /// - On failure, responds with [`SdkError<ListSharedProjectsError>`](crate::operation::list_shared_projects::ListSharedProjectsError)
    pub fn list_shared_projects(&self) -> crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder {
        crate::operation::list_shared_projects::builders::ListSharedProjectsFluentBuilder::new(self.handle.clone())
    }
}