#[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 VideoOptsV2 {
    #[builder(custom(type = super::IngestSource, convert = Box::new))]
    #[serde(rename = "source")]
    source: Box<super::IngestSource>,
    #[builder(custom(type = super::DatasetIngestTarget, convert = Box::new))]
    #[serde(rename = "target")]
    target: Box<super::DatasetIngestTarget>,
    #[builder(
        custom(
            type = super::super::super::scout::video::api::VideoFileTimestampManifest,
            convert = Box::new
        )
    )]
    #[serde(rename = "timestampManifest")]
    timestamp_manifest: Box<
        super::super::super::scout::video::api::VideoFileTimestampManifest,
    >,
    #[builder(into)]
    #[serde(rename = "channel")]
    channel: String,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tags: std::collections::BTreeMap<String, String>,
    #[builder(default, into)]
    #[serde(
        rename = "overWriteSegments",
        skip_serializing_if = "Option::is_none",
        default
    )]
    over_write_segments: Option<bool>,
}
impl VideoOptsV2 {
    #[inline]
    pub fn source(&self) -> &super::IngestSource {
        &*self.source
    }
    #[inline]
    pub fn target(&self) -> &super::DatasetIngestTarget {
        &*self.target
    }
    #[inline]
    pub fn timestamp_manifest(
        &self,
    ) -> &super::super::super::scout::video::api::VideoFileTimestampManifest {
        &*self.timestamp_manifest
    }
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    #[inline]
    pub fn tags(&self) -> &std::collections::BTreeMap<String, String> {
        &self.tags
    }
    /// If true, overlapping segments from other dataset files within the same series will be deleted
    /// before inserting new segments. The cached segment metadata for affected files will be recomputed.
    #[inline]
    pub fn over_write_segments(&self) -> Option<bool> {
        self.over_write_segments.as_ref().map(|o| *o)
    }
}
