aws_sdk_costoptimizationhub/client/
list_recommendations.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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(Filter)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::filter) / [`set_filter(Option<Filter>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_filter):<br>required: **false**<br><p>The constraints that you want all returned recommendations to match.</p><br>
    ///   - [`order_by(OrderBy)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::order_by) / [`set_order_by(Option<OrderBy>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_order_by):<br>required: **false**<br><p>The ordering of recommendations by a dimension.</p><br>
    ///   - [`include_all_recommendations(bool)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::include_all_recommendations) / [`set_include_all_recommendations(Option<bool>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_include_all_recommendations):<br>required: **false**<br><p>List of all recommendations for a resource, or a single recommendation if de-duped by <code>resourceId</code>.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_recommendations::builders::ListRecommendationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of recommendations that are returned for the request.</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>The token to retrieve the next set of results.</p><br>
    /// - On success, responds with [`ListRecommendationsOutput`](crate::operation::list_recommendations::ListRecommendationsOutput) with field(s):
    ///   - [`items(Option<Vec::<Recommendation>>)`](crate::operation::list_recommendations::ListRecommendationsOutput::items): <p>List of all savings recommendations.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_recommendations::ListRecommendationsOutput::next_token): <p>The token to retrieve the next set of results.</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())
    }
}