#[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 VideoUploadMetadata {
#[builder(into)]
#[serde(rename = "s3Key")]
s3_key: String,
#[builder(into)]
#[serde(rename = "s3Bucket")]
s3_bucket: String,
#[builder(custom(type = super::ManifestVideoOutput, convert = Box::new))]
#[serde(rename = "manifestVideoOutput")]
manifest_video_output: Box<super::ManifestVideoOutput>,
#[builder(default, into)]
#[serde(
rename = "frameTimestampsS3Path",
skip_serializing_if = "Option::is_none",
default
)]
frame_timestamps_s3_path: Option<super::super::super::api::S3Path>,
}
impl VideoUploadMetadata {
#[inline]
pub fn new(
s3_key: impl Into<String>,
s3_bucket: impl Into<String>,
manifest_video_output: super::ManifestVideoOutput,
) -> Self {
Self::builder()
.s3_key(s3_key)
.s3_bucket(s3_bucket)
.manifest_video_output(manifest_video_output)
.build()
}
#[inline]
pub fn s3_key(&self) -> &str {
&*self.s3_key
}
#[inline]
pub fn s3_bucket(&self) -> &str {
&*self.s3_bucket
}
#[inline]
pub fn manifest_video_output(&self) -> &super::ManifestVideoOutput {
&*self.manifest_video_output
}
#[inline]
pub fn frame_timestamps_s3_path(&self) -> Option<&super::super::super::api::S3Path> {
self.frame_timestamps_s3_path.as_ref().map(|o| &*o)
}
}