/// The response to a reingest request.
/// Maps the source dataset RID and file ID to the destination dataset RID and file ID.
#[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 ReingestDatasetsResponse {
    #[builder(
        default,
        map(
            key(type = conjure_object::ResourceIdentifier),
            value(type = super::ReingestFilesMapping)
        )
    )]
    #[serde(
        rename = "datasets",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    datasets: std::collections::BTreeMap<
        conjure_object::ResourceIdentifier,
        super::ReingestFilesMapping,
    >,
}
impl ReingestDatasetsResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn datasets(
        &self,
    ) -> &std::collections::BTreeMap<
        conjure_object::ResourceIdentifier,
        super::ReingestFilesMapping,
    > {
        &self.datasets
    }
}
