/// Maps the source dataset file ID to the destination dataset 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 ReingestFilesMapping {
    #[builder(
        default,
        map(
            key(type = super::super::super::datasource::DatasetFileId),
            value(type = super::IngestDetails)
        )
    )]
    #[serde(
        rename = "fileMap",
        serialize_with = "conjure_object::private::serialize_map_keys_as_strings",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    file_map: std::collections::BTreeMap<
        super::super::super::datasource::DatasetFileId,
        super::IngestDetails,
    >,
}
impl ReingestFilesMapping {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn file_map(
        &self,
    ) -> &std::collections::BTreeMap<
        super::super::super::datasource::DatasetFileId,
        super::IngestDetails,
    > {
        &self.file_map
    }
}
