#[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 RefNameAndType {
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[serde(rename = "type")]
    type_: super::DataSourceType,
}
impl RefNameAndType {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(name: impl Into<String>, type_: super::DataSourceType) -> Self {
        Self::builder().name(name).type_(type_).build()
    }
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    #[inline]
    pub fn type_(&self) -> &super::DataSourceType {
        &self.type_
    }
}
