#[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 Influx1Locator {
    #[serde(rename = "database")]
    database: super::DatabaseName,
    #[serde(rename = "measurement")]
    measurement: super::MeasurementName,
    #[serde(rename = "field")]
    field: super::FieldName,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tags: std::collections::BTreeMap<String, String>,
    #[serde(rename = "type")]
    type_: super::InfluxType,
}
impl Influx1Locator {
    #[inline]
    pub fn database(&self) -> &super::DatabaseName {
        &self.database
    }
    #[inline]
    pub fn measurement(&self) -> &super::MeasurementName {
        &self.measurement
    }
    #[inline]
    pub fn field(&self) -> &super::FieldName {
        &self.field
    }
    #[inline]
    pub fn tags(&self) -> &std::collections::BTreeMap<String, String> {
        &self.tags
    }
    #[inline]
    pub fn type_(&self) -> &super::InfluxType {
        &self.type_
    }
}
