#[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 TimestreamLocatorTemplate {
    #[serde(rename = "table")]
    table: super::super::super::logicalseries::api::TableName,
    #[serde(rename = "measure")]
    measure: super::super::super::logicalseries::api::MeasureName,
    #[builder(default, into)]
    #[serde(rename = "attribute", skip_serializing_if = "Option::is_none", default)]
    attribute: Option<super::super::super::logicalseries::api::AttributeName>,
    #[serde(rename = "type")]
    type_: super::super::super::logicalseries::api::TimestreamType,
}
impl TimestreamLocatorTemplate {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        table: super::super::super::logicalseries::api::TableName,
        measure: super::super::super::logicalseries::api::MeasureName,
        type_: super::super::super::logicalseries::api::TimestreamType,
    ) -> Self {
        Self::builder().table(table).measure(measure).type_(type_).build()
    }
    #[inline]
    pub fn table(&self) -> &super::super::super::logicalseries::api::TableName {
        &self.table
    }
    #[inline]
    pub fn measure(&self) -> &super::super::super::logicalseries::api::MeasureName {
        &self.measure
    }
    #[inline]
    pub fn attribute(
        &self,
    ) -> Option<&super::super::super::logicalseries::api::AttributeName> {
        self.attribute.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn type_(&self) -> &super::super::super::logicalseries::api::TimestreamType {
        &self.type_
    }
}
