Struct aws_sdk_mediapackage::model::dash_package::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for DashPackage
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn ad_triggers(self, input: AdTriggersElement) -> Self
pub fn ad_triggers(self, input: AdTriggersElement) -> Self
Appends an item to ad_triggers
.
To override the contents of this collection use set_ad_triggers
.
A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no ad markers are output. Specify multiple items to create ad markers for all of the included message types.
sourcepub fn set_ad_triggers(self, input: Option<Vec<AdTriggersElement>>) -> Self
pub fn set_ad_triggers(self, input: Option<Vec<AdTriggersElement>>) -> Self
A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no ad markers are output. Specify multiple items to create ad markers for all of the included message types.
sourcepub fn ads_on_delivery_restrictions(
self,
input: AdsOnDeliveryRestrictions
) -> Self
pub fn ads_on_delivery_restrictions(
self,
input: AdsOnDeliveryRestrictions
) -> Self
This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to determine whether a message signals an ad. Choosing “NONE” means no SCTE-35 messages become ads. Choosing “RESTRICTED” means SCTE-35 messages of the types specified in AdTriggers that contain delivery restrictions will be treated as ads. Choosing “UNRESTRICTED” means SCTE-35 messages of the types specified in AdTriggers that do not contain delivery restrictions will be treated as ads. Choosing “BOTH” means all SCTE-35 messages of the types specified in AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags and are always treated as ads if specified in AdTriggers.
sourcepub fn set_ads_on_delivery_restrictions(
self,
input: Option<AdsOnDeliveryRestrictions>
) -> Self
pub fn set_ads_on_delivery_restrictions(
self,
input: Option<AdsOnDeliveryRestrictions>
) -> Self
This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to determine whether a message signals an ad. Choosing “NONE” means no SCTE-35 messages become ads. Choosing “RESTRICTED” means SCTE-35 messages of the types specified in AdTriggers that contain delivery restrictions will be treated as ads. Choosing “UNRESTRICTED” means SCTE-35 messages of the types specified in AdTriggers that do not contain delivery restrictions will be treated as ads. Choosing “BOTH” means all SCTE-35 messages of the types specified in AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags and are always treated as ads if specified in AdTriggers.
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 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 manifest_layout(self, input: ManifestLayout) -> Self
pub fn manifest_layout(self, input: ManifestLayout) -> Self
Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level.
sourcepub fn set_manifest_layout(self, input: Option<ManifestLayout>) -> Self
pub fn set_manifest_layout(self, input: Option<ManifestLayout>) -> Self
Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level.
sourcepub fn manifest_window_seconds(self, input: i32) -> Self
pub fn manifest_window_seconds(self, input: i32) -> Self
Time window (in seconds) contained in each manifest.
sourcepub fn set_manifest_window_seconds(self, input: Option<i32>) -> Self
pub fn set_manifest_window_seconds(self, input: Option<i32>) -> Self
Time window (in seconds) contained in each manifest.
sourcepub fn min_buffer_time_seconds(self, input: i32) -> Self
pub fn min_buffer_time_seconds(self, input: i32) -> Self
Minimum duration (in seconds) that a player will buffer media before starting the presentation.
sourcepub fn set_min_buffer_time_seconds(self, input: Option<i32>) -> Self
pub fn set_min_buffer_time_seconds(self, input: Option<i32>) -> Self
Minimum duration (in seconds) that a player will buffer media before starting the presentation.
sourcepub fn min_update_period_seconds(self, input: i32) -> Self
pub fn min_update_period_seconds(self, input: i32) -> Self
Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
sourcepub fn set_min_update_period_seconds(self, input: Option<i32>) -> Self
pub fn set_min_update_period_seconds(self, input: Option<i32>) -> Self
Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
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 Channel source 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 Channel source contains SCTE-35 ad markers.
sourcepub fn profile(self, input: Profile) -> Self
pub fn profile(self, input: Profile) -> Self
The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to “HBBTV_1_5”, HbbTV 1.5 compliant output is enabled. When set to “DVB-DASH_2014”, DVB-DASH 2014 compliant output is enabled.
sourcepub fn set_profile(self, input: Option<Profile>) -> Self
pub fn set_profile(self, input: Option<Profile>) -> Self
The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to “HBBTV_1_5”, HbbTV 1.5 compliant output is enabled. When set to “DVB-DASH_2014”, DVB-DASH 2014 compliant output is enabled.
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 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 stream_selection(self, input: StreamSelection) -> Self
pub fn stream_selection(self, input: StreamSelection) -> Self
A StreamSelection configuration.
sourcepub fn set_stream_selection(self, input: Option<StreamSelection>) -> Self
pub fn set_stream_selection(self, input: Option<StreamSelection>) -> Self
A StreamSelection configuration.
sourcepub fn suggested_presentation_delay_seconds(self, input: i32) -> Self
pub fn suggested_presentation_delay_seconds(self, input: i32) -> Self
Duration (in seconds) to delay live content before presentation.
sourcepub fn set_suggested_presentation_delay_seconds(self, input: Option<i32>) -> Self
pub fn set_suggested_presentation_delay_seconds(self, input: Option<i32>) -> Self
Duration (in seconds) to delay live content before presentation.
sourcepub fn utc_timing(self, input: UtcTiming) -> Self
pub fn utc_timing(self, input: UtcTiming) -> Self
Determines the type of UTCTiming included in the Media Presentation Description (MPD)
sourcepub fn set_utc_timing(self, input: Option<UtcTiming>) -> Self
pub fn set_utc_timing(self, input: Option<UtcTiming>) -> Self
Determines the type of UTCTiming included in the Media Presentation Description (MPD)
sourcepub fn utc_timing_uri(self, input: impl Into<String>) -> Self
pub fn utc_timing_uri(self, input: impl Into<String>) -> Self
Specifies the value attribute of the UTCTiming field when utcTiming is set to HTTP-ISO, HTTP-HEAD or HTTP-XSDATE
sourcepub fn set_utc_timing_uri(self, input: Option<String>) -> Self
pub fn set_utc_timing_uri(self, input: Option<String>) -> Self
Specifies the value attribute of the UTCTiming field when utcTiming is set to HTTP-ISO, HTTP-HEAD or HTTP-XSDATE
sourcepub fn build(self) -> DashPackage
pub fn build(self) -> DashPackage
Consumes the builder and constructs a DashPackage
.
Trait Implementations
sourceimpl PartialEq<Builder> for Builder
impl PartialEq<Builder> for Builder
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more