aws_sdk_costoptimizationhub/client/update_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 [`UpdatePreferences`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`savings_estimation_mode(SavingsEstimationMode)`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::savings_estimation_mode) / [`set_savings_estimation_mode(Option<SavingsEstimationMode>)`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::set_savings_estimation_mode):<br>required: **false**<br><p>Sets the "savings estimation mode" preference.</p><br>
7 /// - [`member_account_discount_visibility(MemberAccountDiscountVisibility)`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::member_account_discount_visibility) / [`set_member_account_discount_visibility(Option<MemberAccountDiscountVisibility>)`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::set_member_account_discount_visibility):<br>required: **false**<br><p>Sets the "member account discount visibility" preference.</p><br>
8 /// - [`preferred_commitment(PreferredCommitment)`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::preferred_commitment) / [`set_preferred_commitment(Option<PreferredCommitment>)`](crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::set_preferred_commitment):<br>required: **false**<br><p>Sets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p><br>
9 /// - On success, responds with [`UpdatePreferencesOutput`](crate::operation::update_preferences::UpdatePreferencesOutput) with field(s):
10 /// - [`savings_estimation_mode(Option<SavingsEstimationMode>)`](crate::operation::update_preferences::UpdatePreferencesOutput::savings_estimation_mode): <p>Shows the status of the "savings estimation mode" preference.</p>
11 /// - [`member_account_discount_visibility(Option<MemberAccountDiscountVisibility>)`](crate::operation::update_preferences::UpdatePreferencesOutput::member_account_discount_visibility): <p>Shows the status of the "member account discount visibility" preference.</p>
12 /// - [`preferred_commitment(Option<PreferredCommitment>)`](crate::operation::update_preferences::UpdatePreferencesOutput::preferred_commitment): <p>Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>
13 /// - On failure, responds with [`SdkError<UpdatePreferencesError>`](crate::operation::update_preferences::UpdatePreferencesError)
14 pub fn update_preferences(&self) -> crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder {
15 crate::operation::update_preferences::builders::UpdatePreferencesFluentBuilder::new(self.handle.clone())
16 }
17}