Struct aws_sdk_elastictranscoder::types::builders::CaptionsBuilder
source · #[non_exhaustive]pub struct CaptionsBuilder { /* private fields */ }
Expand description
A builder for Captions
.
Implementations§
source§impl CaptionsBuilder
impl CaptionsBuilder
sourcepub fn merge_policy(self, input: impl Into<String>) -> Self
👎Deprecated
pub fn merge_policy(self, input: impl Into<String>) -> Self
A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
-
MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources
.
MergePolicy
cannot be null.
sourcepub fn set_merge_policy(self, input: Option<String>) -> Self
👎Deprecated
pub fn set_merge_policy(self, input: Option<String>) -> Self
A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
-
MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources
.
MergePolicy
cannot be null.
sourcepub fn get_merge_policy(&self) -> &Option<String>
👎Deprecated
pub fn get_merge_policy(&self) -> &Option<String>
A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
-
MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources
.
MergePolicy
cannot be null.
sourcepub fn caption_sources(self, input: CaptionSource) -> Self
👎Deprecated
pub fn caption_sources(self, input: CaptionSource) -> Self
Appends an item to caption_sources
.
To override the contents of this collection use set_caption_sources
.
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
sourcepub fn set_caption_sources(self, input: Option<Vec<CaptionSource>>) -> Self
👎Deprecated
pub fn set_caption_sources(self, input: Option<Vec<CaptionSource>>) -> Self
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
sourcepub fn get_caption_sources(&self) -> &Option<Vec<CaptionSource>>
👎Deprecated
pub fn get_caption_sources(&self) -> &Option<Vec<CaptionSource>>
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
sourcepub fn caption_formats(self, input: CaptionFormat) -> Self
pub fn caption_formats(self, input: CaptionFormat) -> Self
Appends an item to caption_formats
.
To override the contents of this collection use set_caption_formats
.
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
sourcepub fn set_caption_formats(self, input: Option<Vec<CaptionFormat>>) -> Self
pub fn set_caption_formats(self, input: Option<Vec<CaptionFormat>>) -> Self
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
sourcepub fn get_caption_formats(&self) -> &Option<Vec<CaptionFormat>>
pub fn get_caption_formats(&self) -> &Option<Vec<CaptionFormat>>
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
Trait Implementations§
source§impl Clone for CaptionsBuilder
impl Clone for CaptionsBuilder
source§fn clone(&self) -> CaptionsBuilder
fn clone(&self) -> CaptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptionsBuilder
impl Debug for CaptionsBuilder
source§impl Default for CaptionsBuilder
impl Default for CaptionsBuilder
source§fn default() -> CaptionsBuilder
fn default() -> CaptionsBuilder
source§impl PartialEq for CaptionsBuilder
impl PartialEq for CaptionsBuilder
source§fn eq(&self, other: &CaptionsBuilder) -> bool
fn eq(&self, other: &CaptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionsBuilder
Auto Trait Implementations§
impl Freeze for CaptionsBuilder
impl RefUnwindSafe for CaptionsBuilder
impl Send for CaptionsBuilder
impl Sync for CaptionsBuilder
impl Unpin for CaptionsBuilder
impl UnwindSafe for CaptionsBuilder
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