/// Request to create and persist a video file
#[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 CreateVideoFileRequest {
    #[builder(into)]
    #[serde(rename = "title")]
    title: String,
    #[builder(default, into)]
    #[serde(rename = "description", skip_serializing_if = "Option::is_none", default)]
    description: Option<String>,
    #[builder(custom(type = super::VideoFileOriginMetadata, convert = Box::new))]
    #[serde(rename = "originMetadata")]
    origin_metadata: Box<super::VideoFileOriginMetadata>,
    #[serde(rename = "videoRid")]
    video_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "rawFileSize")]
    raw_file_size: conjure_object::SafeLong,
}
impl CreateVideoFileRequest {
    #[inline]
    pub fn title(&self) -> &str {
        &*self.title
    }
    #[inline]
    pub fn description(&self) -> Option<&str> {
        self.description.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn origin_metadata(&self) -> &super::VideoFileOriginMetadata {
        &*self.origin_metadata
    }
    #[inline]
    pub fn video_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.video_rid
    }
    /// The size of the pre-processed raw video file in bytes.
    #[inline]
    pub fn raw_file_size(&self) -> conjure_object::SafeLong {
        self.raw_file_size
    }
}
