#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct VideoOriginMetadata {
    #[builder(default, list(item(type = super::super::super::super::api::Handle)))]
    #[serde(rename = "videoSources", skip_serializing_if = "Vec::is_empty", default)]
    video_sources: Vec<super::super::super::super::api::Handle>,
    #[builder(custom(type = super::VideoTimestampManifest, convert = Box::new))]
    #[serde(rename = "timestampManifest")]
    timestamp_manifest: Box<super::VideoTimestampManifest>,
}
impl VideoOriginMetadata {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(timestamp_manifest: super::VideoTimestampManifest) -> Self {
        Self::builder().timestamp_manifest(timestamp_manifest).build()
    }
    #[deprecated(
        note = "deprecated in favor of per-file VideoFileOriginMetadata. Will be removed after April 15th."
    )]
    #[inline]
    pub fn video_sources(&self) -> &[super::super::super::super::api::Handle] {
        &*self.video_sources
    }
    #[deprecated(
        note = "deprecated in favor of per-file VideoFileOriginMetadata. Will be removed after April 15th."
    )]
    #[inline]
    pub fn timestamp_manifest(&self) -> &super::VideoTimestampManifest {
        &*self.timestamp_manifest
    }
}
