aws_sdk_costexplorer/client/get_savings_plans_purchase_recommendation.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetSavingsPlansPurchaseRecommendation`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`savings_plans_type(SupportedSavingsPlansType)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::savings_plans_type) / [`set_savings_plans_type(Option<SupportedSavingsPlansType>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_savings_plans_type):<br>required: **true**<br><p>The Savings Plans recommendation type that's requested.</p><br>
/// - [`term_in_years(TermInYears)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::term_in_years) / [`set_term_in_years(Option<TermInYears>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_term_in_years):<br>required: **true**<br><p>The savings plan recommendation term that's used to generate these recommendations.</p><br>
/// - [`payment_option(PaymentOption)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::payment_option) / [`set_payment_option(Option<PaymentOption>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_payment_option):<br>required: **true**<br><p>The payment option that's used to generate these recommendations.</p><br>
/// - [`account_scope(AccountScope)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::account_scope) / [`set_account_scope(Option<AccountScope>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_account_scope):<br>required: **false**<br><p>The account scope that you want your recommendations for. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>, recommendations are calculated for individual member accounts only.</p><br>
/// - [`next_page_token(impl Into<String>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::next_page_token) / [`set_next_page_token(Option<String>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_next_page_token):<br>required: **false**<br><p>The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p><br>
/// - [`page_size(i32)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::page_size) / [`set_page_size(Option<i32>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_page_size):<br>required: **false**<br><p>The number of recommendations that you want returned in a single response object.</p><br>
/// - [`lookback_period_in_days(LookbackPeriodInDays)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::lookback_period_in_days) / [`set_lookback_period_in_days(Option<LookbackPeriodInDays>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_lookback_period_in_days):<br>required: **true**<br><p>The lookback period that's used to generate the recommendation.</p><br>
/// - [`filter(Expression)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::filter) / [`set_filter(Option<Expression>)`](crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::set_filter):<br>required: **false**<br><p>You can filter your recommendations by Account ID with the <code>LINKED_ACCOUNT</code> dimension. To filter your recommendations by Account ID, specify <code>Key</code> as <code>LINKED_ACCOUNT</code> and <code>Value</code> as the comma-separated Acount ID(s) that you want to see Savings Plans purchase recommendations for.</p> <p>For GetSavingsPlansPurchaseRecommendation, the <code>Filter</code> doesn't include <code>CostCategories</code> or <code>Tags</code>. It only includes <code>Dimensions</code>. With <code>Dimensions</code>, <code>Key</code> must be <code>LINKED_ACCOUNT</code> and <code>Value</code> can be a single Account ID or multiple comma-separated Account IDs that you want to see Savings Plans Purchase Recommendations for. <code>AND</code> and <code>OR</code> operators are not supported.</p><br>
/// - On success, responds with [`GetSavingsPlansPurchaseRecommendationOutput`](crate::operation::get_savings_plans_purchase_recommendation::GetSavingsPlansPurchaseRecommendationOutput) with field(s):
/// - [`metadata(Option<SavingsPlansPurchaseRecommendationMetadata>)`](crate::operation::get_savings_plans_purchase_recommendation::GetSavingsPlansPurchaseRecommendationOutput::metadata): <p>Information that regards this specific recommendation set.</p>
/// - [`savings_plans_purchase_recommendation(Option<SavingsPlansPurchaseRecommendation>)`](crate::operation::get_savings_plans_purchase_recommendation::GetSavingsPlansPurchaseRecommendationOutput::savings_plans_purchase_recommendation): <p>Contains your request parameters, Savings Plan Recommendations Summary, and Details.</p>
/// - [`next_page_token(Option<String>)`](crate::operation::get_savings_plans_purchase_recommendation::GetSavingsPlansPurchaseRecommendationOutput::next_page_token): <p>The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p>
/// - On failure, responds with [`SdkError<GetSavingsPlansPurchaseRecommendationError>`](crate::operation::get_savings_plans_purchase_recommendation::GetSavingsPlansPurchaseRecommendationError)
pub fn get_savings_plans_purchase_recommendation(
&self,
) -> crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder {
crate::operation::get_savings_plans_purchase_recommendation::builders::GetSavingsPlansPurchaseRecommendationFluentBuilder::new(
self.handle.clone(),
)
}
}