1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListRecommendations`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`filter(ListRecommendationsFilterKey, impl Into<String>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::filter) / [`set_filter(Option<HashMap::<ListRecommendationsFilterKey, String>>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_filter):<br>required: **false**<br><p>Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of <code>STATUS</code> and <code>IMPACT</code> or <code>STATUS</code> and <code>TYPE</code></p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token returned from a previous call to <code>ListRecommendations</code> to indicate the position in the list of recommendations.</p><br>
    ///   - [`page_size(i32)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::page_size) / [`set_page_size(Option<i32>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_page_size):<br>required: **false**<br><p>The number of results to show in a single call to <code>ListRecommendations</code>. If the number of results is larger than the number you specified in this parameter, then the response includes a <code>NextToken</code> element, which you can use to obtain additional results.</p> <p>The value you specify has to be at least 1, and can be no more than 100.</p><br>
    /// - On success, responds with [`ListRecommendationsOutput`](crate::operation::list_recommendations::ListRecommendationsOutput) with field(s):
    ///   - [`recommendations(Option<Vec::<Recommendation>>)`](crate::operation::list_recommendations::ListRecommendationsOutput::recommendations): <p>The recommendations applicable to your account.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_recommendations::ListRecommendationsOutput::next_token): <p>A string token indicating that there might be additional recommendations available to be listed. Use the token provided in the <code>ListRecommendationsResponse</code> to use in the subsequent call to <code>ListRecommendations</code> with the same parameters to retrieve the next page of recommendations.</p>
    /// - On failure, responds with [`SdkError<ListRecommendationsError>`](crate::operation::list_recommendations::ListRecommendationsError)
    pub fn list_recommendations(&self) -> crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder {
        crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::new(self.handle.clone())
    }
}