#[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 Influx2LocatorTemplate {
    #[serde(rename = "bucket")]
    bucket: super::super::super::logicalseries::api::BucketName,
    #[serde(rename = "measurement")]
    measurement: super::super::super::logicalseries::api::MeasurementName,
    #[builder(default, into)]
    #[serde(rename = "valueColumn", skip_serializing_if = "Option::is_none", default)]
    value_column: Option<String>,
    #[serde(rename = "field")]
    field: super::super::super::logicalseries::api::FieldName,
    #[serde(rename = "type")]
    type_: super::super::super::logicalseries::api::InfluxType,
}
impl Influx2LocatorTemplate {
    #[inline]
    pub fn bucket(&self) -> &super::super::super::logicalseries::api::BucketName {
        &self.bucket
    }
    #[inline]
    pub fn measurement(
        &self,
    ) -> &super::super::super::logicalseries::api::MeasurementName {
        &self.measurement
    }
    /// If omitted, defaults to `_value`. Can be used to extract tag values.
    #[inline]
    pub fn value_column(&self) -> Option<&str> {
        self.value_column.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn field(&self) -> &super::super::super::logicalseries::api::FieldName {
        &self.field
    }
    #[inline]
    pub fn type_(&self) -> &super::super::super::logicalseries::api::InfluxType {
        &self.type_
    }
}
