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 [`ListFindings`](crate::operation::list_findings::builders::ListFindingsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`assessment_run_arns(impl Into<String>)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::assessment_run_arns) / [`set_assessment_run_arns(Option<Vec::<String>>)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::set_assessment_run_arns):<br>required: **false**<br><p>The ARNs of the assessment runs that generate the findings that you want to list.</p><br>
    ///   - [`filter(FindingFilter)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::filter) / [`set_filter(Option<FindingFilter>)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::set_filter):<br>required: **false**<br><p>You can use this parameter to specify a subset of data to be included in the action's response.</p>  <p>For a record to match a filter, all specified filter attributes must match. When multiple values are specified for a filter attribute, any of the values can match.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::set_next_token):<br>required: **false**<br><p>You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the <b>ListFindings</b> action. Subsequent calls to the action fill <b>nextToken</b> in the request with the value of <b>NextToken</b> from the previous response to continue listing data.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_findings::builders::ListFindingsFluentBuilder::set_max_results):<br>required: **false**<br><p>You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.</p><br>
    /// - On success, responds with [`ListFindingsOutput`](crate::operation::list_findings::ListFindingsOutput) with field(s):
    ///   - [`finding_arns(Vec::<String>)`](crate::operation::list_findings::ListFindingsOutput::finding_arns): <p>A list of ARNs that specifies the findings returned by the action.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_findings::ListFindingsOutput::next_token): <p> When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the <b>nextToken</b> parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.</p>
    /// - On failure, responds with [`SdkError<ListFindingsError>`](crate::operation::list_findings::ListFindingsError)
    pub fn list_findings(&self) -> crate::operation::list_findings::builders::ListFindingsFluentBuilder {
        crate::operation::list_findings::builders::ListFindingsFluentBuilder::new(self.handle.clone())
    }
}