#[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 GeoPlotFromLatLong {
    #[builder(default, into)]
    #[serde(rename = "id", skip_serializing_if = "Option::is_none", default)]
    id: Option<conjure_object::Uuid>,
    #[serde(rename = "latitudeVariableName")]
    latitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
    #[serde(rename = "longitudeVariableName")]
    longitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
    #[builder(default, into)]
    #[serde(
        rename = "secondaryVariables",
        skip_serializing_if = "Option::is_none",
        default
    )]
    secondary_variables: Option<Vec<super::SecondaryVariable>>,
    #[builder(default, into)]
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none", default)]
    enabled: Option<bool>,
    #[builder(default, into)]
    #[serde(rename = "label", skip_serializing_if = "Option::is_none", default)]
    label: Option<String>,
    #[builder(custom(type = super::GeoPlotVisualizationOptions, convert = Box::new))]
    #[serde(rename = "visualizationOptions")]
    visualization_options: Box<super::GeoPlotVisualizationOptions>,
}
impl GeoPlotFromLatLong {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        latitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
        longitude_variable_name: super::super::super::channelvariables::api::ChannelVariableName,
        visualization_options: super::GeoPlotVisualizationOptions,
    ) -> Self {
        Self::builder()
            .latitude_variable_name(latitude_variable_name)
            .longitude_variable_name(longitude_variable_name)
            .visualization_options(visualization_options)
            .build()
    }
    #[inline]
    pub fn id(&self) -> Option<conjure_object::Uuid> {
        self.id.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn latitude_variable_name(
        &self,
    ) -> &super::super::super::channelvariables::api::ChannelVariableName {
        &self.latitude_variable_name
    }
    #[inline]
    pub fn longitude_variable_name(
        &self,
    ) -> &super::super::super::channelvariables::api::ChannelVariableName {
        &self.longitude_variable_name
    }
    #[inline]
    pub fn secondary_variables(&self) -> Option<&[super::SecondaryVariable]> {
        self.secondary_variables.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn enabled(&self) -> Option<bool> {
        self.enabled.as_ref().map(|o| *o)
    }
    #[inline]
    pub fn label(&self) -> Option<&str> {
        self.label.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn visualization_options(&self) -> &super::GeoPlotVisualizationOptions {
        &*self.visualization_options
    }
}
