/// Request to update one or more dataset files within a single video channel (start-time alignment
/// and/or title). All files must back the given channel; at most 100 files may be updated per request.
#[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 BatchUpdateVideoChannelDatasetFilesRequest {
    #[builder(custom(type = super::VideoChannelSeries, convert = Box::new))]
    #[serde(rename = "channelSeries")]
    channel_series: Box<super::VideoChannelSeries>,
    #[builder(default, list(item(type = super::VideoChannelDatasetFileUpdate)))]
    #[serde(rename = "updates", skip_serializing_if = "Vec::is_empty", default)]
    updates: Vec<super::VideoChannelDatasetFileUpdate>,
}
impl BatchUpdateVideoChannelDatasetFilesRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(channel_series: super::VideoChannelSeries) -> Self {
        Self::builder().channel_series(channel_series).build()
    }
    #[inline]
    pub fn channel_series(&self) -> &super::VideoChannelSeries {
        &*self.channel_series
    }
    #[inline]
    pub fn updates(&self) -> &[super::VideoChannelDatasetFileUpdate] {
        &*self.updates
    }
}
