/// Request to update metadata for multiple files within a single video. All files must belong to the provided
/// video, and the batch may include at most 100 files.
#[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 BatchUpdateVideoFilesRequest {
    #[serde(rename = "videoRid")]
    video_rid: conjure_object::ResourceIdentifier,
    #[builder(default, list(item(type = super::VideoFileUpdate)))]
    #[serde(rename = "updates", skip_serializing_if = "Vec::is_empty", default)]
    updates: Vec<super::VideoFileUpdate>,
}
impl BatchUpdateVideoFilesRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(video_rid: conjure_object::ResourceIdentifier) -> Self {
        Self::builder().video_rid(video_rid).build()
    }
    #[inline]
    pub fn video_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.video_rid
    }
    #[inline]
    pub fn updates(&self) -> &[super::VideoFileUpdate] {
        &*self.updates
    }
}
