/// Scoped to the org-level, intended to help the frontend
/// prevent users from submitting invalid ref names, ex.
/// using a `dataset` ref name for a `connection` data source
#[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 {
    #[serde(rename = "name")]
    name: super::super::super::api::DataSourceRefName,
    #[serde(rename = "type")]
    type_: super::DataSourceType,
}
impl RefNameAndType {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        name: super::super::super::api::DataSourceRefName,
        type_: super::DataSourceType,
    ) -> Self {
        Self::builder().name(name).type_(type_).build()
    }
    #[inline]
    pub fn name(&self) -> &super::super::super::api::DataSourceRefName {
        &self.name
    }
    #[inline]
    pub fn type_(&self) -> &super::DataSourceType {
        &self.type_
    }
}
