AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AudioSelector.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
10#include <aws/mediaconvert/model/AudioDefaultSelection.h>
11#include <aws/mediaconvert/model/AudioDurationCorrection.h>
12#include <aws/mediaconvert/model/AudioSelectorType.h>
13#include <aws/mediaconvert/model/HlsRenditionGroupSettings.h>
14#include <aws/mediaconvert/model/LanguageCode.h>
15#include <aws/mediaconvert/model/RemixSettings.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaConvert {
27namespace Model {
28
37 public:
38 AWS_MEDIACONVERT_API AudioSelector() = default;
39 AWS_MEDIACONVERT_API AudioSelector(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API AudioSelector& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
63 inline AudioDurationCorrection GetAudioDurationCorrection() const { return m_audioDurationCorrection; }
64 inline bool AudioDurationCorrectionHasBeenSet() const { return m_audioDurationCorrectionHasBeenSet; }
66 m_audioDurationCorrectionHasBeenSet = true;
67 m_audioDurationCorrection = value;
68 }
71 return *this;
72 }
74
76
80 inline const Aws::String& GetCustomLanguageCode() const { return m_customLanguageCode; }
81 inline bool CustomLanguageCodeHasBeenSet() const { return m_customLanguageCodeHasBeenSet; }
82 template <typename CustomLanguageCodeT = Aws::String>
83 void SetCustomLanguageCode(CustomLanguageCodeT&& value) {
84 m_customLanguageCodeHasBeenSet = true;
85 m_customLanguageCode = std::forward<CustomLanguageCodeT>(value);
86 }
87 template <typename CustomLanguageCodeT = Aws::String>
88 AudioSelector& WithCustomLanguageCode(CustomLanguageCodeT&& value) {
89 SetCustomLanguageCode(std::forward<CustomLanguageCodeT>(value));
90 return *this;
91 }
93
95
105 inline AudioDefaultSelection GetDefaultSelection() const { return m_defaultSelection; }
106 inline bool DefaultSelectionHasBeenSet() const { return m_defaultSelectionHasBeenSet; }
108 m_defaultSelectionHasBeenSet = true;
109 m_defaultSelection = value;
110 }
112 SetDefaultSelection(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetExternalAudioFileInput() const { return m_externalAudioFileInput; }
122 inline bool ExternalAudioFileInputHasBeenSet() const { return m_externalAudioFileInputHasBeenSet; }
123 template <typename ExternalAudioFileInputT = Aws::String>
124 void SetExternalAudioFileInput(ExternalAudioFileInputT&& value) {
125 m_externalAudioFileInputHasBeenSet = true;
126 m_externalAudioFileInput = std::forward<ExternalAudioFileInputT>(value);
127 }
128 template <typename ExternalAudioFileInputT = Aws::String>
129 AudioSelector& WithExternalAudioFileInput(ExternalAudioFileInputT&& value) {
130 SetExternalAudioFileInput(std::forward<ExternalAudioFileInputT>(value));
131 return *this;
132 }
134
136
146 inline const HlsRenditionGroupSettings& GetHlsRenditionGroupSettings() const { return m_hlsRenditionGroupSettings; }
147 inline bool HlsRenditionGroupSettingsHasBeenSet() const { return m_hlsRenditionGroupSettingsHasBeenSet; }
148 template <typename HlsRenditionGroupSettingsT = HlsRenditionGroupSettings>
149 void SetHlsRenditionGroupSettings(HlsRenditionGroupSettingsT&& value) {
150 m_hlsRenditionGroupSettingsHasBeenSet = true;
151 m_hlsRenditionGroupSettings = std::forward<HlsRenditionGroupSettingsT>(value);
152 }
153 template <typename HlsRenditionGroupSettingsT = HlsRenditionGroupSettings>
154 AudioSelector& WithHlsRenditionGroupSettings(HlsRenditionGroupSettingsT&& value) {
155 SetHlsRenditionGroupSettings(std::forward<HlsRenditionGroupSettingsT>(value));
156 return *this;
157 }
159
161
166 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
167 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
168 inline void SetLanguageCode(LanguageCode value) {
169 m_languageCodeHasBeenSet = true;
170 m_languageCode = value;
171 }
173 SetLanguageCode(value);
174 return *this;
175 }
177
179
186 inline int GetOffset() const { return m_offset; }
187 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
188 inline void SetOffset(int value) {
189 m_offsetHasBeenSet = true;
190 m_offset = value;
191 }
192 inline AudioSelector& WithOffset(int value) {
193 SetOffset(value);
194 return *this;
195 }
197
199
202 inline const Aws::Vector<int>& GetPids() const { return m_pids; }
203 inline bool PidsHasBeenSet() const { return m_pidsHasBeenSet; }
204 template <typename PidsT = Aws::Vector<int>>
205 void SetPids(PidsT&& value) {
206 m_pidsHasBeenSet = true;
207 m_pids = std::forward<PidsT>(value);
208 }
209 template <typename PidsT = Aws::Vector<int>>
210 AudioSelector& WithPids(PidsT&& value) {
211 SetPids(std::forward<PidsT>(value));
212 return *this;
213 }
214 inline AudioSelector& AddPids(int value) {
215 m_pidsHasBeenSet = true;
216 m_pids.push_back(value);
217 return *this;
218 }
220
222
231 inline int GetProgramSelection() const { return m_programSelection; }
232 inline bool ProgramSelectionHasBeenSet() const { return m_programSelectionHasBeenSet; }
233 inline void SetProgramSelection(int value) {
234 m_programSelectionHasBeenSet = true;
235 m_programSelection = value;
236 }
238 SetProgramSelection(value);
239 return *this;
240 }
242
244
249 inline const RemixSettings& GetRemixSettings() const { return m_remixSettings; }
250 inline bool RemixSettingsHasBeenSet() const { return m_remixSettingsHasBeenSet; }
251 template <typename RemixSettingsT = RemixSettings>
252 void SetRemixSettings(RemixSettingsT&& value) {
253 m_remixSettingsHasBeenSet = true;
254 m_remixSettings = std::forward<RemixSettingsT>(value);
255 }
256 template <typename RemixSettingsT = RemixSettings>
257 AudioSelector& WithRemixSettings(RemixSettingsT&& value) {
258 SetRemixSettings(std::forward<RemixSettingsT>(value));
259 return *this;
260 }
262
264
289 inline AudioSelectorType GetSelectorType() const { return m_selectorType; }
290 inline bool SelectorTypeHasBeenSet() const { return m_selectorTypeHasBeenSet; }
292 m_selectorTypeHasBeenSet = true;
293 m_selectorType = value;
294 }
296 SetSelectorType(value);
297 return *this;
298 }
300
302
310 inline const Aws::Vector<int>& GetStreams() const { return m_streams; }
311 inline bool StreamsHasBeenSet() const { return m_streamsHasBeenSet; }
312 template <typename StreamsT = Aws::Vector<int>>
313 void SetStreams(StreamsT&& value) {
314 m_streamsHasBeenSet = true;
315 m_streams = std::forward<StreamsT>(value);
316 }
317 template <typename StreamsT = Aws::Vector<int>>
318 AudioSelector& WithStreams(StreamsT&& value) {
319 SetStreams(std::forward<StreamsT>(value));
320 return *this;
321 }
322 inline AudioSelector& AddStreams(int value) {
323 m_streamsHasBeenSet = true;
324 m_streams.push_back(value);
325 return *this;
326 }
328
330
338 inline const Aws::Vector<int>& GetTracks() const { return m_tracks; }
339 inline bool TracksHasBeenSet() const { return m_tracksHasBeenSet; }
340 template <typename TracksT = Aws::Vector<int>>
341 void SetTracks(TracksT&& value) {
342 m_tracksHasBeenSet = true;
343 m_tracks = std::forward<TracksT>(value);
344 }
345 template <typename TracksT = Aws::Vector<int>>
346 AudioSelector& WithTracks(TracksT&& value) {
347 SetTracks(std::forward<TracksT>(value));
348 return *this;
349 }
350 inline AudioSelector& AddTracks(int value) {
351 m_tracksHasBeenSet = true;
352 m_tracks.push_back(value);
353 return *this;
354 }
356 private:
358
359 Aws::String m_customLanguageCode;
360
362
363 Aws::String m_externalAudioFileInput;
364
365 HlsRenditionGroupSettings m_hlsRenditionGroupSettings;
366
367 LanguageCode m_languageCode{LanguageCode::NOT_SET};
368
369 int m_offset{0};
370
371 Aws::Vector<int> m_pids;
372
373 int m_programSelection{0};
374
375 RemixSettings m_remixSettings;
376
378
379 Aws::Vector<int> m_streams;
380
381 Aws::Vector<int> m_tracks;
382 bool m_audioDurationCorrectionHasBeenSet = false;
383 bool m_customLanguageCodeHasBeenSet = false;
384 bool m_defaultSelectionHasBeenSet = false;
385 bool m_externalAudioFileInputHasBeenSet = false;
386 bool m_hlsRenditionGroupSettingsHasBeenSet = false;
387 bool m_languageCodeHasBeenSet = false;
388 bool m_offsetHasBeenSet = false;
389 bool m_pidsHasBeenSet = false;
390 bool m_programSelectionHasBeenSet = false;
391 bool m_remixSettingsHasBeenSet = false;
392 bool m_selectorTypeHasBeenSet = false;
393 bool m_streamsHasBeenSet = false;
394 bool m_tracksHasBeenSet = false;
395};
396
397} // namespace Model
398} // namespace MediaConvert
399} // namespace Aws
const Aws::String & GetCustomLanguageCode() const
void SetLanguageCode(LanguageCode value)
AudioSelector & WithTracks(TracksT &&value)
const Aws::Vector< int > & GetPids() const
void SetAudioDurationCorrection(AudioDurationCorrection value)
AWS_MEDIACONVERT_API AudioSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDefaultSelection(AudioDefaultSelection value)
void SetCustomLanguageCode(CustomLanguageCodeT &&value)
AudioSelector & WithAudioDurationCorrection(AudioDurationCorrection value)
AudioSelector & WithOffset(int value)
AudioSelector & AddTracks(int value)
AudioDurationCorrection GetAudioDurationCorrection() const
AudioDefaultSelection GetDefaultSelection() const
void SetSelectorType(AudioSelectorType value)
AudioSelector & WithHlsRenditionGroupSettings(HlsRenditionGroupSettingsT &&value)
AudioSelector & WithExternalAudioFileInput(ExternalAudioFileInputT &&value)
AWS_MEDIACONVERT_API AudioSelector()=default
const HlsRenditionGroupSettings & GetHlsRenditionGroupSettings() const
void SetRemixSettings(RemixSettingsT &&value)
AudioSelector & WithDefaultSelection(AudioDefaultSelection value)
AWS_MEDIACONVERT_API AudioSelector(Aws::Utils::Json::JsonView jsonValue)
const RemixSettings & GetRemixSettings() const
AudioSelector & WithCustomLanguageCode(CustomLanguageCodeT &&value)
const Aws::Vector< int > & GetStreams() const
AudioSelector & AddPids(int value)
void SetHlsRenditionGroupSettings(HlsRenditionGroupSettingsT &&value)
void SetExternalAudioFileInput(ExternalAudioFileInputT &&value)
AudioSelector & WithRemixSettings(RemixSettingsT &&value)
AudioSelector & AddStreams(int value)
AudioSelector & WithSelectorType(AudioSelectorType value)
AudioSelector & WithProgramSelection(int value)
AudioSelector & WithStreams(StreamsT &&value)
const Aws::Vector< int > & GetTracks() const
AudioSelector & WithLanguageCode(LanguageCode value)
AudioSelectorType GetSelectorType() const
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AudioSelector & WithPids(PidsT &&value)
const Aws::String & GetExternalAudioFileInput() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue