Struct aws_sdk_mediapackagevod::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 CMAF encryption configuration.
sourcepub fn set_encryption(self, input: Option<CmafEncryption>) -> Self
pub fn set_encryption(self, input: Option<CmafEncryption>) -> Self
A CMAF encryption configuration.
sourcepub fn get_encryption(&self) -> &Option<CmafEncryption>
pub fn get_encryption(&self) -> &Option<CmafEncryption>
A 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 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 segment_duration_seconds(self, input: i32) -> Self
pub fn segment_duration_seconds(self, input: i32) -> Self
Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment 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 fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
sourcepub fn get_segment_duration_seconds(&self) -> &Option<i32>
pub fn get_segment_duration_seconds(&self) -> &Option<i32>
Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
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 ==
.impl StructuralPartialEq for CmafPackageBuilder
Auto Trait Implementations§
impl Freeze for CmafPackageBuilder
impl RefUnwindSafe for CmafPackageBuilder
impl Send for CmafPackageBuilder
impl Sync for CmafPackageBuilder
impl Unpin for CmafPackageBuilder
impl UnwindSafe for CmafPackageBuilder
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