Struct aws_sdk_mediapackagev2::types::builders::SegmentBuilder
source · #[non_exhaustive]pub struct SegmentBuilder { /* private fields */ }
Expand description
A builder for Segment
.
Implementations§
source§impl SegmentBuilder
impl SegmentBuilder
sourcepub fn segment_duration_seconds(self, input: i32) -> Self
pub fn segment_duration_seconds(self, input: i32) -> Self
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.
sourcepub fn set_segment_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_segment_duration_seconds(self, input: Option<i32>) -> Self
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.
sourcepub fn get_segment_duration_seconds(&self) -> &Option<i32>
pub fn get_segment_duration_seconds(&self) -> &Option<i32>
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration. If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the nearest multiple of the input segment duration.
sourcepub fn segment_name(self, input: impl Into<String>) -> Self
pub fn segment_name(self, input: impl Into<String>) -> Self
The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.
sourcepub fn set_segment_name(self, input: Option<String>) -> Self
pub fn set_segment_name(self, input: Option<String>) -> Self
The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.
sourcepub fn get_segment_name(&self) -> &Option<String>
pub fn get_segment_name(&self) -> &Option<String>
The name that describes the segment. The name is the base name of the segment used in all content manifests inside of the endpoint. You can't use spaces in the name.
sourcepub fn ts_use_audio_rendition_group(self, input: bool) -> Self
pub fn ts_use_audio_rendition_group(self, input: bool) -> Self
When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.
sourcepub fn set_ts_use_audio_rendition_group(self, input: Option<bool>) -> Self
pub fn set_ts_use_audio_rendition_group(self, input: Option<bool>) -> Self
When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.
sourcepub fn get_ts_use_audio_rendition_group(&self) -> &Option<bool>
pub fn get_ts_use_audio_rendition_group(&self) -> &Option<bool>
When selected, MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.
sourcepub fn include_iframe_only_streams(self, input: bool) -> Self
pub fn include_iframe_only_streams(self, input: bool) -> Self
When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.
sourcepub fn set_include_iframe_only_streams(self, input: Option<bool>) -> Self
pub fn set_include_iframe_only_streams(self, input: Option<bool>) -> Self
When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.
sourcepub fn get_include_iframe_only_streams(&self) -> &Option<bool>
pub fn get_include_iframe_only_streams(&self) -> &Option<bool>
When selected, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included. MediaPackage generates an I-frame only stream from the first rendition in the manifest. The service inserts EXT-I-FRAMES-ONLY tags in the output manifest, and then generates and includes an I-frames only playlist in the stream. This playlist permits player functionality like fast forward and rewind.
sourcepub fn ts_include_dvb_subtitles(self, input: bool) -> Self
pub fn ts_include_dvb_subtitles(self, input: bool) -> Self
By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.
sourcepub fn set_ts_include_dvb_subtitles(self, input: Option<bool>) -> Self
pub fn set_ts_include_dvb_subtitles(self, input: Option<bool>) -> Self
By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.
sourcepub fn get_ts_include_dvb_subtitles(&self) -> &Option<bool>
pub fn get_ts_include_dvb_subtitles(&self) -> &Option<bool>
By default, MediaPackage excludes all digital video broadcasting (DVB) subtitles from the output. When selected, MediaPackage passes through DVB subtitles into the output.
sourcepub fn set_scte(self, input: Option<Scte>) -> Self
pub fn set_scte(self, input: Option<Scte>) -> Self
The SCTE configuration options in the segment settings.
sourcepub fn get_scte(&self) -> &Option<Scte>
pub fn get_scte(&self) -> &Option<Scte>
The SCTE configuration options in the segment settings.
sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
The parameters for encrypting content.
sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
The parameters for encrypting content.
sourcepub fn get_encryption(&self) -> &Option<Encryption>
pub fn get_encryption(&self) -> &Option<Encryption>
The parameters for encrypting content.
Trait Implementations§
source§impl Clone for SegmentBuilder
impl Clone for SegmentBuilder
source§fn clone(&self) -> SegmentBuilder
fn clone(&self) -> SegmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SegmentBuilder
impl Debug for SegmentBuilder
source§impl Default for SegmentBuilder
impl Default for SegmentBuilder
source§fn default() -> SegmentBuilder
fn default() -> SegmentBuilder
source§impl PartialEq for SegmentBuilder
impl PartialEq for SegmentBuilder
source§fn eq(&self, other: &SegmentBuilder) -> bool
fn eq(&self, other: &SegmentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.