#[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 EnrichedVideoIngestStatus {
    #[builder(custom(type = super::VideoIngestStatus, convert = Box::new))]
    #[serde(rename = "status")]
    status: Box<super::VideoIngestStatus>,
    #[builder(
        default,
        map(
            key(type = conjure_object::ResourceIdentifier),
            value(type = super::VideoFileIngestStatus)
        )
    )]
    #[serde(
        rename = "fileIngestStatus",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    file_ingest_status: std::collections::BTreeMap<
        conjure_object::ResourceIdentifier,
        super::VideoFileIngestStatus,
    >,
    #[builder(default, into)]
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none", default)]
    next_page_token: Option<String>,
}
impl EnrichedVideoIngestStatus {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(status: super::VideoIngestStatus) -> Self {
        Self::builder().status(status).build()
    }
    #[inline]
    pub fn status(&self) -> &super::VideoIngestStatus {
        &*self.status
    }
    #[inline]
    pub fn file_ingest_status(
        &self,
    ) -> &std::collections::BTreeMap<
        conjure_object::ResourceIdentifier,
        super::VideoFileIngestStatus,
    > {
        &self.file_ingest_status
    }
    #[inline]
    pub fn next_page_token(&self) -> Option<&str> {
        self.next_page_token.as_ref().map(|o| &**o)
    }
}
