aws_sdk_mediaconvert/types/_srt_destination_settings.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Settings related to SRT captions. SRT is a sidecar format that holds captions in a file that is separate from the video container. Set up sidecar captions in the same output group, but different output from your video.
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct SrtDestinationSettings {
7 /// Set Style passthrough to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
8 pub style_passthrough: ::std::option::Option<crate::types::SrtStylePassthrough>,
9}
10impl SrtDestinationSettings {
11 /// Set Style passthrough to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
12 pub fn style_passthrough(&self) -> ::std::option::Option<&crate::types::SrtStylePassthrough> {
13 self.style_passthrough.as_ref()
14 }
15}
16impl SrtDestinationSettings {
17 /// Creates a new builder-style object to manufacture [`SrtDestinationSettings`](crate::types::SrtDestinationSettings).
18 pub fn builder() -> crate::types::builders::SrtDestinationSettingsBuilder {
19 crate::types::builders::SrtDestinationSettingsBuilder::default()
20 }
21}
22
23/// A builder for [`SrtDestinationSettings`](crate::types::SrtDestinationSettings).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct SrtDestinationSettingsBuilder {
27 pub(crate) style_passthrough: ::std::option::Option<crate::types::SrtStylePassthrough>,
28}
29impl SrtDestinationSettingsBuilder {
30 /// Set Style passthrough to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
31 pub fn style_passthrough(mut self, input: crate::types::SrtStylePassthrough) -> Self {
32 self.style_passthrough = ::std::option::Option::Some(input);
33 self
34 }
35 /// Set Style passthrough to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
36 pub fn set_style_passthrough(mut self, input: ::std::option::Option<crate::types::SrtStylePassthrough>) -> Self {
37 self.style_passthrough = input;
38 self
39 }
40 /// Set Style passthrough to ENABLED to use the available style, color, and position information from your input captions. MediaConvert uses default settings for any missing style and position information in your input captions. Set Style passthrough to DISABLED, or leave blank, to ignore the style and position information from your input captions and use simplified output captions.
41 pub fn get_style_passthrough(&self) -> &::std::option::Option<crate::types::SrtStylePassthrough> {
42 &self.style_passthrough
43 }
44 /// Consumes the builder and constructs a [`SrtDestinationSettings`](crate::types::SrtDestinationSettings).
45 pub fn build(self) -> crate::types::SrtDestinationSettings {
46 crate::types::SrtDestinationSettings {
47 style_passthrough: self.style_passthrough,
48 }
49 }
50}