AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Mpeg2Settings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/AfdSignaling.h>
9#include <aws/medialive/model/FixedAfd.h>
10#include <aws/medialive/model/Mpeg2AdaptiveQuantization.h>
11#include <aws/medialive/model/Mpeg2ColorMetadata.h>
12#include <aws/medialive/model/Mpeg2ColorSpace.h>
13#include <aws/medialive/model/Mpeg2DisplayRatio.h>
14#include <aws/medialive/model/Mpeg2FilterSettings.h>
15#include <aws/medialive/model/Mpeg2GopSizeUnits.h>
16#include <aws/medialive/model/Mpeg2ScanType.h>
17#include <aws/medialive/model/Mpeg2SubGopLength.h>
18#include <aws/medialive/model/Mpeg2TimecodeInsertionBehavior.h>
19#include <aws/medialive/model/TimecodeBurninSettings.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace MediaLive {
31namespace Model {
32
39 public:
40 AWS_MEDIALIVE_API Mpeg2Settings() = default;
41 AWS_MEDIALIVE_API Mpeg2Settings(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIALIVE_API Mpeg2Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
52 inline Mpeg2AdaptiveQuantization GetAdaptiveQuantization() const { return m_adaptiveQuantization; }
53 inline bool AdaptiveQuantizationHasBeenSet() const { return m_adaptiveQuantizationHasBeenSet; }
55 m_adaptiveQuantizationHasBeenSet = true;
56 m_adaptiveQuantization = value;
57 }
60 return *this;
61 }
63
65
74 inline AfdSignaling GetAfdSignaling() const { return m_afdSignaling; }
75 inline bool AfdSignalingHasBeenSet() const { return m_afdSignalingHasBeenSet; }
76 inline void SetAfdSignaling(AfdSignaling value) {
77 m_afdSignalingHasBeenSet = true;
78 m_afdSignaling = value;
79 }
81 SetAfdSignaling(value);
82 return *this;
83 }
85
87
92 inline Mpeg2ColorMetadata GetColorMetadata() const { return m_colorMetadata; }
93 inline bool ColorMetadataHasBeenSet() const { return m_colorMetadataHasBeenSet; }
95 m_colorMetadataHasBeenSet = true;
96 m_colorMetadata = value;
97 }
99 SetColorMetadata(value);
100 return *this;
101 }
103
105
115 inline Mpeg2ColorSpace GetColorSpace() const { return m_colorSpace; }
116 inline bool ColorSpaceHasBeenSet() const { return m_colorSpaceHasBeenSet; }
117 inline void SetColorSpace(Mpeg2ColorSpace value) {
118 m_colorSpaceHasBeenSet = true;
119 m_colorSpace = value;
120 }
122 SetColorSpace(value);
123 return *this;
124 }
126
128
131 inline Mpeg2DisplayRatio GetDisplayAspectRatio() const { return m_displayAspectRatio; }
132 inline bool DisplayAspectRatioHasBeenSet() const { return m_displayAspectRatioHasBeenSet; }
134 m_displayAspectRatioHasBeenSet = true;
135 m_displayAspectRatio = value;
136 }
139 return *this;
140 }
142
144
158 inline const Mpeg2FilterSettings& GetFilterSettings() const { return m_filterSettings; }
159 inline bool FilterSettingsHasBeenSet() const { return m_filterSettingsHasBeenSet; }
160 template <typename FilterSettingsT = Mpeg2FilterSettings>
161 void SetFilterSettings(FilterSettingsT&& value) {
162 m_filterSettingsHasBeenSet = true;
163 m_filterSettings = std::forward<FilterSettingsT>(value);
164 }
165 template <typename FilterSettingsT = Mpeg2FilterSettings>
166 Mpeg2Settings& WithFilterSettings(FilterSettingsT&& value) {
167 SetFilterSettings(std::forward<FilterSettingsT>(value));
168 return *this;
169 }
171
173
177 inline FixedAfd GetFixedAfd() const { return m_fixedAfd; }
178 inline bool FixedAfdHasBeenSet() const { return m_fixedAfdHasBeenSet; }
179 inline void SetFixedAfd(FixedAfd value) {
180 m_fixedAfdHasBeenSet = true;
181 m_fixedAfd = value;
182 }
184 SetFixedAfd(value);
185 return *this;
186 }
188
190
195 inline int GetFramerateDenominator() const { return m_framerateDenominator; }
196 inline bool FramerateDenominatorHasBeenSet() const { return m_framerateDenominatorHasBeenSet; }
197 inline void SetFramerateDenominator(int value) {
198 m_framerateDenominatorHasBeenSet = true;
199 m_framerateDenominator = value;
200 }
203 return *this;
204 }
206
208
212 inline int GetFramerateNumerator() const { return m_framerateNumerator; }
213 inline bool FramerateNumeratorHasBeenSet() const { return m_framerateNumeratorHasBeenSet; }
214 inline void SetFramerateNumerator(int value) {
215 m_framerateNumeratorHasBeenSet = true;
216 m_framerateNumerator = value;
217 }
220 return *this;
221 }
223
225
228 inline int GetGopClosedCadence() const { return m_gopClosedCadence; }
229 inline bool GopClosedCadenceHasBeenSet() const { return m_gopClosedCadenceHasBeenSet; }
230 inline void SetGopClosedCadence(int value) {
231 m_gopClosedCadenceHasBeenSet = true;
232 m_gopClosedCadence = value;
233 }
235 SetGopClosedCadence(value);
236 return *this;
237 }
239
241
245 inline int GetGopNumBFrames() const { return m_gopNumBFrames; }
246 inline bool GopNumBFramesHasBeenSet() const { return m_gopNumBFramesHasBeenSet; }
247 inline void SetGopNumBFrames(int value) {
248 m_gopNumBFramesHasBeenSet = true;
249 m_gopNumBFrames = value;
250 }
251 inline Mpeg2Settings& WithGopNumBFrames(int value) {
252 SetGopNumBFrames(value);
253 return *this;
254 }
256
258
267 inline double GetGopSize() const { return m_gopSize; }
268 inline bool GopSizeHasBeenSet() const { return m_gopSizeHasBeenSet; }
269 inline void SetGopSize(double value) {
270 m_gopSizeHasBeenSet = true;
271 m_gopSize = value;
272 }
273 inline Mpeg2Settings& WithGopSize(double value) {
274 SetGopSize(value);
275 return *this;
276 }
278
280
286 inline Mpeg2GopSizeUnits GetGopSizeUnits() const { return m_gopSizeUnits; }
287 inline bool GopSizeUnitsHasBeenSet() const { return m_gopSizeUnitsHasBeenSet; }
289 m_gopSizeUnitsHasBeenSet = true;
290 m_gopSizeUnits = value;
291 }
293 SetGopSizeUnits(value);
294 return *this;
295 }
297
299
302 inline Mpeg2ScanType GetScanType() const { return m_scanType; }
303 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
304 inline void SetScanType(Mpeg2ScanType value) {
305 m_scanTypeHasBeenSet = true;
306 m_scanType = value;
307 }
309 SetScanType(value);
310 return *this;
311 }
313
315
323 inline Mpeg2SubGopLength GetSubgopLength() const { return m_subgopLength; }
324 inline bool SubgopLengthHasBeenSet() const { return m_subgopLengthHasBeenSet; }
326 m_subgopLengthHasBeenSet = true;
327 m_subgopLength = value;
328 }
330 SetSubgopLength(value);
331 return *this;
332 }
334
336
345 inline Mpeg2TimecodeInsertionBehavior GetTimecodeInsertion() const { return m_timecodeInsertion; }
346 inline bool TimecodeInsertionHasBeenSet() const { return m_timecodeInsertionHasBeenSet; }
348 m_timecodeInsertionHasBeenSet = true;
349 m_timecodeInsertion = value;
350 }
353 return *this;
354 }
356
358
361 inline const TimecodeBurninSettings& GetTimecodeBurninSettings() const { return m_timecodeBurninSettings; }
362 inline bool TimecodeBurninSettingsHasBeenSet() const { return m_timecodeBurninSettingsHasBeenSet; }
363 template <typename TimecodeBurninSettingsT = TimecodeBurninSettings>
364 void SetTimecodeBurninSettings(TimecodeBurninSettingsT&& value) {
365 m_timecodeBurninSettingsHasBeenSet = true;
366 m_timecodeBurninSettings = std::forward<TimecodeBurninSettingsT>(value);
367 }
368 template <typename TimecodeBurninSettingsT = TimecodeBurninSettings>
369 Mpeg2Settings& WithTimecodeBurninSettings(TimecodeBurninSettingsT&& value) {
370 SetTimecodeBurninSettings(std::forward<TimecodeBurninSettingsT>(value));
371 return *this;
372 }
374 private:
376
377 AfdSignaling m_afdSignaling{AfdSignaling::NOT_SET};
378
380
382
383 Mpeg2DisplayRatio m_displayAspectRatio{Mpeg2DisplayRatio::NOT_SET};
384
385 Mpeg2FilterSettings m_filterSettings;
386
387 FixedAfd m_fixedAfd{FixedAfd::NOT_SET};
388
389 int m_framerateDenominator{0};
390
391 int m_framerateNumerator{0};
392
393 int m_gopClosedCadence{0};
394
395 int m_gopNumBFrames{0};
396
397 double m_gopSize{0.0};
398
400
402
404
406
407 TimecodeBurninSettings m_timecodeBurninSettings;
408 bool m_adaptiveQuantizationHasBeenSet = false;
409 bool m_afdSignalingHasBeenSet = false;
410 bool m_colorMetadataHasBeenSet = false;
411 bool m_colorSpaceHasBeenSet = false;
412 bool m_displayAspectRatioHasBeenSet = false;
413 bool m_filterSettingsHasBeenSet = false;
414 bool m_fixedAfdHasBeenSet = false;
415 bool m_framerateDenominatorHasBeenSet = false;
416 bool m_framerateNumeratorHasBeenSet = false;
417 bool m_gopClosedCadenceHasBeenSet = false;
418 bool m_gopNumBFramesHasBeenSet = false;
419 bool m_gopSizeHasBeenSet = false;
420 bool m_gopSizeUnitsHasBeenSet = false;
421 bool m_scanTypeHasBeenSet = false;
422 bool m_subgopLengthHasBeenSet = false;
423 bool m_timecodeInsertionHasBeenSet = false;
424 bool m_timecodeBurninSettingsHasBeenSet = false;
425};
426
427} // namespace Model
428} // namespace MediaLive
429} // namespace Aws
Mpeg2ColorMetadata GetColorMetadata() const
Mpeg2Settings & WithGopSizeUnits(Mpeg2GopSizeUnits value)
Mpeg2Settings & WithFramerateDenominator(int value)
Mpeg2Settings & WithGopSize(double value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIALIVE_API Mpeg2Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
Mpeg2Settings & WithGopNumBFrames(int value)
Mpeg2Settings & WithColorSpace(Mpeg2ColorSpace value)
void SetDisplayAspectRatio(Mpeg2DisplayRatio value)
Mpeg2Settings & WithFramerateNumerator(int value)
Mpeg2Settings & WithTimecodeInsertion(Mpeg2TimecodeInsertionBehavior value)
Mpeg2ColorSpace GetColorSpace() const
void SetColorMetadata(Mpeg2ColorMetadata value)
Mpeg2TimecodeInsertionBehavior GetTimecodeInsertion() const
Mpeg2Settings & WithGopClosedCadence(int value)
Mpeg2AdaptiveQuantization GetAdaptiveQuantization() const
void SetFilterSettings(FilterSettingsT &&value)
Mpeg2Settings & WithAfdSignaling(AfdSignaling value)
void SetColorSpace(Mpeg2ColorSpace value)
Mpeg2DisplayRatio GetDisplayAspectRatio() const
Mpeg2Settings & WithFilterSettings(FilterSettingsT &&value)
void SetAfdSignaling(AfdSignaling value)
AWS_MEDIALIVE_API Mpeg2Settings(Aws::Utils::Json::JsonView jsonValue)
Mpeg2SubGopLength GetSubgopLength() const
Mpeg2Settings & WithFixedAfd(FixedAfd value)
const TimecodeBurninSettings & GetTimecodeBurninSettings() const
Mpeg2Settings & WithDisplayAspectRatio(Mpeg2DisplayRatio value)
Mpeg2Settings & WithTimecodeBurninSettings(TimecodeBurninSettingsT &&value)
const Mpeg2FilterSettings & GetFilterSettings() const
Mpeg2GopSizeUnits GetGopSizeUnits() const
void SetGopSizeUnits(Mpeg2GopSizeUnits value)
void SetScanType(Mpeg2ScanType value)
void SetTimecodeInsertion(Mpeg2TimecodeInsertionBehavior value)
Mpeg2Settings & WithScanType(Mpeg2ScanType value)
void SetAdaptiveQuantization(Mpeg2AdaptiveQuantization value)
void SetSubgopLength(Mpeg2SubGopLength value)
void SetTimecodeBurninSettings(TimecodeBurninSettingsT &&value)
Mpeg2Settings & WithSubgopLength(Mpeg2SubGopLength value)
Mpeg2Settings & WithColorMetadata(Mpeg2ColorMetadata value)
AWS_MEDIALIVE_API Mpeg2Settings()=default
Mpeg2Settings & WithAdaptiveQuantization(Mpeg2AdaptiveQuantization value)
Aws::Utils::Json::JsonValue JsonValue