#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAccountPreferencesOutput {
pub account_preferences: ::std::option::Option<crate::types::AccountPreferences>,
_request_id: Option<String>,
}
impl UpdateAccountPreferencesOutput {
pub fn account_preferences(&self) -> ::std::option::Option<&crate::types::AccountPreferences> {
self.account_preferences.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateAccountPreferencesOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateAccountPreferencesOutput {
pub fn builder() -> crate::operation::update_account_preferences::builders::UpdateAccountPreferencesOutputBuilder {
crate::operation::update_account_preferences::builders::UpdateAccountPreferencesOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAccountPreferencesOutputBuilder {
pub(crate) account_preferences: ::std::option::Option<crate::types::AccountPreferences>,
_request_id: Option<String>,
}
impl UpdateAccountPreferencesOutputBuilder {
pub fn account_preferences(mut self, input: crate::types::AccountPreferences) -> Self {
self.account_preferences = ::std::option::Option::Some(input);
self
}
pub fn set_account_preferences(mut self, input: ::std::option::Option<crate::types::AccountPreferences>) -> Self {
self.account_preferences = input;
self
}
pub fn get_account_preferences(&self) -> &::std::option::Option<crate::types::AccountPreferences> {
&self.account_preferences
}
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_account_preferences::UpdateAccountPreferencesOutput {
crate::operation::update_account_preferences::UpdateAccountPreferencesOutput {
account_preferences: self.account_preferences,
_request_id: self._request_id,
}
}
}