Struct aws_sdk_elastictranscoder::model::caption_source::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for CaptionSource
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The name of the sidecar caption file that you want Elastic Transcoder to include in the output file.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The name of the sidecar caption file that you want Elastic Transcoder to include in the output file.
sourcepub fn language(self, input: impl Into<String>) -> Self
pub fn language(self, input: impl Into<String>) -> Self
A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of:
-
2-character ISO 639-1 code
-
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
sourcepub fn set_language(self, input: Option<String>) -> Self
pub fn set_language(self, input: Option<String>) -> Self
A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of:
-
2-character ISO 639-1 code
-
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
sourcepub fn time_offset(self, input: impl Into<String>) -> Self
pub fn time_offset(self, input: impl Into<String>) -> Self
For clip generation or captions that do not start at the same time as the associated video file, the TimeOffset
tells Elastic Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
sourcepub fn set_time_offset(self, input: Option<String>) -> Self
pub fn set_time_offset(self, input: Option<String>) -> Self
For clip generation or captions that do not start at the same time as the associated video file, the TimeOffset
tells Elastic Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss.
sourcepub fn label(self, input: impl Into<String>) -> Self
pub fn label(self, input: impl Into<String>) -> Self
The label of the caption shown in the player when choosing a language. We recommend that you put the caption language name here, in the language of the captions.
sourcepub fn set_label(self, input: Option<String>) -> Self
pub fn set_label(self, input: Option<String>) -> Self
The label of the caption shown in the player when choosing a language. We recommend that you put the caption language name here, in the language of the captions.
sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources.
sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources.
sourcepub fn build(self) -> CaptionSource
pub fn build(self) -> CaptionSource
Consumes the builder and constructs a CaptionSource
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more