#[non_exhaustive]pub struct CmafPackageCreateOrUpdateParametersBuilder { /* private fields */ }
Expand description
A builder for CmafPackageCreateOrUpdateParameters
.
Implementations§
source§impl CmafPackageCreateOrUpdateParametersBuilder
impl CmafPackageCreateOrUpdateParametersBuilder
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: HlsManifestCreateOrUpdateParameters) -> Self
pub fn hls_manifests(self, input: HlsManifestCreateOrUpdateParameters) -> 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<HlsManifestCreateOrUpdateParameters>>
) -> Self
pub fn set_hls_manifests( self, input: Option<Vec<HlsManifestCreateOrUpdateParameters>> ) -> Self
A list of HLS manifest configurations
sourcepub fn get_hls_manifests(
&self
) -> &Option<Vec<HlsManifestCreateOrUpdateParameters>>
pub fn get_hls_manifests( &self ) -> &Option<Vec<HlsManifestCreateOrUpdateParameters>>
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) -> CmafPackageCreateOrUpdateParameters
pub fn build(self) -> CmafPackageCreateOrUpdateParameters
Consumes the builder and constructs a CmafPackageCreateOrUpdateParameters
.
Trait Implementations§
source§impl Clone for CmafPackageCreateOrUpdateParametersBuilder
impl Clone for CmafPackageCreateOrUpdateParametersBuilder
source§fn clone(&self) -> CmafPackageCreateOrUpdateParametersBuilder
fn clone(&self) -> CmafPackageCreateOrUpdateParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CmafPackageCreateOrUpdateParametersBuilder
impl Default for CmafPackageCreateOrUpdateParametersBuilder
source§fn default() -> CmafPackageCreateOrUpdateParametersBuilder
fn default() -> CmafPackageCreateOrUpdateParametersBuilder
source§impl PartialEq for CmafPackageCreateOrUpdateParametersBuilder
impl PartialEq for CmafPackageCreateOrUpdateParametersBuilder
source§fn eq(&self, other: &CmafPackageCreateOrUpdateParametersBuilder) -> bool
fn eq(&self, other: &CmafPackageCreateOrUpdateParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CmafPackageCreateOrUpdateParametersBuilder
Auto Trait Implementations§
impl Freeze for CmafPackageCreateOrUpdateParametersBuilder
impl RefUnwindSafe for CmafPackageCreateOrUpdateParametersBuilder
impl Send for CmafPackageCreateOrUpdateParametersBuilder
impl Sync for CmafPackageCreateOrUpdateParametersBuilder
impl Unpin for CmafPackageCreateOrUpdateParametersBuilder
impl UnwindSafe for CmafPackageCreateOrUpdateParametersBuilder
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