#[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 ComparisonTimeSeriesPlotVariable {
    #[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>,
}
impl ComparisonTimeSeriesPlotVariable {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        y_axis_id: super::super::super::chartdefinition::api::AxisId,
        locator: super::VariableLocator,
    ) -> Self {
        Self::builder().y_axis_id(y_axis_id).locator(locator).build()
    }
    /// 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
    }
}
