aws-sdk-resourcegroups 1.23.0

AWS SDK for AWS Resource Groups
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAccountSettingsOutput {
    /// <p>A structure that displays the status of the optional features in the account.</p>
    pub account_settings: ::std::option::Option<crate::types::AccountSettings>,
    _request_id: Option<String>,
}
impl UpdateAccountSettingsOutput {
    /// <p>A structure that displays the status of the optional features in the account.</p>
    pub fn account_settings(&self) -> ::std::option::Option<&crate::types::AccountSettings> {
        self.account_settings.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateAccountSettingsOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateAccountSettingsOutput {
    /// Creates a new builder-style object to manufacture [`UpdateAccountSettingsOutput`](crate::operation::update_account_settings::UpdateAccountSettingsOutput).
    pub fn builder() -> crate::operation::update_account_settings::builders::UpdateAccountSettingsOutputBuilder {
        crate::operation::update_account_settings::builders::UpdateAccountSettingsOutputBuilder::default()
    }
}

/// A builder for [`UpdateAccountSettingsOutput`](crate::operation::update_account_settings::UpdateAccountSettingsOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateAccountSettingsOutputBuilder {
    pub(crate) account_settings: ::std::option::Option<crate::types::AccountSettings>,
    _request_id: Option<String>,
}
impl UpdateAccountSettingsOutputBuilder {
    /// <p>A structure that displays the status of the optional features in the account.</p>
    pub fn account_settings(mut self, input: crate::types::AccountSettings) -> Self {
        self.account_settings = ::std::option::Option::Some(input);
        self
    }
    /// <p>A structure that displays the status of the optional features in the account.</p>
    pub fn set_account_settings(mut self, input: ::std::option::Option<crate::types::AccountSettings>) -> Self {
        self.account_settings = input;
        self
    }
    /// <p>A structure that displays the status of the optional features in the account.</p>
    pub fn get_account_settings(&self) -> &::std::option::Option<crate::types::AccountSettings> {
        &self.account_settings
    }
    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
    }
    /// Consumes the builder and constructs a [`UpdateAccountSettingsOutput`](crate::operation::update_account_settings::UpdateAccountSettingsOutput).
    pub fn build(self) -> crate::operation::update_account_settings::UpdateAccountSettingsOutput {
        crate::operation::update_account_settings::UpdateAccountSettingsOutput {
            account_settings: self.account_settings,
            _request_id: self._request_id,
        }
    }
}