#[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 AssetTypeDataScopeConfig {
    #[builder(default, into)]
    #[serde(
        rename = "suggestedRefName",
        skip_serializing_if = "Option::is_none",
        default
    )]
    suggested_ref_name: Option<String>,
    #[builder(custom(type = super::TagConfig, convert = Box::new))]
    #[serde(rename = "tags")]
    tags: Box<super::TagConfig>,
}
impl AssetTypeDataScopeConfig {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(tags: super::TagConfig) -> Self {
        Self::builder().tags(tags).build()
    }
    #[inline]
    pub fn suggested_ref_name(&self) -> Option<&str> {
        self.suggested_ref_name.as_ref().map(|o| &**o)
    }
    /// Tag names that should be supplied to downscope data for an asset of the asset type. These are not
    /// enforced.
    #[inline]
    pub fn tags(&self) -> &super::TagConfig {
        &*self.tags
    }
}
