#[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 AddDemoWorkbooksRequest {
    #[builder(default, list(item(type = super::super::super::rids::api::NotebookRid)))]
    #[serde(rename = "notebookRids", skip_serializing_if = "Vec::is_empty", default)]
    notebook_rids: Vec<super::super::super::rids::api::NotebookRid>,
    #[builder(default, into)]
    #[serde(
        rename = "archiveOnLabelConflict",
        skip_serializing_if = "Option::is_none",
        default
    )]
    archive_on_label_conflict: Option<bool>,
}
impl AddDemoWorkbooksRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn notebook_rids(&self) -> &[super::super::super::rids::api::NotebookRid] {
        &*self.notebook_rids
    }
    /// When true, existing workbooks with an exact label-set match are archived
    /// instead of raising an error, along with all related resources discovered
    /// via full graph traversal: the workbook's data scope seeds initial assets
    /// or runs, then the system alternates between discovering runs linked to
    /// assets and assets linked to runs until no new resources are found.
    /// All discovered assets, runs, datasets (from both asset and run data
    /// scopes), and events (from the workbook's snapshot refs and from all
    /// discovered assets) are archived. This is intended for demo workbook
    /// replacement flows where all resources are recreated from scratch.
    /// Partial (subset/superset) label conflicts always raise an error.
    /// Defaults to false.
    #[inline]
    pub fn archive_on_label_conflict(&self) -> Option<bool> {
        self.archive_on_label_conflict.as_ref().map(|o| *o)
    }
}
