AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
AudioCodecSettings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/AacSettings.h>
9#include <aws/mediaconvert/model/Ac3Settings.h>
10#include <aws/mediaconvert/model/Ac4Settings.h>
11#include <aws/mediaconvert/model/AiffSettings.h>
12#include <aws/mediaconvert/model/AudioCodec.h>
13#include <aws/mediaconvert/model/Eac3AtmosSettings.h>
14#include <aws/mediaconvert/model/Eac3Settings.h>
15#include <aws/mediaconvert/model/FlacSettings.h>
16#include <aws/mediaconvert/model/Mp2Settings.h>
17#include <aws/mediaconvert/model/Mp3Settings.h>
18#include <aws/mediaconvert/model/OpusSettings.h>
19#include <aws/mediaconvert/model/VorbisSettings.h>
20#include <aws/mediaconvert/model/WavSettings.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace MediaConvert {
32namespace Model {
33
41 public:
42 AWS_MEDIACONVERT_API AudioCodecSettings() = default;
43 AWS_MEDIACONVERT_API AudioCodecSettings(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
55 inline const AacSettings& GetAacSettings() const { return m_aacSettings; }
56 inline bool AacSettingsHasBeenSet() const { return m_aacSettingsHasBeenSet; }
57 template <typename AacSettingsT = AacSettings>
58 void SetAacSettings(AacSettingsT&& value) {
59 m_aacSettingsHasBeenSet = true;
60 m_aacSettings = std::forward<AacSettingsT>(value);
61 }
62 template <typename AacSettingsT = AacSettings>
63 AudioCodecSettings& WithAacSettings(AacSettingsT&& value) {
64 SetAacSettings(std::forward<AacSettingsT>(value));
65 return *this;
66 }
68
70
73 inline const Ac3Settings& GetAc3Settings() const { return m_ac3Settings; }
74 inline bool Ac3SettingsHasBeenSet() const { return m_ac3SettingsHasBeenSet; }
75 template <typename Ac3SettingsT = Ac3Settings>
76 void SetAc3Settings(Ac3SettingsT&& value) {
77 m_ac3SettingsHasBeenSet = true;
78 m_ac3Settings = std::forward<Ac3SettingsT>(value);
79 }
80 template <typename Ac3SettingsT = Ac3Settings>
81 AudioCodecSettings& WithAc3Settings(Ac3SettingsT&& value) {
82 SetAc3Settings(std::forward<Ac3SettingsT>(value));
83 return *this;
84 }
86
88
91 inline const Ac4Settings& GetAc4Settings() const { return m_ac4Settings; }
92 inline bool Ac4SettingsHasBeenSet() const { return m_ac4SettingsHasBeenSet; }
93 template <typename Ac4SettingsT = Ac4Settings>
94 void SetAc4Settings(Ac4SettingsT&& value) {
95 m_ac4SettingsHasBeenSet = true;
96 m_ac4Settings = std::forward<Ac4SettingsT>(value);
97 }
98 template <typename Ac4SettingsT = Ac4Settings>
99 AudioCodecSettings& WithAc4Settings(Ac4SettingsT&& value) {
100 SetAc4Settings(std::forward<Ac4SettingsT>(value));
101 return *this;
102 }
104
106
109 inline const AiffSettings& GetAiffSettings() const { return m_aiffSettings; }
110 inline bool AiffSettingsHasBeenSet() const { return m_aiffSettingsHasBeenSet; }
111 template <typename AiffSettingsT = AiffSettings>
112 void SetAiffSettings(AiffSettingsT&& value) {
113 m_aiffSettingsHasBeenSet = true;
114 m_aiffSettings = std::forward<AiffSettingsT>(value);
115 }
116 template <typename AiffSettingsT = AiffSettings>
117 AudioCodecSettings& WithAiffSettings(AiffSettingsT&& value) {
118 SetAiffSettings(std::forward<AiffSettingsT>(value));
119 return *this;
120 }
122
124
136 inline AudioCodec GetCodec() const { return m_codec; }
137 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
138 inline void SetCodec(AudioCodec value) {
139 m_codecHasBeenSet = true;
140 m_codec = value;
141 }
143 SetCodec(value);
144 return *this;
145 }
147
149
152 inline const Eac3AtmosSettings& GetEac3AtmosSettings() const { return m_eac3AtmosSettings; }
153 inline bool Eac3AtmosSettingsHasBeenSet() const { return m_eac3AtmosSettingsHasBeenSet; }
154 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
155 void SetEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
156 m_eac3AtmosSettingsHasBeenSet = true;
157 m_eac3AtmosSettings = std::forward<Eac3AtmosSettingsT>(value);
158 }
159 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
160 AudioCodecSettings& WithEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
161 SetEac3AtmosSettings(std::forward<Eac3AtmosSettingsT>(value));
162 return *this;
163 }
165
167
170 inline const Eac3Settings& GetEac3Settings() const { return m_eac3Settings; }
171 inline bool Eac3SettingsHasBeenSet() const { return m_eac3SettingsHasBeenSet; }
172 template <typename Eac3SettingsT = Eac3Settings>
173 void SetEac3Settings(Eac3SettingsT&& value) {
174 m_eac3SettingsHasBeenSet = true;
175 m_eac3Settings = std::forward<Eac3SettingsT>(value);
176 }
177 template <typename Eac3SettingsT = Eac3Settings>
178 AudioCodecSettings& WithEac3Settings(Eac3SettingsT&& value) {
179 SetEac3Settings(std::forward<Eac3SettingsT>(value));
180 return *this;
181 }
183
185
189 inline const FlacSettings& GetFlacSettings() const { return m_flacSettings; }
190 inline bool FlacSettingsHasBeenSet() const { return m_flacSettingsHasBeenSet; }
191 template <typename FlacSettingsT = FlacSettings>
192 void SetFlacSettings(FlacSettingsT&& value) {
193 m_flacSettingsHasBeenSet = true;
194 m_flacSettings = std::forward<FlacSettingsT>(value);
195 }
196 template <typename FlacSettingsT = FlacSettings>
197 AudioCodecSettings& WithFlacSettings(FlacSettingsT&& value) {
198 SetFlacSettings(std::forward<FlacSettingsT>(value));
199 return *this;
200 }
202
204
207 inline const Mp2Settings& GetMp2Settings() const { return m_mp2Settings; }
208 inline bool Mp2SettingsHasBeenSet() const { return m_mp2SettingsHasBeenSet; }
209 template <typename Mp2SettingsT = Mp2Settings>
210 void SetMp2Settings(Mp2SettingsT&& value) {
211 m_mp2SettingsHasBeenSet = true;
212 m_mp2Settings = std::forward<Mp2SettingsT>(value);
213 }
214 template <typename Mp2SettingsT = Mp2Settings>
215 AudioCodecSettings& WithMp2Settings(Mp2SettingsT&& value) {
216 SetMp2Settings(std::forward<Mp2SettingsT>(value));
217 return *this;
218 }
220
222
226 inline const Mp3Settings& GetMp3Settings() const { return m_mp3Settings; }
227 inline bool Mp3SettingsHasBeenSet() const { return m_mp3SettingsHasBeenSet; }
228 template <typename Mp3SettingsT = Mp3Settings>
229 void SetMp3Settings(Mp3SettingsT&& value) {
230 m_mp3SettingsHasBeenSet = true;
231 m_mp3Settings = std::forward<Mp3SettingsT>(value);
232 }
233 template <typename Mp3SettingsT = Mp3Settings>
234 AudioCodecSettings& WithMp3Settings(Mp3SettingsT&& value) {
235 SetMp3Settings(std::forward<Mp3SettingsT>(value));
236 return *this;
237 }
239
241
245 inline const OpusSettings& GetOpusSettings() const { return m_opusSettings; }
246 inline bool OpusSettingsHasBeenSet() const { return m_opusSettingsHasBeenSet; }
247 template <typename OpusSettingsT = OpusSettings>
248 void SetOpusSettings(OpusSettingsT&& value) {
249 m_opusSettingsHasBeenSet = true;
250 m_opusSettings = std::forward<OpusSettingsT>(value);
251 }
252 template <typename OpusSettingsT = OpusSettings>
253 AudioCodecSettings& WithOpusSettings(OpusSettingsT&& value) {
254 SetOpusSettings(std::forward<OpusSettingsT>(value));
255 return *this;
256 }
258
260
264 inline const VorbisSettings& GetVorbisSettings() const { return m_vorbisSettings; }
265 inline bool VorbisSettingsHasBeenSet() const { return m_vorbisSettingsHasBeenSet; }
266 template <typename VorbisSettingsT = VorbisSettings>
267 void SetVorbisSettings(VorbisSettingsT&& value) {
268 m_vorbisSettingsHasBeenSet = true;
269 m_vorbisSettings = std::forward<VorbisSettingsT>(value);
270 }
271 template <typename VorbisSettingsT = VorbisSettings>
272 AudioCodecSettings& WithVorbisSettings(VorbisSettingsT&& value) {
273 SetVorbisSettings(std::forward<VorbisSettingsT>(value));
274 return *this;
275 }
277
279
282 inline const WavSettings& GetWavSettings() const { return m_wavSettings; }
283 inline bool WavSettingsHasBeenSet() const { return m_wavSettingsHasBeenSet; }
284 template <typename WavSettingsT = WavSettings>
285 void SetWavSettings(WavSettingsT&& value) {
286 m_wavSettingsHasBeenSet = true;
287 m_wavSettings = std::forward<WavSettingsT>(value);
288 }
289 template <typename WavSettingsT = WavSettings>
290 AudioCodecSettings& WithWavSettings(WavSettingsT&& value) {
291 SetWavSettings(std::forward<WavSettingsT>(value));
292 return *this;
293 }
295 private:
296 AacSettings m_aacSettings;
297
298 Ac3Settings m_ac3Settings;
299
300 Ac4Settings m_ac4Settings;
301
302 AiffSettings m_aiffSettings;
303
305
306 Eac3AtmosSettings m_eac3AtmosSettings;
307
308 Eac3Settings m_eac3Settings;
309
310 FlacSettings m_flacSettings;
311
312 Mp2Settings m_mp2Settings;
313
314 Mp3Settings m_mp3Settings;
315
316 OpusSettings m_opusSettings;
317
318 VorbisSettings m_vorbisSettings;
319
320 WavSettings m_wavSettings;
321 bool m_aacSettingsHasBeenSet = false;
322 bool m_ac3SettingsHasBeenSet = false;
323 bool m_ac4SettingsHasBeenSet = false;
324 bool m_aiffSettingsHasBeenSet = false;
325 bool m_codecHasBeenSet = false;
326 bool m_eac3AtmosSettingsHasBeenSet = false;
327 bool m_eac3SettingsHasBeenSet = false;
328 bool m_flacSettingsHasBeenSet = false;
329 bool m_mp2SettingsHasBeenSet = false;
330 bool m_mp3SettingsHasBeenSet = false;
331 bool m_opusSettingsHasBeenSet = false;
332 bool m_vorbisSettingsHasBeenSet = false;
333 bool m_wavSettingsHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace MediaConvert
338} // namespace Aws
AudioCodecSettings & WithCodec(AudioCodec value)
AudioCodecSettings & WithWavSettings(WavSettingsT &&value)
const VorbisSettings & GetVorbisSettings() const
void SetVorbisSettings(VorbisSettingsT &&value)
void SetEac3AtmosSettings(Eac3AtmosSettingsT &&value)
AWS_MEDIACONVERT_API AudioCodecSettings()=default
AudioCodecSettings & WithAiffSettings(AiffSettingsT &&value)
AWS_MEDIACONVERT_API AudioCodecSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AudioCodecSettings & WithEac3AtmosSettings(Eac3AtmosSettingsT &&value)
AudioCodecSettings & WithAc3Settings(Ac3SettingsT &&value)
AudioCodecSettings & WithMp3Settings(Mp3SettingsT &&value)
AudioCodecSettings & WithAacSettings(AacSettingsT &&value)
AudioCodecSettings & WithEac3Settings(Eac3SettingsT &&value)
AWS_MEDIACONVERT_API AudioCodecSettings(Aws::Utils::Json::JsonView jsonValue)
AudioCodecSettings & WithOpusSettings(OpusSettingsT &&value)
AudioCodecSettings & WithFlacSettings(FlacSettingsT &&value)
AudioCodecSettings & WithAc4Settings(Ac4SettingsT &&value)
const Eac3AtmosSettings & GetEac3AtmosSettings() const
AudioCodecSettings & WithMp2Settings(Mp2SettingsT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AudioCodecSettings & WithVorbisSettings(VorbisSettingsT &&value)
Aws::Utils::Json::JsonValue JsonValue