1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Settings related to audio encoding. The settings in this group vary depending on the value that you choose for your audio codec.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AudioCodecSettings {
    /// Required when you set Codec to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality. In CBR mode, you use the setting Bitrate. Defaults and valid values depend on the rate control mode.
    pub aac_settings: ::std::option::Option<crate::types::AacSettings>,
    /// Required when you set Codec to the value AC3.
    pub ac3_settings: ::std::option::Option<crate::types::Ac3Settings>,
    /// Required when you set Codec to the value AIFF.
    pub aiff_settings: ::std::option::Option<crate::types::AiffSettings>,
    /// Choose the audio codec for this output. Note that the option Dolby Digital passthrough applies only to Dolby Digital and Dolby Digital Plus audio inputs. Make sure that you choose a codec that's supported with your output container: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio For audio-only outputs, make sure that both your input audio codec and your output audio codec are supported for audio-only workflows. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only and https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output
    pub codec: ::std::option::Option<crate::types::AudioCodec>,
    /// Required when you set Codec to the value EAC3_ATMOS.
    pub eac3_atmos_settings: ::std::option::Option<crate::types::Eac3AtmosSettings>,
    /// Required when you set Codec to the value EAC3.
    pub eac3_settings: ::std::option::Option<crate::types::Eac3Settings>,
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value FLAC.
    pub flac_settings: ::std::option::Option<crate::types::FlacSettings>,
    /// Required when you set Codec to the value MP2.
    pub mp2_settings: ::std::option::Option<crate::types::Mp2Settings>,
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value MP3.
    pub mp3_settings: ::std::option::Option<crate::types::Mp3Settings>,
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value OPUS.
    pub opus_settings: ::std::option::Option<crate::types::OpusSettings>,
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value Vorbis.
    pub vorbis_settings: ::std::option::Option<crate::types::VorbisSettings>,
    /// Required when you set Codec to the value WAV.
    pub wav_settings: ::std::option::Option<crate::types::WavSettings>,
}
impl AudioCodecSettings {
    /// Required when you set Codec to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality. In CBR mode, you use the setting Bitrate. Defaults and valid values depend on the rate control mode.
    pub fn aac_settings(&self) -> ::std::option::Option<&crate::types::AacSettings> {
        self.aac_settings.as_ref()
    }
    /// Required when you set Codec to the value AC3.
    pub fn ac3_settings(&self) -> ::std::option::Option<&crate::types::Ac3Settings> {
        self.ac3_settings.as_ref()
    }
    /// Required when you set Codec to the value AIFF.
    pub fn aiff_settings(&self) -> ::std::option::Option<&crate::types::AiffSettings> {
        self.aiff_settings.as_ref()
    }
    /// Choose the audio codec for this output. Note that the option Dolby Digital passthrough applies only to Dolby Digital and Dolby Digital Plus audio inputs. Make sure that you choose a codec that's supported with your output container: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio For audio-only outputs, make sure that both your input audio codec and your output audio codec are supported for audio-only workflows. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only and https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output
    pub fn codec(&self) -> ::std::option::Option<&crate::types::AudioCodec> {
        self.codec.as_ref()
    }
    /// Required when you set Codec to the value EAC3_ATMOS.
    pub fn eac3_atmos_settings(&self) -> ::std::option::Option<&crate::types::Eac3AtmosSettings> {
        self.eac3_atmos_settings.as_ref()
    }
    /// Required when you set Codec to the value EAC3.
    pub fn eac3_settings(&self) -> ::std::option::Option<&crate::types::Eac3Settings> {
        self.eac3_settings.as_ref()
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value FLAC.
    pub fn flac_settings(&self) -> ::std::option::Option<&crate::types::FlacSettings> {
        self.flac_settings.as_ref()
    }
    /// Required when you set Codec to the value MP2.
    pub fn mp2_settings(&self) -> ::std::option::Option<&crate::types::Mp2Settings> {
        self.mp2_settings.as_ref()
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value MP3.
    pub fn mp3_settings(&self) -> ::std::option::Option<&crate::types::Mp3Settings> {
        self.mp3_settings.as_ref()
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value OPUS.
    pub fn opus_settings(&self) -> ::std::option::Option<&crate::types::OpusSettings> {
        self.opus_settings.as_ref()
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value Vorbis.
    pub fn vorbis_settings(&self) -> ::std::option::Option<&crate::types::VorbisSettings> {
        self.vorbis_settings.as_ref()
    }
    /// Required when you set Codec to the value WAV.
    pub fn wav_settings(&self) -> ::std::option::Option<&crate::types::WavSettings> {
        self.wav_settings.as_ref()
    }
}
impl AudioCodecSettings {
    /// Creates a new builder-style object to manufacture [`AudioCodecSettings`](crate::types::AudioCodecSettings).
    pub fn builder() -> crate::types::builders::AudioCodecSettingsBuilder {
        crate::types::builders::AudioCodecSettingsBuilder::default()
    }
}

/// A builder for [`AudioCodecSettings`](crate::types::AudioCodecSettings).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AudioCodecSettingsBuilder {
    pub(crate) aac_settings: ::std::option::Option<crate::types::AacSettings>,
    pub(crate) ac3_settings: ::std::option::Option<crate::types::Ac3Settings>,
    pub(crate) aiff_settings: ::std::option::Option<crate::types::AiffSettings>,
    pub(crate) codec: ::std::option::Option<crate::types::AudioCodec>,
    pub(crate) eac3_atmos_settings: ::std::option::Option<crate::types::Eac3AtmosSettings>,
    pub(crate) eac3_settings: ::std::option::Option<crate::types::Eac3Settings>,
    pub(crate) flac_settings: ::std::option::Option<crate::types::FlacSettings>,
    pub(crate) mp2_settings: ::std::option::Option<crate::types::Mp2Settings>,
    pub(crate) mp3_settings: ::std::option::Option<crate::types::Mp3Settings>,
    pub(crate) opus_settings: ::std::option::Option<crate::types::OpusSettings>,
    pub(crate) vorbis_settings: ::std::option::Option<crate::types::VorbisSettings>,
    pub(crate) wav_settings: ::std::option::Option<crate::types::WavSettings>,
}
impl AudioCodecSettingsBuilder {
    /// Required when you set Codec to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality. In CBR mode, you use the setting Bitrate. Defaults and valid values depend on the rate control mode.
    pub fn aac_settings(mut self, input: crate::types::AacSettings) -> Self {
        self.aac_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality. In CBR mode, you use the setting Bitrate. Defaults and valid values depend on the rate control mode.
    pub fn set_aac_settings(mut self, input: ::std::option::Option<crate::types::AacSettings>) -> Self {
        self.aac_settings = input;
        self
    }
    /// Required when you set Codec to the value AAC. The service accepts one of two mutually exclusive groups of AAC settings--VBR and CBR. To select one of these modes, set the value of Bitrate control mode to "VBR" or "CBR". In VBR mode, you control the audio quality with the setting VBR quality. In CBR mode, you use the setting Bitrate. Defaults and valid values depend on the rate control mode.
    pub fn get_aac_settings(&self) -> &::std::option::Option<crate::types::AacSettings> {
        &self.aac_settings
    }
    /// Required when you set Codec to the value AC3.
    pub fn ac3_settings(mut self, input: crate::types::Ac3Settings) -> Self {
        self.ac3_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value AC3.
    pub fn set_ac3_settings(mut self, input: ::std::option::Option<crate::types::Ac3Settings>) -> Self {
        self.ac3_settings = input;
        self
    }
    /// Required when you set Codec to the value AC3.
    pub fn get_ac3_settings(&self) -> &::std::option::Option<crate::types::Ac3Settings> {
        &self.ac3_settings
    }
    /// Required when you set Codec to the value AIFF.
    pub fn aiff_settings(mut self, input: crate::types::AiffSettings) -> Self {
        self.aiff_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value AIFF.
    pub fn set_aiff_settings(mut self, input: ::std::option::Option<crate::types::AiffSettings>) -> Self {
        self.aiff_settings = input;
        self
    }
    /// Required when you set Codec to the value AIFF.
    pub fn get_aiff_settings(&self) -> &::std::option::Option<crate::types::AiffSettings> {
        &self.aiff_settings
    }
    /// Choose the audio codec for this output. Note that the option Dolby Digital passthrough applies only to Dolby Digital and Dolby Digital Plus audio inputs. Make sure that you choose a codec that's supported with your output container: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio For audio-only outputs, make sure that both your input audio codec and your output audio codec are supported for audio-only workflows. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only and https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output
    pub fn codec(mut self, input: crate::types::AudioCodec) -> Self {
        self.codec = ::std::option::Option::Some(input);
        self
    }
    /// Choose the audio codec for this output. Note that the option Dolby Digital passthrough applies only to Dolby Digital and Dolby Digital Plus audio inputs. Make sure that you choose a codec that's supported with your output container: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio For audio-only outputs, make sure that both your input audio codec and your output audio codec are supported for audio-only workflows. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only and https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output
    pub fn set_codec(mut self, input: ::std::option::Option<crate::types::AudioCodec>) -> Self {
        self.codec = input;
        self
    }
    /// Choose the audio codec for this output. Note that the option Dolby Digital passthrough applies only to Dolby Digital and Dolby Digital Plus audio inputs. Make sure that you choose a codec that's supported with your output container: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#reference-codecs-containers-output-audio For audio-only outputs, make sure that both your input audio codec and your output audio codec are supported for audio-only workflows. For more information, see: https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers-input.html#reference-codecs-containers-input-audio-only and https://docs.aws.amazon.com/mediaconvert/latest/ug/reference-codecs-containers.html#audio-only-output
    pub fn get_codec(&self) -> &::std::option::Option<crate::types::AudioCodec> {
        &self.codec
    }
    /// Required when you set Codec to the value EAC3_ATMOS.
    pub fn eac3_atmos_settings(mut self, input: crate::types::Eac3AtmosSettings) -> Self {
        self.eac3_atmos_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value EAC3_ATMOS.
    pub fn set_eac3_atmos_settings(mut self, input: ::std::option::Option<crate::types::Eac3AtmosSettings>) -> Self {
        self.eac3_atmos_settings = input;
        self
    }
    /// Required when you set Codec to the value EAC3_ATMOS.
    pub fn get_eac3_atmos_settings(&self) -> &::std::option::Option<crate::types::Eac3AtmosSettings> {
        &self.eac3_atmos_settings
    }
    /// Required when you set Codec to the value EAC3.
    pub fn eac3_settings(mut self, input: crate::types::Eac3Settings) -> Self {
        self.eac3_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value EAC3.
    pub fn set_eac3_settings(mut self, input: ::std::option::Option<crate::types::Eac3Settings>) -> Self {
        self.eac3_settings = input;
        self
    }
    /// Required when you set Codec to the value EAC3.
    pub fn get_eac3_settings(&self) -> &::std::option::Option<crate::types::Eac3Settings> {
        &self.eac3_settings
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value FLAC.
    pub fn flac_settings(mut self, input: crate::types::FlacSettings) -> Self {
        self.flac_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value FLAC.
    pub fn set_flac_settings(mut self, input: ::std::option::Option<crate::types::FlacSettings>) -> Self {
        self.flac_settings = input;
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value FLAC.
    pub fn get_flac_settings(&self) -> &::std::option::Option<crate::types::FlacSettings> {
        &self.flac_settings
    }
    /// Required when you set Codec to the value MP2.
    pub fn mp2_settings(mut self, input: crate::types::Mp2Settings) -> Self {
        self.mp2_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value MP2.
    pub fn set_mp2_settings(mut self, input: ::std::option::Option<crate::types::Mp2Settings>) -> Self {
        self.mp2_settings = input;
        self
    }
    /// Required when you set Codec to the value MP2.
    pub fn get_mp2_settings(&self) -> &::std::option::Option<crate::types::Mp2Settings> {
        &self.mp2_settings
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value MP3.
    pub fn mp3_settings(mut self, input: crate::types::Mp3Settings) -> Self {
        self.mp3_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value MP3.
    pub fn set_mp3_settings(mut self, input: ::std::option::Option<crate::types::Mp3Settings>) -> Self {
        self.mp3_settings = input;
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value MP3.
    pub fn get_mp3_settings(&self) -> &::std::option::Option<crate::types::Mp3Settings> {
        &self.mp3_settings
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value OPUS.
    pub fn opus_settings(mut self, input: crate::types::OpusSettings) -> Self {
        self.opus_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value OPUS.
    pub fn set_opus_settings(mut self, input: ::std::option::Option<crate::types::OpusSettings>) -> Self {
        self.opus_settings = input;
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value OPUS.
    pub fn get_opus_settings(&self) -> &::std::option::Option<crate::types::OpusSettings> {
        &self.opus_settings
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value Vorbis.
    pub fn vorbis_settings(mut self, input: crate::types::VorbisSettings) -> Self {
        self.vorbis_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value Vorbis.
    pub fn set_vorbis_settings(mut self, input: ::std::option::Option<crate::types::VorbisSettings>) -> Self {
        self.vorbis_settings = input;
        self
    }
    /// Required when you set Codec, under AudioDescriptions&gt;CodecSettings, to the value Vorbis.
    pub fn get_vorbis_settings(&self) -> &::std::option::Option<crate::types::VorbisSettings> {
        &self.vorbis_settings
    }
    /// Required when you set Codec to the value WAV.
    pub fn wav_settings(mut self, input: crate::types::WavSettings) -> Self {
        self.wav_settings = ::std::option::Option::Some(input);
        self
    }
    /// Required when you set Codec to the value WAV.
    pub fn set_wav_settings(mut self, input: ::std::option::Option<crate::types::WavSettings>) -> Self {
        self.wav_settings = input;
        self
    }
    /// Required when you set Codec to the value WAV.
    pub fn get_wav_settings(&self) -> &::std::option::Option<crate::types::WavSettings> {
        &self.wav_settings
    }
    /// Consumes the builder and constructs a [`AudioCodecSettings`](crate::types::AudioCodecSettings).
    pub fn build(self) -> crate::types::AudioCodecSettings {
        crate::types::AudioCodecSettings {
            aac_settings: self.aac_settings,
            ac3_settings: self.ac3_settings,
            aiff_settings: self.aiff_settings,
            codec: self.codec,
            eac3_atmos_settings: self.eac3_atmos_settings,
            eac3_settings: self.eac3_settings,
            flac_settings: self.flac_settings,
            mp2_settings: self.mp2_settings,
            mp3_settings: self.mp3_settings,
            opus_settings: self.opus_settings,
            vorbis_settings: self.vorbis_settings,
            wav_settings: self.wav_settings,
        }
    }
}