#[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 ArchiveRunsRequest {
    #[builder(default, set(item(type = super::RunRid)))]
    #[serde(
        rename = "rids",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    rids: std::collections::BTreeSet<super::RunRid>,
    #[builder(default, into)]
    #[serde(
        rename = "includeLinkedWorkbooks",
        skip_serializing_if = "Option::is_none",
        default
    )]
    include_linked_workbooks: Option<bool>,
}
impl ArchiveRunsRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn rids(&self) -> &std::collections::BTreeSet<super::RunRid> {
        &self.rids
    }
    /// If true, all auto-archived workbooks that are linked to run will be unarchived as well.
    /// Defaults to false.
    #[inline]
    pub fn include_linked_workbooks(&self) -> Option<bool> {
        self.include_linked_workbooks.as_ref().map(|o| *o)
    }
}
