aws_sdk_computeoptimizer/client/
get_recommendation_summaries.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetRecommendationSummaries`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`account_ids(impl Into<String>)`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::account_ids) / [`set_account_ids(Option<Vec::<String>>)`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::set_account_ids):<br>required: **false**<br><p>The ID of the Amazon Web Services account for which to return recommendation summaries.</p> <p>If your account is the management account of an organization, use this parameter to specify the member account for which you want to return recommendation summaries.</p> <p>Only one account ID can be specified per request.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to advance to the next page of recommendation summaries.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of recommendation summaries to return with a single request.</p> <p>To retrieve the remaining results, make another request with the returned <code>nextToken</code> value.</p><br>
10    /// - On success, responds with [`GetRecommendationSummariesOutput`](crate::operation::get_recommendation_summaries::GetRecommendationSummariesOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::get_recommendation_summaries::GetRecommendationSummariesOutput::next_token): <p>The token to use to advance to the next page of recommendation summaries.</p> <p>This value is null when there are no more pages of recommendation summaries to return.</p>
12    ///   - [`recommendation_summaries(Option<Vec::<RecommendationSummary>>)`](crate::operation::get_recommendation_summaries::GetRecommendationSummariesOutput::recommendation_summaries): <p>An array of objects that summarize a recommendation.</p>
13    /// - On failure, responds with [`SdkError<GetRecommendationSummariesError>`](crate::operation::get_recommendation_summaries::GetRecommendationSummariesError)
14    pub fn get_recommendation_summaries(&self) -> crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder {
15        crate::operation::get_recommendation_summaries::builders::GetRecommendationSummariesFluentBuilder::new(self.handle.clone())
16    }
17}