#[non_exhaustive]pub struct AutomatedAbrRuleBuilder { /* private fields */ }
Expand description
A builder for AutomatedAbrRule
.
Implementations§
source§impl AutomatedAbrRuleBuilder
impl AutomatedAbrRuleBuilder
sourcepub fn allowed_renditions(self, input: AllowedRenditionSize) -> Self
pub fn allowed_renditions(self, input: AllowedRenditionSize) -> Self
Appends an item to allowed_renditions
.
To override the contents of this collection use set_allowed_renditions
.
When customer adds the allowed renditions rule for auto ABR ladder, they are required to add at leat one rendition to allowedRenditions list
sourcepub fn set_allowed_renditions(
self,
input: Option<Vec<AllowedRenditionSize>>
) -> Self
pub fn set_allowed_renditions( self, input: Option<Vec<AllowedRenditionSize>> ) -> Self
When customer adds the allowed renditions rule for auto ABR ladder, they are required to add at leat one rendition to allowedRenditions list
sourcepub fn get_allowed_renditions(&self) -> &Option<Vec<AllowedRenditionSize>>
pub fn get_allowed_renditions(&self) -> &Option<Vec<AllowedRenditionSize>>
When customer adds the allowed renditions rule for auto ABR ladder, they are required to add at leat one rendition to allowedRenditions list
sourcepub fn force_include_renditions(self, input: ForceIncludeRenditionSize) -> Self
pub fn force_include_renditions(self, input: ForceIncludeRenditionSize) -> Self
Appends an item to force_include_renditions
.
To override the contents of this collection use set_force_include_renditions
.
When customer adds the force include renditions rule for auto ABR ladder, they are required to add at leat one rendition to forceIncludeRenditions list
sourcepub fn set_force_include_renditions(
self,
input: Option<Vec<ForceIncludeRenditionSize>>
) -> Self
pub fn set_force_include_renditions( self, input: Option<Vec<ForceIncludeRenditionSize>> ) -> Self
When customer adds the force include renditions rule for auto ABR ladder, they are required to add at leat one rendition to forceIncludeRenditions list
sourcepub fn get_force_include_renditions(
&self
) -> &Option<Vec<ForceIncludeRenditionSize>>
pub fn get_force_include_renditions( &self ) -> &Option<Vec<ForceIncludeRenditionSize>>
When customer adds the force include renditions rule for auto ABR ladder, they are required to add at leat one rendition to forceIncludeRenditions list
sourcepub fn min_bottom_rendition_size(self, input: MinBottomRenditionSize) -> Self
pub fn min_bottom_rendition_size(self, input: MinBottomRenditionSize) -> Self
Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size.
sourcepub fn set_min_bottom_rendition_size(
self,
input: Option<MinBottomRenditionSize>
) -> Self
pub fn set_min_bottom_rendition_size( self, input: Option<MinBottomRenditionSize> ) -> Self
Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size.
sourcepub fn get_min_bottom_rendition_size(&self) -> &Option<MinBottomRenditionSize>
pub fn get_min_bottom_rendition_size(&self) -> &Option<MinBottomRenditionSize>
Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size.
sourcepub fn min_top_rendition_size(self, input: MinTopRenditionSize) -> Self
pub fn min_top_rendition_size(self, input: MinTopRenditionSize) -> Self
Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution.
sourcepub fn set_min_top_rendition_size(
self,
input: Option<MinTopRenditionSize>
) -> Self
pub fn set_min_top_rendition_size( self, input: Option<MinTopRenditionSize> ) -> Self
Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution.
sourcepub fn get_min_top_rendition_size(&self) -> &Option<MinTopRenditionSize>
pub fn get_min_top_rendition_size(&self) -> &Option<MinTopRenditionSize>
Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution.
sourcepub fn type(self, input: RuleType) -> Self
pub fn type(self, input: RuleType) -> Self
Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution. Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size. Use Force include renditions to specify one or more resolutions to include your ABR stack. * (Recommended) To optimize automated ABR, specify as few resolutions as possible. * (Required) The number of resolutions that you specify must be equal to, or less than, the Max renditions setting. * If you specify a Min top rendition size rule, specify at least one resolution that is equal to, or greater than, Min top rendition size. * If you specify a Min bottom rendition size rule, only specify resolutions that are equal to, or greater than, Min bottom rendition size. * If you specify a Force include renditions rule, do not specify a separate rule for Allowed renditions. * Note: The ABR stack may include other resolutions that you do not specify here, depending on the Max renditions setting. Use Allowed renditions to specify a list of possible resolutions in your ABR stack. * (Required) The number of resolutions that you specify must be equal to, or greater than, the Max renditions setting. * MediaConvert will create an ABR stack exclusively from the list of resolutions that you specify. * Some resolutions in the Allowed renditions list may not be included, however you can force a resolution to be included by setting Required to ENABLED. * You must specify at least one resolution that is greater than or equal to any resolutions that you specify in Min top rendition size or Min bottom rendition size. * If you specify Allowed renditions, you must not specify a separate rule for Force include renditions.
sourcepub fn set_type(self, input: Option<RuleType>) -> Self
pub fn set_type(self, input: Option<RuleType>) -> Self
Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution. Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size. Use Force include renditions to specify one or more resolutions to include your ABR stack. * (Recommended) To optimize automated ABR, specify as few resolutions as possible. * (Required) The number of resolutions that you specify must be equal to, or less than, the Max renditions setting. * If you specify a Min top rendition size rule, specify at least one resolution that is equal to, or greater than, Min top rendition size. * If you specify a Min bottom rendition size rule, only specify resolutions that are equal to, or greater than, Min bottom rendition size. * If you specify a Force include renditions rule, do not specify a separate rule for Allowed renditions. * Note: The ABR stack may include other resolutions that you do not specify here, depending on the Max renditions setting. Use Allowed renditions to specify a list of possible resolutions in your ABR stack. * (Required) The number of resolutions that you specify must be equal to, or greater than, the Max renditions setting. * MediaConvert will create an ABR stack exclusively from the list of resolutions that you specify. * Some resolutions in the Allowed renditions list may not be included, however you can force a resolution to be included by setting Required to ENABLED. * You must specify at least one resolution that is greater than or equal to any resolutions that you specify in Min top rendition size or Min bottom rendition size. * If you specify Allowed renditions, you must not specify a separate rule for Force include renditions.
sourcepub fn get_type(&self) -> &Option<RuleType>
pub fn get_type(&self) -> &Option<RuleType>
Use Min top rendition size to specify a minimum size for the highest resolution in your ABR stack. * The highest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 1280x720 the highest resolution in your ABR stack will be equal to or greater than 1280x720. * If you specify a value for Max resolution, the value that you specify for Min top rendition size must be less than, or equal to, Max resolution. Use Min bottom rendition size to specify a minimum size for the lowest resolution in your ABR stack. * The lowest resolution in your ABR stack will be equal to or greater than the value that you enter. For example: If you specify 640x360 the lowest resolution in your ABR stack will be equal to or greater than to 640x360. * If you specify a Min top rendition size rule, the value that you specify for Min bottom rendition size must be less than, or equal to, Min top rendition size. Use Force include renditions to specify one or more resolutions to include your ABR stack. * (Recommended) To optimize automated ABR, specify as few resolutions as possible. * (Required) The number of resolutions that you specify must be equal to, or less than, the Max renditions setting. * If you specify a Min top rendition size rule, specify at least one resolution that is equal to, or greater than, Min top rendition size. * If you specify a Min bottom rendition size rule, only specify resolutions that are equal to, or greater than, Min bottom rendition size. * If you specify a Force include renditions rule, do not specify a separate rule for Allowed renditions. * Note: The ABR stack may include other resolutions that you do not specify here, depending on the Max renditions setting. Use Allowed renditions to specify a list of possible resolutions in your ABR stack. * (Required) The number of resolutions that you specify must be equal to, or greater than, the Max renditions setting. * MediaConvert will create an ABR stack exclusively from the list of resolutions that you specify. * Some resolutions in the Allowed renditions list may not be included, however you can force a resolution to be included by setting Required to ENABLED. * You must specify at least one resolution that is greater than or equal to any resolutions that you specify in Min top rendition size or Min bottom rendition size. * If you specify Allowed renditions, you must not specify a separate rule for Force include renditions.
sourcepub fn build(self) -> AutomatedAbrRule
pub fn build(self) -> AutomatedAbrRule
Consumes the builder and constructs a AutomatedAbrRule
.
Trait Implementations§
source§impl Clone for AutomatedAbrRuleBuilder
impl Clone for AutomatedAbrRuleBuilder
source§fn clone(&self) -> AutomatedAbrRuleBuilder
fn clone(&self) -> AutomatedAbrRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutomatedAbrRuleBuilder
impl Debug for AutomatedAbrRuleBuilder
source§impl Default for AutomatedAbrRuleBuilder
impl Default for AutomatedAbrRuleBuilder
source§fn default() -> AutomatedAbrRuleBuilder
fn default() -> AutomatedAbrRuleBuilder
source§impl PartialEq for AutomatedAbrRuleBuilder
impl PartialEq for AutomatedAbrRuleBuilder
source§fn eq(&self, other: &AutomatedAbrRuleBuilder) -> bool
fn eq(&self, other: &AutomatedAbrRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutomatedAbrRuleBuilder
Auto Trait Implementations§
impl Freeze for AutomatedAbrRuleBuilder
impl RefUnwindSafe for AutomatedAbrRuleBuilder
impl Send for AutomatedAbrRuleBuilder
impl Sync for AutomatedAbrRuleBuilder
impl Unpin for AutomatedAbrRuleBuilder
impl UnwindSafe for AutomatedAbrRuleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more