// 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 UpdateAccountSettingsInput {
    /// <p>Specifies the minimum throughput billing commitment configuration for your account.</p>
    pub minimum_throughput_billing_commitment: ::std::option::Option<crate::types::MinimumThroughputBillingCommitmentInput>,
}
impl UpdateAccountSettingsInput {
    /// <p>Specifies the minimum throughput billing commitment configuration for your account.</p>
    pub fn minimum_throughput_billing_commitment(&self) -> ::std::option::Option<&crate::types::MinimumThroughputBillingCommitmentInput> {
        self.minimum_throughput_billing_commitment.as_ref()
    }
}
impl UpdateAccountSettingsInput {
    /// Creates a new builder-style object to manufacture [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
    pub fn builder() -> crate::operation::update_account_settings::builders::UpdateAccountSettingsInputBuilder {
        crate::operation::update_account_settings::builders::UpdateAccountSettingsInputBuilder::default()
    }
}

/// A builder for [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAccountSettingsInputBuilder {
    pub(crate) minimum_throughput_billing_commitment: ::std::option::Option<crate::types::MinimumThroughputBillingCommitmentInput>,
}
impl UpdateAccountSettingsInputBuilder {
    /// <p>Specifies the minimum throughput billing commitment configuration for your account.</p>
    /// This field is required.
    pub fn minimum_throughput_billing_commitment(mut self, input: crate::types::MinimumThroughputBillingCommitmentInput) -> Self {
        self.minimum_throughput_billing_commitment = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the minimum throughput billing commitment configuration for your account.</p>
    pub fn set_minimum_throughput_billing_commitment(
        mut self,
        input: ::std::option::Option<crate::types::MinimumThroughputBillingCommitmentInput>,
    ) -> Self {
        self.minimum_throughput_billing_commitment = input;
        self
    }
    /// <p>Specifies the minimum throughput billing commitment configuration for your account.</p>
    pub fn get_minimum_throughput_billing_commitment(&self) -> &::std::option::Option<crate::types::MinimumThroughputBillingCommitmentInput> {
        &self.minimum_throughput_billing_commitment
    }
    /// Consumes the builder and constructs a [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_account_settings::UpdateAccountSettingsInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_account_settings::UpdateAccountSettingsInput {
            minimum_throughput_billing_commitment: self.minimum_throughput_billing_commitment,
        })
    }
}
