1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// For motion overlays that don't have a built-in frame rate, specify the frame rate of the overlay in frames per second, as a fraction. For example, specify 24 fps as 24/1. The overlay frame rate doesn't need to match the frame rate of the underlying video.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct MotionImageInsertionFramerate {
/// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
pub framerate_denominator: ::std::option::Option<i32>,
/// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
pub framerate_numerator: ::std::option::Option<i32>,
}
impl MotionImageInsertionFramerate {
/// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
pub fn framerate_denominator(&self) -> ::std::option::Option<i32> {
self.framerate_denominator
}
/// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
pub fn framerate_numerator(&self) -> ::std::option::Option<i32> {
self.framerate_numerator
}
}
impl MotionImageInsertionFramerate {
/// Creates a new builder-style object to manufacture [`MotionImageInsertionFramerate`](crate::types::MotionImageInsertionFramerate).
pub fn builder() -> crate::types::builders::MotionImageInsertionFramerateBuilder {
crate::types::builders::MotionImageInsertionFramerateBuilder::default()
}
}
/// A builder for [`MotionImageInsertionFramerate`](crate::types::MotionImageInsertionFramerate).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct MotionImageInsertionFramerateBuilder {
pub(crate) framerate_denominator: ::std::option::Option<i32>,
pub(crate) framerate_numerator: ::std::option::Option<i32>,
}
impl MotionImageInsertionFramerateBuilder {
/// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
pub fn framerate_denominator(mut self, input: i32) -> Self {
self.framerate_denominator = ::std::option::Option::Some(input);
self
}
/// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
pub fn set_framerate_denominator(mut self, input: ::std::option::Option<i32>) -> Self {
self.framerate_denominator = input;
self
}
/// The bottom of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 1.
pub fn get_framerate_denominator(&self) -> &::std::option::Option<i32> {
&self.framerate_denominator
}
/// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
pub fn framerate_numerator(mut self, input: i32) -> Self {
self.framerate_numerator = ::std::option::Option::Some(input);
self
}
/// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
pub fn set_framerate_numerator(mut self, input: ::std::option::Option<i32>) -> Self {
self.framerate_numerator = input;
self
}
/// The top of the fraction that expresses your overlay frame rate. For example, if your frame rate is 24 fps, set this value to 24.
pub fn get_framerate_numerator(&self) -> &::std::option::Option<i32> {
&self.framerate_numerator
}
/// Consumes the builder and constructs a [`MotionImageInsertionFramerate`](crate::types::MotionImageInsertionFramerate).
pub fn build(self) -> crate::types::MotionImageInsertionFramerate {
crate::types::MotionImageInsertionFramerate {
framerate_denominator: self.framerate_denominator,
framerate_numerator: self.framerate_numerator,
}
}
}