AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
Mpeg2Settings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/Mpeg2AdaptiveQuantization.h>
9#include <aws/medialive/model/AfdSignaling.h>
10#include <aws/medialive/model/Mpeg2ColorMetadata.h>
11#include <aws/medialive/model/Mpeg2ColorSpace.h>
12#include <aws/medialive/model/Mpeg2DisplayRatio.h>
13#include <aws/medialive/model/Mpeg2FilterSettings.h>
14#include <aws/medialive/model/FixedAfd.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#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace MediaLive
33{
34namespace Model
35{
36
43 {
44 public:
45 AWS_MEDIALIVE_API Mpeg2Settings() = default;
46 AWS_MEDIALIVE_API Mpeg2Settings(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIALIVE_API Mpeg2Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
58 inline Mpeg2AdaptiveQuantization GetAdaptiveQuantization() const { return m_adaptiveQuantization; }
59 inline bool AdaptiveQuantizationHasBeenSet() const { return m_adaptiveQuantizationHasBeenSet; }
60 inline void SetAdaptiveQuantization(Mpeg2AdaptiveQuantization value) { m_adaptiveQuantizationHasBeenSet = true; m_adaptiveQuantization = value; }
63
65
74 inline AfdSignaling GetAfdSignaling() const { return m_afdSignaling; }
75 inline bool AfdSignalingHasBeenSet() const { return m_afdSignalingHasBeenSet; }
76 inline void SetAfdSignaling(AfdSignaling value) { m_afdSignalingHasBeenSet = true; m_afdSignaling = value; }
77 inline Mpeg2Settings& WithAfdSignaling(AfdSignaling value) { SetAfdSignaling(value); return *this;}
79
81
86 inline Mpeg2ColorMetadata GetColorMetadata() const { return m_colorMetadata; }
87 inline bool ColorMetadataHasBeenSet() const { return m_colorMetadataHasBeenSet; }
88 inline void SetColorMetadata(Mpeg2ColorMetadata value) { m_colorMetadataHasBeenSet = true; m_colorMetadata = value; }
91
93
103 inline Mpeg2ColorSpace GetColorSpace() const { return m_colorSpace; }
104 inline bool ColorSpaceHasBeenSet() const { return m_colorSpaceHasBeenSet; }
105 inline void SetColorSpace(Mpeg2ColorSpace value) { m_colorSpaceHasBeenSet = true; m_colorSpace = value; }
106 inline Mpeg2Settings& WithColorSpace(Mpeg2ColorSpace value) { SetColorSpace(value); return *this;}
108
110
113 inline Mpeg2DisplayRatio GetDisplayAspectRatio() const { return m_displayAspectRatio; }
114 inline bool DisplayAspectRatioHasBeenSet() const { return m_displayAspectRatioHasBeenSet; }
115 inline void SetDisplayAspectRatio(Mpeg2DisplayRatio value) { m_displayAspectRatioHasBeenSet = true; m_displayAspectRatio = value; }
118
120
134 inline const Mpeg2FilterSettings& GetFilterSettings() const { return m_filterSettings; }
135 inline bool FilterSettingsHasBeenSet() const { return m_filterSettingsHasBeenSet; }
136 template<typename FilterSettingsT = Mpeg2FilterSettings>
137 void SetFilterSettings(FilterSettingsT&& value) { m_filterSettingsHasBeenSet = true; m_filterSettings = std::forward<FilterSettingsT>(value); }
138 template<typename FilterSettingsT = Mpeg2FilterSettings>
139 Mpeg2Settings& WithFilterSettings(FilterSettingsT&& value) { SetFilterSettings(std::forward<FilterSettingsT>(value)); return *this;}
141
143
147 inline FixedAfd GetFixedAfd() const { return m_fixedAfd; }
148 inline bool FixedAfdHasBeenSet() const { return m_fixedAfdHasBeenSet; }
149 inline void SetFixedAfd(FixedAfd value) { m_fixedAfdHasBeenSet = true; m_fixedAfd = value; }
150 inline Mpeg2Settings& WithFixedAfd(FixedAfd value) { SetFixedAfd(value); return *this;}
152
154
159 inline int GetFramerateDenominator() const { return m_framerateDenominator; }
160 inline bool FramerateDenominatorHasBeenSet() const { return m_framerateDenominatorHasBeenSet; }
161 inline void SetFramerateDenominator(int value) { m_framerateDenominatorHasBeenSet = true; m_framerateDenominator = value; }
162 inline Mpeg2Settings& WithFramerateDenominator(int value) { SetFramerateDenominator(value); return *this;}
164
166
170 inline int GetFramerateNumerator() const { return m_framerateNumerator; }
171 inline bool FramerateNumeratorHasBeenSet() const { return m_framerateNumeratorHasBeenSet; }
172 inline void SetFramerateNumerator(int value) { m_framerateNumeratorHasBeenSet = true; m_framerateNumerator = value; }
173 inline Mpeg2Settings& WithFramerateNumerator(int value) { SetFramerateNumerator(value); return *this;}
175
177
180 inline int GetGopClosedCadence() const { return m_gopClosedCadence; }
181 inline bool GopClosedCadenceHasBeenSet() const { return m_gopClosedCadenceHasBeenSet; }
182 inline void SetGopClosedCadence(int value) { m_gopClosedCadenceHasBeenSet = true; m_gopClosedCadence = value; }
183 inline Mpeg2Settings& WithGopClosedCadence(int value) { SetGopClosedCadence(value); return *this;}
185
187
191 inline int GetGopNumBFrames() const { return m_gopNumBFrames; }
192 inline bool GopNumBFramesHasBeenSet() const { return m_gopNumBFramesHasBeenSet; }
193 inline void SetGopNumBFrames(int value) { m_gopNumBFramesHasBeenSet = true; m_gopNumBFrames = value; }
194 inline Mpeg2Settings& WithGopNumBFrames(int value) { SetGopNumBFrames(value); return *this;}
196
198
207 inline double GetGopSize() const { return m_gopSize; }
208 inline bool GopSizeHasBeenSet() const { return m_gopSizeHasBeenSet; }
209 inline void SetGopSize(double value) { m_gopSizeHasBeenSet = true; m_gopSize = value; }
210 inline Mpeg2Settings& WithGopSize(double value) { SetGopSize(value); return *this;}
212
214
220 inline Mpeg2GopSizeUnits GetGopSizeUnits() const { return m_gopSizeUnits; }
221 inline bool GopSizeUnitsHasBeenSet() const { return m_gopSizeUnitsHasBeenSet; }
222 inline void SetGopSizeUnits(Mpeg2GopSizeUnits value) { m_gopSizeUnitsHasBeenSet = true; m_gopSizeUnits = value; }
223 inline Mpeg2Settings& WithGopSizeUnits(Mpeg2GopSizeUnits value) { SetGopSizeUnits(value); return *this;}
225
227
230 inline Mpeg2ScanType GetScanType() const { return m_scanType; }
231 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
232 inline void SetScanType(Mpeg2ScanType value) { m_scanTypeHasBeenSet = true; m_scanType = value; }
233 inline Mpeg2Settings& WithScanType(Mpeg2ScanType value) { SetScanType(value); return *this;}
235
237
245 inline Mpeg2SubGopLength GetSubgopLength() const { return m_subgopLength; }
246 inline bool SubgopLengthHasBeenSet() const { return m_subgopLengthHasBeenSet; }
247 inline void SetSubgopLength(Mpeg2SubGopLength value) { m_subgopLengthHasBeenSet = true; m_subgopLength = value; }
248 inline Mpeg2Settings& WithSubgopLength(Mpeg2SubGopLength value) { SetSubgopLength(value); return *this;}
250
252
261 inline Mpeg2TimecodeInsertionBehavior GetTimecodeInsertion() const { return m_timecodeInsertion; }
262 inline bool TimecodeInsertionHasBeenSet() const { return m_timecodeInsertionHasBeenSet; }
263 inline void SetTimecodeInsertion(Mpeg2TimecodeInsertionBehavior value) { m_timecodeInsertionHasBeenSet = true; m_timecodeInsertion = value; }
266
268
271 inline const TimecodeBurninSettings& GetTimecodeBurninSettings() const { return m_timecodeBurninSettings; }
272 inline bool TimecodeBurninSettingsHasBeenSet() const { return m_timecodeBurninSettingsHasBeenSet; }
273 template<typename TimecodeBurninSettingsT = TimecodeBurninSettings>
274 void SetTimecodeBurninSettings(TimecodeBurninSettingsT&& value) { m_timecodeBurninSettingsHasBeenSet = true; m_timecodeBurninSettings = std::forward<TimecodeBurninSettingsT>(value); }
275 template<typename TimecodeBurninSettingsT = TimecodeBurninSettings>
276 Mpeg2Settings& WithTimecodeBurninSettings(TimecodeBurninSettingsT&& value) { SetTimecodeBurninSettings(std::forward<TimecodeBurninSettingsT>(value)); return *this;}
278 private:
279
281 bool m_adaptiveQuantizationHasBeenSet = false;
282
283 AfdSignaling m_afdSignaling{AfdSignaling::NOT_SET};
284 bool m_afdSignalingHasBeenSet = false;
285
287 bool m_colorMetadataHasBeenSet = false;
288
290 bool m_colorSpaceHasBeenSet = false;
291
292 Mpeg2DisplayRatio m_displayAspectRatio{Mpeg2DisplayRatio::NOT_SET};
293 bool m_displayAspectRatioHasBeenSet = false;
294
295 Mpeg2FilterSettings m_filterSettings;
296 bool m_filterSettingsHasBeenSet = false;
297
298 FixedAfd m_fixedAfd{FixedAfd::NOT_SET};
299 bool m_fixedAfdHasBeenSet = false;
300
301 int m_framerateDenominator{0};
302 bool m_framerateDenominatorHasBeenSet = false;
303
304 int m_framerateNumerator{0};
305 bool m_framerateNumeratorHasBeenSet = false;
306
307 int m_gopClosedCadence{0};
308 bool m_gopClosedCadenceHasBeenSet = false;
309
310 int m_gopNumBFrames{0};
311 bool m_gopNumBFramesHasBeenSet = false;
312
313 double m_gopSize{0.0};
314 bool m_gopSizeHasBeenSet = false;
315
317 bool m_gopSizeUnitsHasBeenSet = false;
318
320 bool m_scanTypeHasBeenSet = false;
321
323 bool m_subgopLengthHasBeenSet = false;
324
326 bool m_timecodeInsertionHasBeenSet = false;
327
328 TimecodeBurninSettings m_timecodeBurninSettings;
329 bool m_timecodeBurninSettingsHasBeenSet = false;
330 };
331
332} // namespace Model
333} // namespace MediaLive
334} // 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