#[non_exhaustive]pub struct InputCaptionsBuilder { /* private fields */ }
Expand description
A builder for InputCaptions
.
Implementations§
source§impl InputCaptionsBuilder
impl InputCaptionsBuilder
sourcepub fn merge_policy(self, input: impl Into<String>) -> Self
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
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>
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
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
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>>
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 build(self) -> InputCaptions
pub fn build(self) -> InputCaptions
Consumes the builder and constructs a InputCaptions
.
Trait Implementations§
source§impl Clone for InputCaptionsBuilder
impl Clone for InputCaptionsBuilder
source§fn clone(&self) -> InputCaptionsBuilder
fn clone(&self) -> InputCaptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputCaptionsBuilder
impl Debug for InputCaptionsBuilder
source§impl Default for InputCaptionsBuilder
impl Default for InputCaptionsBuilder
source§fn default() -> InputCaptionsBuilder
fn default() -> InputCaptionsBuilder
source§impl PartialEq<InputCaptionsBuilder> for InputCaptionsBuilder
impl PartialEq<InputCaptionsBuilder> for InputCaptionsBuilder
source§fn eq(&self, other: &InputCaptionsBuilder) -> bool
fn eq(&self, other: &InputCaptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.