Struct aws_sdk_ivs::types::builders::ThumbnailConfigurationBuilder
source · #[non_exhaustive]pub struct ThumbnailConfigurationBuilder { /* private fields */ }
Expand description
A builder for ThumbnailConfiguration
.
Implementations§
source§impl ThumbnailConfigurationBuilder
impl ThumbnailConfigurationBuilder
sourcepub fn recording_mode(self, input: RecordingMode) -> Self
pub fn recording_mode(self, input: RecordingMode) -> Self
Thumbnail recording mode. Default: INTERVAL
.
sourcepub fn set_recording_mode(self, input: Option<RecordingMode>) -> Self
pub fn set_recording_mode(self, input: Option<RecordingMode>) -> Self
Thumbnail recording mode. Default: INTERVAL
.
sourcepub fn get_recording_mode(&self) -> &Option<RecordingMode>
pub fn get_recording_mode(&self) -> &Option<RecordingMode>
Thumbnail recording mode. Default: INTERVAL
.
sourcepub fn target_interval_seconds(self, input: i64) -> Self
pub fn target_interval_seconds(self, input: i64) -> Self
The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if recordingMode
is INTERVAL
. Default: 60.
Important: For the BASIC
channel type, setting a value for targetIntervalSeconds
does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the targetIntervalSeconds
interval, the IDR/Keyframe
value for the input video must be less than the targetIntervalSeconds
value. See Amazon IVS Streaming Configuration for information on setting IDR/Keyframe
to the recommended value in video-encoder settings.
sourcepub fn set_target_interval_seconds(self, input: Option<i64>) -> Self
pub fn set_target_interval_seconds(self, input: Option<i64>) -> Self
The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if recordingMode
is INTERVAL
. Default: 60.
Important: For the BASIC
channel type, setting a value for targetIntervalSeconds
does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the targetIntervalSeconds
interval, the IDR/Keyframe
value for the input video must be less than the targetIntervalSeconds
value. See Amazon IVS Streaming Configuration for information on setting IDR/Keyframe
to the recommended value in video-encoder settings.
sourcepub fn get_target_interval_seconds(&self) -> &Option<i64>
pub fn get_target_interval_seconds(&self) -> &Option<i64>
The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if recordingMode
is INTERVAL
. Default: 60.
Important: For the BASIC
channel type, setting a value for targetIntervalSeconds
does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the targetIntervalSeconds
interval, the IDR/Keyframe
value for the input video must be less than the targetIntervalSeconds
value. See Amazon IVS Streaming Configuration for information on setting IDR/Keyframe
to the recommended value in video-encoder settings.
sourcepub fn resolution(self, input: ThumbnailConfigurationResolution) -> Self
pub fn resolution(self, input: ThumbnailConfigurationResolution) -> Self
Indicates the desired resolution of recorded thumbnails. Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see Auto-Record to Amazon S3. Default: Null (source resolution is returned).
sourcepub fn set_resolution(
self,
input: Option<ThumbnailConfigurationResolution>
) -> Self
pub fn set_resolution( self, input: Option<ThumbnailConfigurationResolution> ) -> Self
Indicates the desired resolution of recorded thumbnails. Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see Auto-Record to Amazon S3. Default: Null (source resolution is returned).
sourcepub fn get_resolution(&self) -> &Option<ThumbnailConfigurationResolution>
pub fn get_resolution(&self) -> &Option<ThumbnailConfigurationResolution>
Indicates the desired resolution of recorded thumbnails. Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see Auto-Record to Amazon S3. Default: Null (source resolution is returned).
sourcepub fn storage(self, input: ThumbnailConfigurationStorage) -> Self
pub fn storage(self, input: ThumbnailConfigurationStorage) -> Self
Appends an item to storage
.
To override the contents of this collection use set_storage
.
Indicates the format in which thumbnails are recorded. SEQUENTIAL
records all generated thumbnails in a serial manner, to the media/thumbnails directory. LATEST
saves the latest thumbnail in media/latest_thumbnail/thumb.jpg and overwrites it at the interval specified by targetIntervalSeconds
. You can enable both SEQUENTIAL
and LATEST
. Default: SEQUENTIAL
.
sourcepub fn set_storage(
self,
input: Option<Vec<ThumbnailConfigurationStorage>>
) -> Self
pub fn set_storage( self, input: Option<Vec<ThumbnailConfigurationStorage>> ) -> Self
Indicates the format in which thumbnails are recorded. SEQUENTIAL
records all generated thumbnails in a serial manner, to the media/thumbnails directory. LATEST
saves the latest thumbnail in media/latest_thumbnail/thumb.jpg and overwrites it at the interval specified by targetIntervalSeconds
. You can enable both SEQUENTIAL
and LATEST
. Default: SEQUENTIAL
.
sourcepub fn get_storage(&self) -> &Option<Vec<ThumbnailConfigurationStorage>>
pub fn get_storage(&self) -> &Option<Vec<ThumbnailConfigurationStorage>>
Indicates the format in which thumbnails are recorded. SEQUENTIAL
records all generated thumbnails in a serial manner, to the media/thumbnails directory. LATEST
saves the latest thumbnail in media/latest_thumbnail/thumb.jpg and overwrites it at the interval specified by targetIntervalSeconds
. You can enable both SEQUENTIAL
and LATEST
. Default: SEQUENTIAL
.
sourcepub fn build(self) -> ThumbnailConfiguration
pub fn build(self) -> ThumbnailConfiguration
Consumes the builder and constructs a ThumbnailConfiguration
.
Trait Implementations§
source§impl Clone for ThumbnailConfigurationBuilder
impl Clone for ThumbnailConfigurationBuilder
source§fn clone(&self) -> ThumbnailConfigurationBuilder
fn clone(&self) -> ThumbnailConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ThumbnailConfigurationBuilder
impl Default for ThumbnailConfigurationBuilder
source§fn default() -> ThumbnailConfigurationBuilder
fn default() -> ThumbnailConfigurationBuilder
source§impl PartialEq for ThumbnailConfigurationBuilder
impl PartialEq for ThumbnailConfigurationBuilder
source§fn eq(&self, other: &ThumbnailConfigurationBuilder) -> bool
fn eq(&self, other: &ThumbnailConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ThumbnailConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ThumbnailConfigurationBuilder
impl RefUnwindSafe for ThumbnailConfigurationBuilder
impl Send for ThumbnailConfigurationBuilder
impl Sync for ThumbnailConfigurationBuilder
impl Unpin for ThumbnailConfigurationBuilder
impl UnwindSafe for ThumbnailConfigurationBuilder
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