aws_sdk_costoptimizationhub/operation/update_preferences/
_update_preferences_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdatePreferencesOutput {
pub savings_estimation_mode: ::std::option::Option<crate::types::SavingsEstimationMode>,
pub member_account_discount_visibility: ::std::option::Option<crate::types::MemberAccountDiscountVisibility>,
_request_id: Option<String>,
}
impl UpdatePreferencesOutput {
pub fn savings_estimation_mode(&self) -> ::std::option::Option<&crate::types::SavingsEstimationMode> {
self.savings_estimation_mode.as_ref()
}
pub fn member_account_discount_visibility(&self) -> ::std::option::Option<&crate::types::MemberAccountDiscountVisibility> {
self.member_account_discount_visibility.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdatePreferencesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdatePreferencesOutput {
pub fn builder() -> crate::operation::update_preferences::builders::UpdatePreferencesOutputBuilder {
crate::operation::update_preferences::builders::UpdatePreferencesOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdatePreferencesOutputBuilder {
pub(crate) savings_estimation_mode: ::std::option::Option<crate::types::SavingsEstimationMode>,
pub(crate) member_account_discount_visibility: ::std::option::Option<crate::types::MemberAccountDiscountVisibility>,
_request_id: Option<String>,
}
impl UpdatePreferencesOutputBuilder {
pub fn savings_estimation_mode(mut self, input: crate::types::SavingsEstimationMode) -> Self {
self.savings_estimation_mode = ::std::option::Option::Some(input);
self
}
pub fn set_savings_estimation_mode(mut self, input: ::std::option::Option<crate::types::SavingsEstimationMode>) -> Self {
self.savings_estimation_mode = input;
self
}
pub fn get_savings_estimation_mode(&self) -> &::std::option::Option<crate::types::SavingsEstimationMode> {
&self.savings_estimation_mode
}
pub fn member_account_discount_visibility(mut self, input: crate::types::MemberAccountDiscountVisibility) -> Self {
self.member_account_discount_visibility = ::std::option::Option::Some(input);
self
}
pub fn set_member_account_discount_visibility(mut self, input: ::std::option::Option<crate::types::MemberAccountDiscountVisibility>) -> Self {
self.member_account_discount_visibility = input;
self
}
pub fn get_member_account_discount_visibility(&self) -> &::std::option::Option<crate::types::MemberAccountDiscountVisibility> {
&self.member_account_discount_visibility
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_preferences::UpdatePreferencesOutput {
crate::operation::update_preferences::UpdatePreferencesOutput {
savings_estimation_mode: self.savings_estimation_mode,
member_account_discount_visibility: self.member_account_discount_visibility,
_request_id: self._request_id,
}
}
}