aws_sdk_costoptimizationhub/client/
get_preferences.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 [`GetPreferences`](crate::operation::get_preferences::builders::GetPreferencesFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_preferences::builders::GetPreferencesFluentBuilder::send) it.
6    /// - On success, responds with [`GetPreferencesOutput`](crate::operation::get_preferences::GetPreferencesOutput) with field(s):
7    ///   - [`savings_estimation_mode(Option<SavingsEstimationMode>)`](crate::operation::get_preferences::GetPreferencesOutput::savings_estimation_mode): <p>Retrieves the status of the "savings estimation mode" preference.</p>
8    ///   - [`member_account_discount_visibility(Option<MemberAccountDiscountVisibility>)`](crate::operation::get_preferences::GetPreferencesOutput::member_account_discount_visibility): <p>Retrieves the status of the "member account discount visibility" preference.</p>
9    ///   - [`preferred_commitment(Option<PreferredCommitment>)`](crate::operation::get_preferences::GetPreferencesOutput::preferred_commitment): <p>Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>
10    /// - On failure, responds with [`SdkError<GetPreferencesError>`](crate::operation::get_preferences::GetPreferencesError)
11    pub fn get_preferences(&self) -> crate::operation::get_preferences::builders::GetPreferencesFluentBuilder {
12        crate::operation::get_preferences::builders::GetPreferencesFluentBuilder::new(self.handle.clone())
13    }
14}