#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ComparisonScatterPlotVariable {
    #[serde(rename = "xAxisId")]
    x_axis_id: super::super::super::chartdefinition::api::AxisId,
    #[serde(rename = "yAxisId")]
    y_axis_id: super::super::super::chartdefinition::api::AxisId,
    #[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>,
}
impl ComparisonScatterPlotVariable {
    /// the axisId when the variable is used as the x variable.
    #[inline]
    pub fn x_axis_id(&self) -> &super::super::super::chartdefinition::api::AxisId {
        &self.x_axis_id
    }
    /// the axisId when the variable is used as the y variable.
    #[inline]
    pub fn y_axis_id(&self) -> &super::super::super::chartdefinition::api::AxisId {
        &self.y_axis_id
    }
    #[inline]
    pub fn locator(&self) -> &super::VariableLocator {
        &*self.locator
    }
    #[inline]
    pub fn aggregation_type(&self) -> &super::AggregationType {
        &*self.aggregation_type
    }
}
