Struct aws_sdk_mediapackagevod::types::builders::DashPackageBuilder
source · #[non_exhaustive]pub struct DashPackageBuilder { /* private fields */ }
Expand description
A builder for DashPackage
.
Implementations§
source§impl DashPackageBuilder
impl DashPackageBuilder
sourcepub fn dash_manifests(self, input: DashManifest) -> Self
pub fn dash_manifests(self, input: DashManifest) -> Self
Appends an item to dash_manifests
.
To override the contents of this collection use set_dash_manifests
.
A list of DASH manifest configurations.
sourcepub fn set_dash_manifests(self, input: Option<Vec<DashManifest>>) -> Self
pub fn set_dash_manifests(self, input: Option<Vec<DashManifest>>) -> Self
A list of DASH manifest configurations.
sourcepub fn get_dash_manifests(&self) -> &Option<Vec<DashManifest>>
pub fn get_dash_manifests(&self) -> &Option<Vec<DashManifest>>
A list of DASH manifest configurations.
sourcepub fn encryption(self, input: DashEncryption) -> Self
pub fn encryption(self, input: DashEncryption) -> Self
A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
sourcepub fn set_encryption(self, input: Option<DashEncryption>) -> Self
pub fn set_encryption(self, input: Option<DashEncryption>) -> Self
A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
sourcepub fn get_encryption(&self) -> &Option<DashEncryption>
pub fn get_encryption(&self) -> &Option<DashEncryption>
A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
sourcepub fn include_encoder_configuration_in_segments(self, input: bool) -> Self
pub fn include_encoder_configuration_in_segments(self, input: bool) -> Self
When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.
sourcepub fn set_include_encoder_configuration_in_segments(
self,
input: Option<bool>,
) -> Self
pub fn set_include_encoder_configuration_in_segments( self, input: Option<bool>, ) -> Self
When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.
sourcepub fn get_include_encoder_configuration_in_segments(&self) -> &Option<bool>
pub fn get_include_encoder_configuration_in_segments(&self) -> &Option<bool>
When includeEncoderConfigurationInSegments is set to true, MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.
sourcepub fn include_iframe_only_stream(self, input: bool) -> Self
pub fn include_iframe_only_stream(self, input: bool) -> Self
When enabled, an I-Frame only stream will be included in the output.
sourcepub fn set_include_iframe_only_stream(self, input: Option<bool>) -> Self
pub fn set_include_iframe_only_stream(self, input: Option<bool>) -> Self
When enabled, an I-Frame only stream will be included in the output.
sourcepub fn get_include_iframe_only_stream(&self) -> &Option<bool>
pub fn get_include_iframe_only_stream(&self) -> &Option<bool>
When enabled, an I-Frame only stream will be included in the output.
sourcepub fn period_triggers(self, input: PeriodTriggersElement) -> Self
pub fn period_triggers(self, input: PeriodTriggersElement) -> Self
Appends an item to period_triggers
.
To override the contents of this collection use set_period_triggers
.
A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains “ADS”, new periods will be created where the Asset contains SCTE-35 ad markers.
sourcepub fn set_period_triggers(
self,
input: Option<Vec<PeriodTriggersElement>>,
) -> Self
pub fn set_period_triggers( self, input: Option<Vec<PeriodTriggersElement>>, ) -> Self
A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains “ADS”, new periods will be created where the Asset contains SCTE-35 ad markers.
sourcepub fn get_period_triggers(&self) -> &Option<Vec<PeriodTriggersElement>>
pub fn get_period_triggers(&self) -> &Option<Vec<PeriodTriggersElement>>
A list of triggers that controls when the outgoing Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into multiple periods. If empty, the content will not be partitioned into more than one period. If the list contains “ADS”, new periods will be created where the Asset contains SCTE-35 ad markers.
sourcepub fn segment_duration_seconds(self, input: i32) -> Self
pub fn segment_duration_seconds(self, input: i32) -> Self
Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
sourcepub fn set_segment_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_segment_duration_seconds(self, input: Option<i32>) -> Self
Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
sourcepub fn get_segment_duration_seconds(&self) -> &Option<i32>
pub fn get_segment_duration_seconds(&self) -> &Option<i32>
Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
sourcepub fn segment_template_format(self, input: SegmentTemplateFormat) -> Self
pub fn segment_template_format(self, input: SegmentTemplateFormat) -> Self
Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs.
sourcepub fn set_segment_template_format(
self,
input: Option<SegmentTemplateFormat>,
) -> Self
pub fn set_segment_template_format( self, input: Option<SegmentTemplateFormat>, ) -> Self
Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs.
sourcepub fn get_segment_template_format(&self) -> &Option<SegmentTemplateFormat>
pub fn get_segment_template_format(&self) -> &Option<SegmentTemplateFormat>
Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE, a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION, only a duration is included in each SegmentTemplate, with $Number$ media URLs.
sourcepub fn build(self) -> DashPackage
pub fn build(self) -> DashPackage
Consumes the builder and constructs a DashPackage
.
Trait Implementations§
source§impl Clone for DashPackageBuilder
impl Clone for DashPackageBuilder
source§fn clone(&self) -> DashPackageBuilder
fn clone(&self) -> DashPackageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DashPackageBuilder
impl Debug for DashPackageBuilder
source§impl Default for DashPackageBuilder
impl Default for DashPackageBuilder
source§fn default() -> DashPackageBuilder
fn default() -> DashPackageBuilder
source§impl PartialEq for DashPackageBuilder
impl PartialEq for DashPackageBuilder
source§fn eq(&self, other: &DashPackageBuilder) -> bool
fn eq(&self, other: &DashPackageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DashPackageBuilder
Auto Trait Implementations§
impl Freeze for DashPackageBuilder
impl RefUnwindSafe for DashPackageBuilder
impl Send for DashPackageBuilder
impl Sync for DashPackageBuilder
impl Unpin for DashPackageBuilder
impl UnwindSafe for DashPackageBuilder
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