#[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 GeoPlotVisualizationOptions {
    #[serde(rename = "color")]
    color: super::super::super::api::HexColor,
    #[serde(rename = "lineStyle")]
    line_style: super::GeoLineStyle,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::GeoPlotSecondaryVisibilityConfig>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(
        rename = "secondaryColorVisualization",
        skip_serializing_if = "Option::is_none",
        default
    )]
    secondary_color_visualization: Option<Box<super::GeoPlotSecondaryVisibilityConfig>>,
}
impl GeoPlotVisualizationOptions {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        color: super::super::super::api::HexColor,
        line_style: super::GeoLineStyle,
    ) -> Self {
        Self::builder().color(color).line_style(line_style).build()
    }
    #[inline]
    pub fn color(&self) -> &super::super::super::api::HexColor {
        &self.color
    }
    #[inline]
    pub fn line_style(&self) -> &super::GeoLineStyle {
        &self.line_style
    }
    /// If visible, overwrites any existing visualization options on the geo plot.
    #[inline]
    pub fn secondary_color_visualization(
        &self,
    ) -> Option<&super::GeoPlotSecondaryVisibilityConfig> {
        self.secondary_color_visualization.as_ref().map(|o| &**o)
    }
}
