AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/AiffSettings.h>
11#include <aws/mediaconvert/model/AudioCodec.h>
12#include <aws/mediaconvert/model/Eac3AtmosSettings.h>
13#include <aws/mediaconvert/model/Eac3Settings.h>
14#include <aws/mediaconvert/model/FlacSettings.h>
15#include <aws/mediaconvert/model/Mp2Settings.h>
16#include <aws/mediaconvert/model/Mp3Settings.h>
17#include <aws/mediaconvert/model/OpusSettings.h>
18#include <aws/mediaconvert/model/VorbisSettings.h>
19#include <aws/mediaconvert/model/WavSettings.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace MediaConvert {
31namespace Model {
32
40 public:
41 AWS_MEDIACONVERT_API AudioCodecSettings() = default;
42 AWS_MEDIACONVERT_API AudioCodecSettings(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
54 inline const AacSettings& GetAacSettings() const { return m_aacSettings; }
55 inline bool AacSettingsHasBeenSet() const { return m_aacSettingsHasBeenSet; }
56 template <typename AacSettingsT = AacSettings>
57 void SetAacSettings(AacSettingsT&& value) {
58 m_aacSettingsHasBeenSet = true;
59 m_aacSettings = std::forward<AacSettingsT>(value);
60 }
61 template <typename AacSettingsT = AacSettings>
62 AudioCodecSettings& WithAacSettings(AacSettingsT&& value) {
63 SetAacSettings(std::forward<AacSettingsT>(value));
64 return *this;
65 }
67
69
72 inline const Ac3Settings& GetAc3Settings() const { return m_ac3Settings; }
73 inline bool Ac3SettingsHasBeenSet() const { return m_ac3SettingsHasBeenSet; }
74 template <typename Ac3SettingsT = Ac3Settings>
75 void SetAc3Settings(Ac3SettingsT&& value) {
76 m_ac3SettingsHasBeenSet = true;
77 m_ac3Settings = std::forward<Ac3SettingsT>(value);
78 }
79 template <typename Ac3SettingsT = Ac3Settings>
80 AudioCodecSettings& WithAc3Settings(Ac3SettingsT&& value) {
81 SetAc3Settings(std::forward<Ac3SettingsT>(value));
82 return *this;
83 }
85
87
90 inline const AiffSettings& GetAiffSettings() const { return m_aiffSettings; }
91 inline bool AiffSettingsHasBeenSet() const { return m_aiffSettingsHasBeenSet; }
92 template <typename AiffSettingsT = AiffSettings>
93 void SetAiffSettings(AiffSettingsT&& value) {
94 m_aiffSettingsHasBeenSet = true;
95 m_aiffSettings = std::forward<AiffSettingsT>(value);
96 }
97 template <typename AiffSettingsT = AiffSettings>
98 AudioCodecSettings& WithAiffSettings(AiffSettingsT&& value) {
99 SetAiffSettings(std::forward<AiffSettingsT>(value));
100 return *this;
101 }
103
105
117 inline AudioCodec GetCodec() const { return m_codec; }
118 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
119 inline void SetCodec(AudioCodec value) {
120 m_codecHasBeenSet = true;
121 m_codec = value;
122 }
124 SetCodec(value);
125 return *this;
126 }
128
130
133 inline const Eac3AtmosSettings& GetEac3AtmosSettings() const { return m_eac3AtmosSettings; }
134 inline bool Eac3AtmosSettingsHasBeenSet() const { return m_eac3AtmosSettingsHasBeenSet; }
135 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
136 void SetEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
137 m_eac3AtmosSettingsHasBeenSet = true;
138 m_eac3AtmosSettings = std::forward<Eac3AtmosSettingsT>(value);
139 }
140 template <typename Eac3AtmosSettingsT = Eac3AtmosSettings>
141 AudioCodecSettings& WithEac3AtmosSettings(Eac3AtmosSettingsT&& value) {
142 SetEac3AtmosSettings(std::forward<Eac3AtmosSettingsT>(value));
143 return *this;
144 }
146
148
151 inline const Eac3Settings& GetEac3Settings() const { return m_eac3Settings; }
152 inline bool Eac3SettingsHasBeenSet() const { return m_eac3SettingsHasBeenSet; }
153 template <typename Eac3SettingsT = Eac3Settings>
154 void SetEac3Settings(Eac3SettingsT&& value) {
155 m_eac3SettingsHasBeenSet = true;
156 m_eac3Settings = std::forward<Eac3SettingsT>(value);
157 }
158 template <typename Eac3SettingsT = Eac3Settings>
159 AudioCodecSettings& WithEac3Settings(Eac3SettingsT&& value) {
160 SetEac3Settings(std::forward<Eac3SettingsT>(value));
161 return *this;
162 }
164
166
170 inline const FlacSettings& GetFlacSettings() const { return m_flacSettings; }
171 inline bool FlacSettingsHasBeenSet() const { return m_flacSettingsHasBeenSet; }
172 template <typename FlacSettingsT = FlacSettings>
173 void SetFlacSettings(FlacSettingsT&& value) {
174 m_flacSettingsHasBeenSet = true;
175 m_flacSettings = std::forward<FlacSettingsT>(value);
176 }
177 template <typename FlacSettingsT = FlacSettings>
178 AudioCodecSettings& WithFlacSettings(FlacSettingsT&& value) {
179 SetFlacSettings(std::forward<FlacSettingsT>(value));
180 return *this;
181 }
183
185
188 inline const Mp2Settings& GetMp2Settings() const { return m_mp2Settings; }
189 inline bool Mp2SettingsHasBeenSet() const { return m_mp2SettingsHasBeenSet; }
190 template <typename Mp2SettingsT = Mp2Settings>
191 void SetMp2Settings(Mp2SettingsT&& value) {
192 m_mp2SettingsHasBeenSet = true;
193 m_mp2Settings = std::forward<Mp2SettingsT>(value);
194 }
195 template <typename Mp2SettingsT = Mp2Settings>
196 AudioCodecSettings& WithMp2Settings(Mp2SettingsT&& value) {
197 SetMp2Settings(std::forward<Mp2SettingsT>(value));
198 return *this;
199 }
201
203
207 inline const Mp3Settings& GetMp3Settings() const { return m_mp3Settings; }
208 inline bool Mp3SettingsHasBeenSet() const { return m_mp3SettingsHasBeenSet; }
209 template <typename Mp3SettingsT = Mp3Settings>
210 void SetMp3Settings(Mp3SettingsT&& value) {
211 m_mp3SettingsHasBeenSet = true;
212 m_mp3Settings = std::forward<Mp3SettingsT>(value);
213 }
214 template <typename Mp3SettingsT = Mp3Settings>
215 AudioCodecSettings& WithMp3Settings(Mp3SettingsT&& value) {
216 SetMp3Settings(std::forward<Mp3SettingsT>(value));
217 return *this;
218 }
220
222
226 inline const OpusSettings& GetOpusSettings() const { return m_opusSettings; }
227 inline bool OpusSettingsHasBeenSet() const { return m_opusSettingsHasBeenSet; }
228 template <typename OpusSettingsT = OpusSettings>
229 void SetOpusSettings(OpusSettingsT&& value) {
230 m_opusSettingsHasBeenSet = true;
231 m_opusSettings = std::forward<OpusSettingsT>(value);
232 }
233 template <typename OpusSettingsT = OpusSettings>
234 AudioCodecSettings& WithOpusSettings(OpusSettingsT&& value) {
235 SetOpusSettings(std::forward<OpusSettingsT>(value));
236 return *this;
237 }
239
241
245 inline const VorbisSettings& GetVorbisSettings() const { return m_vorbisSettings; }
246 inline bool VorbisSettingsHasBeenSet() const { return m_vorbisSettingsHasBeenSet; }
247 template <typename VorbisSettingsT = VorbisSettings>
248 void SetVorbisSettings(VorbisSettingsT&& value) {
249 m_vorbisSettingsHasBeenSet = true;
250 m_vorbisSettings = std::forward<VorbisSettingsT>(value);
251 }
252 template <typename VorbisSettingsT = VorbisSettings>
253 AudioCodecSettings& WithVorbisSettings(VorbisSettingsT&& value) {
254 SetVorbisSettings(std::forward<VorbisSettingsT>(value));
255 return *this;
256 }
258
260
263 inline const WavSettings& GetWavSettings() const { return m_wavSettings; }
264 inline bool WavSettingsHasBeenSet() const { return m_wavSettingsHasBeenSet; }
265 template <typename WavSettingsT = WavSettings>
266 void SetWavSettings(WavSettingsT&& value) {
267 m_wavSettingsHasBeenSet = true;
268 m_wavSettings = std::forward<WavSettingsT>(value);
269 }
270 template <typename WavSettingsT = WavSettings>
271 AudioCodecSettings& WithWavSettings(WavSettingsT&& value) {
272 SetWavSettings(std::forward<WavSettingsT>(value));
273 return *this;
274 }
276 private:
277 AacSettings m_aacSettings;
278
279 Ac3Settings m_ac3Settings;
280
281 AiffSettings m_aiffSettings;
282
284
285 Eac3AtmosSettings m_eac3AtmosSettings;
286
287 Eac3Settings m_eac3Settings;
288
289 FlacSettings m_flacSettings;
290
291 Mp2Settings m_mp2Settings;
292
293 Mp3Settings m_mp3Settings;
294
295 OpusSettings m_opusSettings;
296
297 VorbisSettings m_vorbisSettings;
298
299 WavSettings m_wavSettings;
300 bool m_aacSettingsHasBeenSet = false;
301 bool m_ac3SettingsHasBeenSet = false;
302 bool m_aiffSettingsHasBeenSet = false;
303 bool m_codecHasBeenSet = false;
304 bool m_eac3AtmosSettingsHasBeenSet = false;
305 bool m_eac3SettingsHasBeenSet = false;
306 bool m_flacSettingsHasBeenSet = false;
307 bool m_mp2SettingsHasBeenSet = false;
308 bool m_mp3SettingsHasBeenSet = false;
309 bool m_opusSettingsHasBeenSet = false;
310 bool m_vorbisSettingsHasBeenSet = false;
311 bool m_wavSettingsHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace MediaConvert
316} // 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)
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