Struct aws_sdk_mediapackage::model::cmaf_package::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CmafPackage
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn encryption(self, input: CmafEncryption) -> Self
pub fn encryption(self, input: CmafEncryption) -> Self
A Common Media Application Format (CMAF) encryption configuration.
sourcepub fn set_encryption(self, input: Option<CmafEncryption>) -> Self
pub fn set_encryption(self, input: Option<CmafEncryption>) -> Self
A Common Media Application Format (CMAF) encryption configuration.
sourcepub fn hls_manifests(self, input: HlsManifest) -> Self
pub fn hls_manifests(self, input: HlsManifest) -> Self
Appends an item to hls_manifests
.
To override the contents of this collection use set_hls_manifests
.
A list of HLS manifest configurations
sourcepub fn set_hls_manifests(self, input: Option<Vec<HlsManifest>>) -> Self
pub fn set_hls_manifests(self, input: Option<Vec<HlsManifest>>) -> Self
A list of HLS manifest configurations
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_prefix(self, input: impl Into<String>) -> Self
pub fn segment_prefix(self, input: impl Into<String>) -> Self
An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.
sourcepub fn set_segment_prefix(self, input: Option<String>) -> Self
pub fn set_segment_prefix(self, input: Option<String>) -> Self
An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.
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 build(self) -> CmafPackage
pub fn build(self) -> CmafPackage
Consumes the builder and constructs a CmafPackage
.