aws_sdk_medialive/types/_audio_dolby_e_decode.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Audio Dolby EDecode
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AudioDolbyEDecode {
7 /// Applies only to Dolby E. Enter the program ID (according to the metadata in the audio) of the Dolby E program to extract from the specified track. One program extracted per audio selector. To select multiple programs, create multiple selectors with the same Track and different Program numbers. “All channels” means to ignore the program IDs and include all the channels in this selector; useful if metadata is known to be incorrect.
8 pub program_selection: ::std::option::Option<crate::types::DolbyEProgramSelection>,
9}
10impl AudioDolbyEDecode {
11 /// Applies only to Dolby E. Enter the program ID (according to the metadata in the audio) of the Dolby E program to extract from the specified track. One program extracted per audio selector. To select multiple programs, create multiple selectors with the same Track and different Program numbers. “All channels” means to ignore the program IDs and include all the channels in this selector; useful if metadata is known to be incorrect.
12 pub fn program_selection(&self) -> ::std::option::Option<&crate::types::DolbyEProgramSelection> {
13 self.program_selection.as_ref()
14 }
15}
16impl AudioDolbyEDecode {
17 /// Creates a new builder-style object to manufacture [`AudioDolbyEDecode`](crate::types::AudioDolbyEDecode).
18 pub fn builder() -> crate::types::builders::AudioDolbyEDecodeBuilder {
19 crate::types::builders::AudioDolbyEDecodeBuilder::default()
20 }
21}
22
23/// A builder for [`AudioDolbyEDecode`](crate::types::AudioDolbyEDecode).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct AudioDolbyEDecodeBuilder {
27 pub(crate) program_selection: ::std::option::Option<crate::types::DolbyEProgramSelection>,
28}
29impl AudioDolbyEDecodeBuilder {
30 /// Applies only to Dolby E. Enter the program ID (according to the metadata in the audio) of the Dolby E program to extract from the specified track. One program extracted per audio selector. To select multiple programs, create multiple selectors with the same Track and different Program numbers. “All channels” means to ignore the program IDs and include all the channels in this selector; useful if metadata is known to be incorrect.
31 /// This field is required.
32 pub fn program_selection(mut self, input: crate::types::DolbyEProgramSelection) -> Self {
33 self.program_selection = ::std::option::Option::Some(input);
34 self
35 }
36 /// Applies only to Dolby E. Enter the program ID (according to the metadata in the audio) of the Dolby E program to extract from the specified track. One program extracted per audio selector. To select multiple programs, create multiple selectors with the same Track and different Program numbers. “All channels” means to ignore the program IDs and include all the channels in this selector; useful if metadata is known to be incorrect.
37 pub fn set_program_selection(mut self, input: ::std::option::Option<crate::types::DolbyEProgramSelection>) -> Self {
38 self.program_selection = input;
39 self
40 }
41 /// Applies only to Dolby E. Enter the program ID (according to the metadata in the audio) of the Dolby E program to extract from the specified track. One program extracted per audio selector. To select multiple programs, create multiple selectors with the same Track and different Program numbers. “All channels” means to ignore the program IDs and include all the channels in this selector; useful if metadata is known to be incorrect.
42 pub fn get_program_selection(&self) -> &::std::option::Option<crate::types::DolbyEProgramSelection> {
43 &self.program_selection
44 }
45 /// Consumes the builder and constructs a [`AudioDolbyEDecode`](crate::types::AudioDolbyEDecode).
46 pub fn build(self) -> crate::types::AudioDolbyEDecode {
47 crate::types::AudioDolbyEDecode {
48 program_selection: self.program_selection,
49 }
50 }
51}