1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListCodeReviews`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`provider_types(ProviderType)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::provider_types) / [`set_provider_types(Option<Vec::<ProviderType>>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::set_provider_types):<br>required: **false**<br><p>List of provider types for filtering that needs to be applied before displaying the result. For example, <code>providerTypes=\[GitHub\]</code> lists code reviews from GitHub.</p><br>
    ///   - [`states(JobState)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::states) / [`set_states(Option<Vec::<JobState>>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::set_states):<br>required: **false**<br><p>List of states for filtering that needs to be applied before displaying the result. For example, <code>states=\[Pending\]</code> lists code reviews in the Pending state.</p> <p>The valid code review states are:</p> <ul>  <li>   <p><code>Completed</code>: The code review is complete.</p></li>  <li>   <p><code>Pending</code>: The code review started and has not completed or failed.</p></li>  <li>   <p><code>Failed</code>: The code review failed.</p></li>  <li>   <p><code>Deleting</code>: The code review is being deleted.</p></li> </ul><br>
    ///   - [`repository_names(impl Into<String>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::repository_names) / [`set_repository_names(Option<Vec::<String>>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::set_repository_names):<br>required: **false**<br><p>List of repository names for filtering that needs to be applied before displaying the result.</p><br>
    ///   - [`r#type(Type)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::type) / [`set_type(Option<Type>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::set_type):<br>required: **true**<br><p>The type of code reviews to list in the response.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results that are returned per call. The default is 100.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::set_next_token):<br>required: **false**<br><p>If <code>nextToken</code> is returned, there are more results available. The value of <code>nextToken</code> is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.</p><br>
    /// - On success, responds with [`ListCodeReviewsOutput`](crate::operation::list_code_reviews::ListCodeReviewsOutput) with field(s):
    ///   - [`code_review_summaries(Option<Vec::<CodeReviewSummary>>)`](crate::operation::list_code_reviews::ListCodeReviewsOutput::code_review_summaries): <p>A list of code reviews that meet the criteria of the request.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_code_reviews::ListCodeReviewsOutput::next_token): <p>Pagination token.</p>
    /// - On failure, responds with [`SdkError<ListCodeReviewsError>`](crate::operation::list_code_reviews::ListCodeReviewsError)
    pub fn list_code_reviews(&self) -> crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder {
        crate::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder::new(self.handle.clone())
    }
}