#[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 AddDataScopesToAssetRequest {
    #[builder(default, set(item(type = super::CreateAssetDataScope)))]
    #[serde(
        rename = "dataScopes",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    data_scopes: std::collections::BTreeSet<super::CreateAssetDataScope>,
}
impl AddDataScopesToAssetRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The data scopes to add to the asset.
    ///
    /// Throws if any existing data scopes have data scope names that conflict with the data scope names
    /// in the request.
    #[inline]
    pub fn data_scopes(
        &self,
    ) -> &std::collections::BTreeSet<super::CreateAssetDataScope> {
        &self.data_scopes
    }
}
