Struct aws_sdk_mediapackage::types::builders::CmafPackageBuilder
source · #[non_exhaustive]pub struct CmafPackageBuilder { /* private fields */ }
Expand description
A builder for CmafPackage
.
Implementations§
source§impl CmafPackageBuilder
impl CmafPackageBuilder
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 get_encryption(&self) -> &Option<CmafEncryption>
pub fn get_encryption(&self) -> &Option<CmafEncryption>
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 get_hls_manifests(&self) -> &Option<Vec<HlsManifest>>
pub fn get_hls_manifests(&self) -> &Option<Vec<HlsManifest>>
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 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_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 get_segment_prefix(&self) -> &Option<String>
pub fn get_segment_prefix(&self) -> &Option<String>
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 get_stream_selection(&self) -> &Option<StreamSelection>
pub fn get_stream_selection(&self) -> &Option<StreamSelection>
A StreamSelection configuration.
sourcepub fn build(self) -> CmafPackage
pub fn build(self) -> CmafPackage
Consumes the builder and constructs a CmafPackage
.
Trait Implementations§
source§impl Clone for CmafPackageBuilder
impl Clone for CmafPackageBuilder
source§fn clone(&self) -> CmafPackageBuilder
fn clone(&self) -> CmafPackageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CmafPackageBuilder
impl Debug for CmafPackageBuilder
source§impl Default for CmafPackageBuilder
impl Default for CmafPackageBuilder
source§fn default() -> CmafPackageBuilder
fn default() -> CmafPackageBuilder
source§impl PartialEq for CmafPackageBuilder
impl PartialEq for CmafPackageBuilder
source§fn eq(&self, other: &CmafPackageBuilder) -> bool
fn eq(&self, other: &CmafPackageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.