AWS SDK for C++

AWS SDK for C++ Version 1.11.891

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
137 inline AudioCodec GetCodec() const { return m_codec; }
138 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
139 inline void SetCodec(AudioCodec value) {
140 m_codecHasBeenSet = true;
141 m_codec = value;
142 }
144 SetCodec(value);
145 return *this;
146 }
148
150
153 inline const Eac3AtmosSettings& GetEac3AtmosSettings() const { return m_eac3AtmosSettings; }
154 inline bool Eac3AtmosSettingsHasBeenSet() const { return m_eac3AtmosSettingsHasBeenSet; }
155 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
156 void SetEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
157 m_eac3AtmosSettingsHasBeenSet = true;
158 m_eac3AtmosSettings = std::forward<Eac3AtmosSettingsT>(value);
159 }
160 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
161 AudioCodecSettings& WithEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
162 SetEac3AtmosSettings(std::forward<Eac3AtmosSettingsT>(value));
163 return *this;
164 }
166
168
171 inline const Eac3Settings& GetEac3Settings() const { return m_eac3Settings; }
172 inline bool Eac3SettingsHasBeenSet() const { return m_eac3SettingsHasBeenSet; }
173 template <typename Eac3SettingsT = Eac3Settings>
174 void SetEac3Settings(Eac3SettingsT&& value) {
175 m_eac3SettingsHasBeenSet = true;
176 m_eac3Settings = std::forward<Eac3SettingsT>(value);
177 }
178 template <typename Eac3SettingsT = Eac3Settings>
179 AudioCodecSettings& WithEac3Settings(Eac3SettingsT&& value) {
180 SetEac3Settings(std::forward<Eac3SettingsT>(value));
181 return *this;
182 }
184
186
190 inline const FlacSettings& GetFlacSettings() const { return m_flacSettings; }
191 inline bool FlacSettingsHasBeenSet() const { return m_flacSettingsHasBeenSet; }
192 template <typename FlacSettingsT = FlacSettings>
193 void SetFlacSettings(FlacSettingsT&& value) {
194 m_flacSettingsHasBeenSet = true;
195 m_flacSettings = std::forward<FlacSettingsT>(value);
196 }
197 template <typename FlacSettingsT = FlacSettings>
198 AudioCodecSettings& WithFlacSettings(FlacSettingsT&& value) {
199 SetFlacSettings(std::forward<FlacSettingsT>(value));
200 return *this;
201 }
203
205
208 inline const Mp2Settings& GetMp2Settings() const { return m_mp2Settings; }
209 inline bool Mp2SettingsHasBeenSet() const { return m_mp2SettingsHasBeenSet; }
210 template <typename Mp2SettingsT = Mp2Settings>
211 void SetMp2Settings(Mp2SettingsT&& value) {
212 m_mp2SettingsHasBeenSet = true;
213 m_mp2Settings = std::forward<Mp2SettingsT>(value);
214 }
215 template <typename Mp2SettingsT = Mp2Settings>
216 AudioCodecSettings& WithMp2Settings(Mp2SettingsT&& value) {
217 SetMp2Settings(std::forward<Mp2SettingsT>(value));
218 return *this;
219 }
221
223
227 inline const Mp3Settings& GetMp3Settings() const { return m_mp3Settings; }
228 inline bool Mp3SettingsHasBeenSet() const { return m_mp3SettingsHasBeenSet; }
229 template <typename Mp3SettingsT = Mp3Settings>
230 void SetMp3Settings(Mp3SettingsT&& value) {
231 m_mp3SettingsHasBeenSet = true;
232 m_mp3Settings = std::forward<Mp3SettingsT>(value);
233 }
234 template <typename Mp3SettingsT = Mp3Settings>
235 AudioCodecSettings& WithMp3Settings(Mp3SettingsT&& value) {
236 SetMp3Settings(std::forward<Mp3SettingsT>(value));
237 return *this;
238 }
240
242
246 inline const OpusSettings& GetOpusSettings() const { return m_opusSettings; }
247 inline bool OpusSettingsHasBeenSet() const { return m_opusSettingsHasBeenSet; }
248 template <typename OpusSettingsT = OpusSettings>
249 void SetOpusSettings(OpusSettingsT&& value) {
250 m_opusSettingsHasBeenSet = true;
251 m_opusSettings = std::forward<OpusSettingsT>(value);
252 }
253 template <typename OpusSettingsT = OpusSettings>
254 AudioCodecSettings& WithOpusSettings(OpusSettingsT&& value) {
255 SetOpusSettings(std::forward<OpusSettingsT>(value));
256 return *this;
257 }
259
261
265 inline const VorbisSettings& GetVorbisSettings() const { return m_vorbisSettings; }
266 inline bool VorbisSettingsHasBeenSet() const { return m_vorbisSettingsHasBeenSet; }
267 template <typename VorbisSettingsT = VorbisSettings>
268 void SetVorbisSettings(VorbisSettingsT&& value) {
269 m_vorbisSettingsHasBeenSet = true;
270 m_vorbisSettings = std::forward<VorbisSettingsT>(value);
271 }
272 template <typename VorbisSettingsT = VorbisSettings>
273 AudioCodecSettings& WithVorbisSettings(VorbisSettingsT&& value) {
274 SetVorbisSettings(std::forward<VorbisSettingsT>(value));
275 return *this;
276 }
278
280
283 inline const WavSettings& GetWavSettings() const { return m_wavSettings; }
284 inline bool WavSettingsHasBeenSet() const { return m_wavSettingsHasBeenSet; }
285 template <typename WavSettingsT = WavSettings>
286 void SetWavSettings(WavSettingsT&& value) {
287 m_wavSettingsHasBeenSet = true;
288 m_wavSettings = std::forward<WavSettingsT>(value);
289 }
290 template <typename WavSettingsT = WavSettings>
291 AudioCodecSettings& WithWavSettings(WavSettingsT&& value) {
292 SetWavSettings(std::forward<WavSettingsT>(value));
293 return *this;
294 }
296 private:
297 AacSettings m_aacSettings;
298
299 Ac3Settings m_ac3Settings;
300
301 Ac4Settings m_ac4Settings;
302
303 AiffSettings m_aiffSettings;
304
306
307 Eac3AtmosSettings m_eac3AtmosSettings;
308
309 Eac3Settings m_eac3Settings;
310
311 FlacSettings m_flacSettings;
312
313 Mp2Settings m_mp2Settings;
314
315 Mp3Settings m_mp3Settings;
316
317 OpusSettings m_opusSettings;
318
319 VorbisSettings m_vorbisSettings;
320
321 WavSettings m_wavSettings;
322 bool m_aacSettingsHasBeenSet = false;
323 bool m_ac3SettingsHasBeenSet = false;
324 bool m_ac4SettingsHasBeenSet = false;
325 bool m_aiffSettingsHasBeenSet = false;
326 bool m_codecHasBeenSet = false;
327 bool m_eac3AtmosSettingsHasBeenSet = false;
328 bool m_eac3SettingsHasBeenSet = false;
329 bool m_flacSettingsHasBeenSet = false;
330 bool m_mp2SettingsHasBeenSet = false;
331 bool m_mp3SettingsHasBeenSet = false;
332 bool m_opusSettingsHasBeenSet = false;
333 bool m_vorbisSettingsHasBeenSet = false;
334 bool m_wavSettingsHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace MediaConvert
339} // 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