aws-sdk-timestreamquery 1.104.0

AWS SDK for Amazon Timestream Query
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>The configured maximum number of compute units the service will use at any point in time to serve your queries.</p>
    pub max_query_tcu: ::std::option::Option<i32>,
    /// <p>The pricing model for an account.</p>
    pub query_pricing_model: ::std::option::Option<crate::types::QueryPricingModel>,
    /// <p>Confirms the updated account settings for querying data in your account.</p>
    pub query_compute: ::std::option::Option<crate::types::QueryComputeResponse>,
    _request_id: Option<String>,
}
impl UpdateAccountSettingsOutput {
    /// <p>The configured maximum number of compute units the service will use at any point in time to serve your queries.</p>
    pub fn max_query_tcu(&self) -> ::std::option::Option<i32> {
        self.max_query_tcu
    }
    /// <p>The pricing model for an account.</p>
    pub fn query_pricing_model(&self) -> ::std::option::Option<&crate::types::QueryPricingModel> {
        self.query_pricing_model.as_ref()
    }
    /// <p>Confirms the updated account settings for querying data in your account.</p>
    pub fn query_compute(&self) -> ::std::option::Option<&crate::types::QueryComputeResponse> {
        self.query_compute.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).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAccountSettingsOutputBuilder {
    pub(crate) max_query_tcu: ::std::option::Option<i32>,
    pub(crate) query_pricing_model: ::std::option::Option<crate::types::QueryPricingModel>,
    pub(crate) query_compute: ::std::option::Option<crate::types::QueryComputeResponse>,
    _request_id: Option<String>,
}
impl UpdateAccountSettingsOutputBuilder {
    /// <p>The configured maximum number of compute units the service will use at any point in time to serve your queries.</p>
    pub fn max_query_tcu(mut self, input: i32) -> Self {
        self.max_query_tcu = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configured maximum number of compute units the service will use at any point in time to serve your queries.</p>
    pub fn set_max_query_tcu(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_query_tcu = input;
        self
    }
    /// <p>The configured maximum number of compute units the service will use at any point in time to serve your queries.</p>
    pub fn get_max_query_tcu(&self) -> &::std::option::Option<i32> {
        &self.max_query_tcu
    }
    /// <p>The pricing model for an account.</p>
    pub fn query_pricing_model(mut self, input: crate::types::QueryPricingModel) -> Self {
        self.query_pricing_model = ::std::option::Option::Some(input);
        self
    }
    /// <p>The pricing model for an account.</p>
    pub fn set_query_pricing_model(mut self, input: ::std::option::Option<crate::types::QueryPricingModel>) -> Self {
        self.query_pricing_model = input;
        self
    }
    /// <p>The pricing model for an account.</p>
    pub fn get_query_pricing_model(&self) -> &::std::option::Option<crate::types::QueryPricingModel> {
        &self.query_pricing_model
    }
    /// <p>Confirms the updated account settings for querying data in your account.</p>
    pub fn query_compute(mut self, input: crate::types::QueryComputeResponse) -> Self {
        self.query_compute = ::std::option::Option::Some(input);
        self
    }
    /// <p>Confirms the updated account settings for querying data in your account.</p>
    pub fn set_query_compute(mut self, input: ::std::option::Option<crate::types::QueryComputeResponse>) -> Self {
        self.query_compute = input;
        self
    }
    /// <p>Confirms the updated account settings for querying data in your account.</p>
    pub fn get_query_compute(&self) -> &::std::option::Option<crate::types::QueryComputeResponse> {
        &self.query_compute
    }
    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 {
            max_query_tcu: self.max_query_tcu,
            query_pricing_model: self.query_pricing_model,
            query_compute: self.query_compute,
            _request_id: self._request_id,
        }
    }
}