#[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 TimescaleDbLocator {
    #[serde(rename = "table")]
    table: super::TableName,
    #[serde(rename = "schema")]
    schema: super::SchemaName,
    #[serde(rename = "column")]
    column: super::ColumnName,
    #[serde(rename = "timeColumn")]
    time_column: super::ColumnName,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "dimensions",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    dimensions: std::collections::BTreeMap<String, String>,
    #[serde(rename = "type")]
    type_: super::TimescaleType,
}
impl TimescaleDbLocator {
    #[inline]
    pub fn table(&self) -> &super::TableName {
        &self.table
    }
    #[inline]
    pub fn schema(&self) -> &super::SchemaName {
        &self.schema
    }
    #[inline]
    pub fn column(&self) -> &super::ColumnName {
        &self.column
    }
    #[inline]
    pub fn time_column(&self) -> &super::ColumnName {
        &self.time_column
    }
    #[inline]
    pub fn dimensions(&self) -> &std::collections::BTreeMap<String, String> {
        &self.dimensions
    }
    #[inline]
    pub fn type_(&self) -> &super::TimescaleType {
        &self.type_
    }
}
