#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ColorByVariableConfiguration {
    #[builder(custom(type = super::VariableLocator, convert = Box::new))]
    #[serde(rename = "locator")]
    locator: Box<super::VariableLocator>,
    #[builder(custom(type = super::AggregationType, convert = Box::new))]
    #[serde(rename = "aggregationType")]
    aggregation_type: Box<super::AggregationType>,
    #[serde(rename = "lowerBound")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    lower_bound: f64,
    #[serde(rename = "upperBound")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    upper_bound: f64,
}
impl ColorByVariableConfiguration {
    #[inline]
    pub fn locator(&self) -> &super::VariableLocator {
        &*self.locator
    }
    #[inline]
    pub fn aggregation_type(&self) -> &super::AggregationType {
        &*self.aggregation_type
    }
    #[inline]
    pub fn lower_bound(&self) -> f64 {
        self.lower_bound
    }
    #[inline]
    pub fn upper_bound(&self) -> f64 {
        self.upper_bound
    }
}
