AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
CodecMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
9#include <aws/mediaconvert/model/AspectRatio.h>
10#include <aws/mediaconvert/model/ColorPrimaries.h>
11#include <aws/mediaconvert/model/ContentLightLevel.h>
12#include <aws/mediaconvert/model/DolbyVisionMetadata.h>
13#include <aws/mediaconvert/model/FrameRate.h>
14#include <aws/mediaconvert/model/Hdr10PlusPresence.h>
15#include <aws/mediaconvert/model/MatrixCoefficients.h>
16#include <aws/mediaconvert/model/TransferCharacteristics.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace MediaConvert {
28namespace Model {
29
40 public:
41 AWS_MEDIACONVERT_API CodecMetadata() = default;
42 AWS_MEDIACONVERT_API CodecMetadata(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIACONVERT_API CodecMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
52 inline int GetBitDepth() const { return m_bitDepth; }
53 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
54 inline void SetBitDepth(int value) {
55 m_bitDepthHasBeenSet = true;
56 m_bitDepth = value;
57 }
58 inline CodecMetadata& WithBitDepth(int value) {
59 SetBitDepth(value);
60 return *this;
61 }
63
65
72 inline const Aws::String& GetChromaSubsampling() const { return m_chromaSubsampling; }
73 inline bool ChromaSubsamplingHasBeenSet() const { return m_chromaSubsamplingHasBeenSet; }
74 template <typename ChromaSubsamplingT = Aws::String>
75 void SetChromaSubsampling(ChromaSubsamplingT&& value) {
76 m_chromaSubsamplingHasBeenSet = true;
77 m_chromaSubsampling = std::forward<ChromaSubsamplingT>(value);
78 }
79 template <typename ChromaSubsamplingT = Aws::String>
80 CodecMetadata& WithChromaSubsampling(ChromaSubsamplingT&& value) {
81 SetChromaSubsampling(std::forward<ChromaSubsamplingT>(value));
82 return *this;
83 }
85
87
91 inline const FrameRate& GetCodedFrameRate() const { return m_codedFrameRate; }
92 inline bool CodedFrameRateHasBeenSet() const { return m_codedFrameRateHasBeenSet; }
93 template <typename CodedFrameRateT = FrameRate>
94 void SetCodedFrameRate(CodedFrameRateT&& value) {
95 m_codedFrameRateHasBeenSet = true;
96 m_codedFrameRate = std::forward<CodedFrameRateT>(value);
97 }
98 template <typename CodedFrameRateT = FrameRate>
99 CodecMetadata& WithCodedFrameRate(CodedFrameRateT&& value) {
100 SetCodedFrameRate(std::forward<CodedFrameRateT>(value));
101 return *this;
102 }
104
106
111 inline ColorPrimaries GetColorPrimaries() const { return m_colorPrimaries; }
112 inline bool ColorPrimariesHasBeenSet() const { return m_colorPrimariesHasBeenSet; }
114 m_colorPrimariesHasBeenSet = true;
115 m_colorPrimaries = value;
116 }
118 SetColorPrimaries(value);
119 return *this;
120 }
122
124
128 inline const ContentLightLevel& GetContentLightLevel() const { return m_contentLightLevel; }
129 inline bool ContentLightLevelHasBeenSet() const { return m_contentLightLevelHasBeenSet; }
130 template <typename ContentLightLevelT = ContentLightLevel>
131 void SetContentLightLevel(ContentLightLevelT&& value) {
132 m_contentLightLevelHasBeenSet = true;
133 m_contentLightLevel = std::forward<ContentLightLevelT>(value);
134 }
135 template <typename ContentLightLevelT = ContentLightLevel>
136 CodecMetadata& WithContentLightLevel(ContentLightLevelT&& value) {
137 SetContentLightLevel(std::forward<ContentLightLevelT>(value));
138 return *this;
139 }
141
143
156 inline const AspectRatio& GetDisplayAspectRatio() const { return m_displayAspectRatio; }
157 inline bool DisplayAspectRatioHasBeenSet() const { return m_displayAspectRatioHasBeenSet; }
158 template <typename DisplayAspectRatioT = AspectRatio>
159 void SetDisplayAspectRatio(DisplayAspectRatioT&& value) {
160 m_displayAspectRatioHasBeenSet = true;
161 m_displayAspectRatio = std::forward<DisplayAspectRatioT>(value);
162 }
163 template <typename DisplayAspectRatioT = AspectRatio>
164 CodecMetadata& WithDisplayAspectRatio(DisplayAspectRatioT&& value) {
165 SetDisplayAspectRatio(std::forward<DisplayAspectRatioT>(value));
166 return *this;
167 }
169
171
178 inline const DolbyVisionMetadata& GetDolbyVision() const { return m_dolbyVision; }
179 inline bool DolbyVisionHasBeenSet() const { return m_dolbyVisionHasBeenSet; }
180 template <typename DolbyVisionT = DolbyVisionMetadata>
181 void SetDolbyVision(DolbyVisionT&& value) {
182 m_dolbyVisionHasBeenSet = true;
183 m_dolbyVision = std::forward<DolbyVisionT>(value);
184 }
185 template <typename DolbyVisionT = DolbyVisionMetadata>
186 CodecMetadata& WithDolbyVision(DolbyVisionT&& value) {
187 SetDolbyVision(std::forward<DolbyVisionT>(value));
188 return *this;
189 }
191
193
200 inline const Aws::String& GetFieldOrder() const { return m_fieldOrder; }
201 inline bool FieldOrderHasBeenSet() const { return m_fieldOrderHasBeenSet; }
202 template <typename FieldOrderT = Aws::String>
203 void SetFieldOrder(FieldOrderT&& value) {
204 m_fieldOrderHasBeenSet = true;
205 m_fieldOrder = std::forward<FieldOrderT>(value);
206 }
207 template <typename FieldOrderT = Aws::String>
208 CodecMetadata& WithFieldOrder(FieldOrderT&& value) {
209 SetFieldOrder(std::forward<FieldOrderT>(value));
210 return *this;
211 }
213
215
219 inline Hdr10PlusPresence GetHdr10PlusPresence() const { return m_hdr10PlusPresence; }
220 inline bool Hdr10PlusPresenceHasBeenSet() const { return m_hdr10PlusPresenceHasBeenSet; }
222 m_hdr10PlusPresenceHasBeenSet = true;
223 m_hdr10PlusPresence = value;
224 }
227 return *this;
228 }
230
232
236 inline int GetHeight() const { return m_height; }
237 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
238 inline void SetHeight(int value) {
239 m_heightHasBeenSet = true;
240 m_height = value;
241 }
242 inline CodecMetadata& WithHeight(int value) {
243 SetHeight(value);
244 return *this;
245 }
247
249
254 inline const Aws::String& GetLevel() const { return m_level; }
255 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
256 template <typename LevelT = Aws::String>
257 void SetLevel(LevelT&& value) {
258 m_levelHasBeenSet = true;
259 m_level = std::forward<LevelT>(value);
260 }
261 template <typename LevelT = Aws::String>
262 CodecMetadata& WithLevel(LevelT&& value) {
263 SetLevel(std::forward<LevelT>(value));
264 return *this;
265 }
267
269
274 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
275 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
277 m_matrixCoefficientsHasBeenSet = true;
278 m_matrixCoefficients = value;
279 }
282 return *this;
283 }
285
287
293 inline const Aws::String& GetProfile() const { return m_profile; }
294 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
295 template <typename ProfileT = Aws::String>
296 void SetProfile(ProfileT&& value) {
297 m_profileHasBeenSet = true;
298 m_profile = std::forward<ProfileT>(value);
299 }
300 template <typename ProfileT = Aws::String>
301 CodecMetadata& WithProfile(ProfileT&& value) {
302 SetProfile(std::forward<ProfileT>(value));
303 return *this;
304 }
306
308
314 inline int GetRotation() const { return m_rotation; }
315 inline bool RotationHasBeenSet() const { return m_rotationHasBeenSet; }
316 inline void SetRotation(int value) {
317 m_rotationHasBeenSet = true;
318 m_rotation = value;
319 }
320 inline CodecMetadata& WithRotation(int value) {
321 SetRotation(value);
322 return *this;
323 }
325
327
340 inline const AspectRatio& GetSampleAspectRatio() const { return m_sampleAspectRatio; }
341 inline bool SampleAspectRatioHasBeenSet() const { return m_sampleAspectRatioHasBeenSet; }
342 template <typename SampleAspectRatioT = AspectRatio>
343 void SetSampleAspectRatio(SampleAspectRatioT&& value) {
344 m_sampleAspectRatioHasBeenSet = true;
345 m_sampleAspectRatio = std::forward<SampleAspectRatioT>(value);
346 }
347 template <typename SampleAspectRatioT = AspectRatio>
348 CodecMetadata& WithSampleAspectRatio(SampleAspectRatioT&& value) {
349 SetSampleAspectRatio(std::forward<SampleAspectRatioT>(value));
350 return *this;
351 }
353
355
359 inline const Aws::String& GetScanType() const { return m_scanType; }
360 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
361 template <typename ScanTypeT = Aws::String>
362 void SetScanType(ScanTypeT&& value) {
363 m_scanTypeHasBeenSet = true;
364 m_scanType = std::forward<ScanTypeT>(value);
365 }
366 template <typename ScanTypeT = Aws::String>
367 CodecMetadata& WithScanType(ScanTypeT&& value) {
368 SetScanType(std::forward<ScanTypeT>(value));
369 return *this;
370 }
372
374
379 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
380 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
382 m_transferCharacteristicsHasBeenSet = true;
383 m_transferCharacteristics = value;
384 }
387 return *this;
388 }
390
392
396 inline int GetWidth() const { return m_width; }
397 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
398 inline void SetWidth(int value) {
399 m_widthHasBeenSet = true;
400 m_width = value;
401 }
402 inline CodecMetadata& WithWidth(int value) {
403 SetWidth(value);
404 return *this;
405 }
407 private:
408 int m_bitDepth{0};
409
410 Aws::String m_chromaSubsampling;
411
412 FrameRate m_codedFrameRate;
413
414 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
415
416 ContentLightLevel m_contentLightLevel;
417
418 AspectRatio m_displayAspectRatio;
419
420 DolbyVisionMetadata m_dolbyVision;
421
422 Aws::String m_fieldOrder;
423
425
426 int m_height{0};
427
428 Aws::String m_level;
429
431
432 Aws::String m_profile;
433
434 int m_rotation{0};
435
436 AspectRatio m_sampleAspectRatio;
437
438 Aws::String m_scanType;
439
441
442 int m_width{0};
443 bool m_bitDepthHasBeenSet = false;
444 bool m_chromaSubsamplingHasBeenSet = false;
445 bool m_codedFrameRateHasBeenSet = false;
446 bool m_colorPrimariesHasBeenSet = false;
447 bool m_contentLightLevelHasBeenSet = false;
448 bool m_displayAspectRatioHasBeenSet = false;
449 bool m_dolbyVisionHasBeenSet = false;
450 bool m_fieldOrderHasBeenSet = false;
451 bool m_hdr10PlusPresenceHasBeenSet = false;
452 bool m_heightHasBeenSet = false;
453 bool m_levelHasBeenSet = false;
454 bool m_matrixCoefficientsHasBeenSet = false;
455 bool m_profileHasBeenSet = false;
456 bool m_rotationHasBeenSet = false;
457 bool m_sampleAspectRatioHasBeenSet = false;
458 bool m_scanTypeHasBeenSet = false;
459 bool m_transferCharacteristicsHasBeenSet = false;
460 bool m_widthHasBeenSet = false;
461};
462
463} // namespace Model
464} // namespace MediaConvert
465} // namespace Aws
CodecMetadata & WithBitDepth(int value)
Hdr10PlusPresence GetHdr10PlusPresence() const
void SetColorPrimaries(ColorPrimaries value)
AWS_MEDIACONVERT_API CodecMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScanType() const
CodecMetadata & WithSampleAspectRatio(SampleAspectRatioT &&value)
const FrameRate & GetCodedFrameRate() const
void SetTransferCharacteristics(TransferCharacteristics value)
CodecMetadata & WithRotation(int value)
CodecMetadata & WithProfile(ProfileT &&value)
void SetChromaSubsampling(ChromaSubsamplingT &&value)
void SetSampleAspectRatio(SampleAspectRatioT &&value)
const DolbyVisionMetadata & GetDolbyVision() const
void SetCodedFrameRate(CodedFrameRateT &&value)
CodecMetadata & WithDolbyVision(DolbyVisionT &&value)
AWS_MEDIACONVERT_API CodecMetadata()=default
CodecMetadata & WithHdr10PlusPresence(Hdr10PlusPresence value)
void SetFieldOrder(FieldOrderT &&value)
const Aws::String & GetFieldOrder() const
void SetHdr10PlusPresence(Hdr10PlusPresence value)
const Aws::String & GetChromaSubsampling() const
const AspectRatio & GetDisplayAspectRatio() const
void SetContentLightLevel(ContentLightLevelT &&value)
MatrixCoefficients GetMatrixCoefficients() const
const ContentLightLevel & GetContentLightLevel() const
CodecMetadata & WithMatrixCoefficients(MatrixCoefficients value)
const Aws::String & GetProfile() const
void SetDisplayAspectRatio(DisplayAspectRatioT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
TransferCharacteristics GetTransferCharacteristics() const
CodecMetadata & WithLevel(LevelT &&value)
const Aws::String & GetLevel() const
CodecMetadata & WithFieldOrder(FieldOrderT &&value)
void SetMatrixCoefficients(MatrixCoefficients value)
CodecMetadata & WithDisplayAspectRatio(DisplayAspectRatioT &&value)
CodecMetadata & WithColorPrimaries(ColorPrimaries value)
CodecMetadata & WithScanType(ScanTypeT &&value)
CodecMetadata & WithContentLightLevel(ContentLightLevelT &&value)
void SetDolbyVision(DolbyVisionT &&value)
AWS_MEDIACONVERT_API CodecMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
CodecMetadata & WithTransferCharacteristics(TransferCharacteristics value)
CodecMetadata & WithCodedFrameRate(CodedFrameRateT &&value)
CodecMetadata & WithWidth(int value)
const AspectRatio & GetSampleAspectRatio() const
CodecMetadata & WithChromaSubsampling(ChromaSubsamplingT &&value)
CodecMetadata & WithHeight(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue