#[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 UnitConfig {
    #[builder(into)]
    #[serde(rename = "unitMetadataKey")]
    unit_metadata_key: String,
}
impl UnitConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(unit_metadata_key: impl Into<String>) -> Self {
        Self::builder().unit_metadata_key(unit_metadata_key).build()
    }
    /// If set, will extract the series unit from the column metadata of the ingested file.
    #[inline]
    pub fn unit_metadata_key(&self) -> &str {
        &*self.unit_metadata_key
    }
}
