AWS SDK for C++

AWS SDK for C++ Version 1.11.867

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/ColorPrimaries.h>
10#include <aws/mediaconvert/model/ContentLightLevel.h>
11#include <aws/mediaconvert/model/FrameRate.h>
12#include <aws/mediaconvert/model/MatrixCoefficients.h>
13#include <aws/mediaconvert/model/TransferCharacteristics.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaConvert {
25namespace Model {
26
37 public:
38 AWS_MEDIACONVERT_API CodecMetadata() = default;
39 AWS_MEDIACONVERT_API CodecMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API CodecMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
49 inline int GetBitDepth() const { return m_bitDepth; }
50 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
51 inline void SetBitDepth(int value) {
52 m_bitDepthHasBeenSet = true;
53 m_bitDepth = value;
54 }
55 inline CodecMetadata& WithBitDepth(int value) {
56 SetBitDepth(value);
57 return *this;
58 }
60
62
69 inline const Aws::String& GetChromaSubsampling() const { return m_chromaSubsampling; }
70 inline bool ChromaSubsamplingHasBeenSet() const { return m_chromaSubsamplingHasBeenSet; }
71 template <typename ChromaSubsamplingT = Aws::String>
72 void SetChromaSubsampling(ChromaSubsamplingT&& value) {
73 m_chromaSubsamplingHasBeenSet = true;
74 m_chromaSubsampling = std::forward<ChromaSubsamplingT>(value);
75 }
76 template <typename ChromaSubsamplingT = Aws::String>
77 CodecMetadata& WithChromaSubsampling(ChromaSubsamplingT&& value) {
78 SetChromaSubsampling(std::forward<ChromaSubsamplingT>(value));
79 return *this;
80 }
82
84
88 inline const FrameRate& GetCodedFrameRate() const { return m_codedFrameRate; }
89 inline bool CodedFrameRateHasBeenSet() const { return m_codedFrameRateHasBeenSet; }
90 template <typename CodedFrameRateT = FrameRate>
91 void SetCodedFrameRate(CodedFrameRateT&& value) {
92 m_codedFrameRateHasBeenSet = true;
93 m_codedFrameRate = std::forward<CodedFrameRateT>(value);
94 }
95 template <typename CodedFrameRateT = FrameRate>
96 CodecMetadata& WithCodedFrameRate(CodedFrameRateT&& value) {
97 SetCodedFrameRate(std::forward<CodedFrameRateT>(value));
98 return *this;
99 }
101
103
108 inline ColorPrimaries GetColorPrimaries() const { return m_colorPrimaries; }
109 inline bool ColorPrimariesHasBeenSet() const { return m_colorPrimariesHasBeenSet; }
111 m_colorPrimariesHasBeenSet = true;
112 m_colorPrimaries = value;
113 }
115 SetColorPrimaries(value);
116 return *this;
117 }
119
121
125 inline const ContentLightLevel& GetContentLightLevel() const { return m_contentLightLevel; }
126 inline bool ContentLightLevelHasBeenSet() const { return m_contentLightLevelHasBeenSet; }
127 template <typename ContentLightLevelT = ContentLightLevel>
128 void SetContentLightLevel(ContentLightLevelT&& value) {
129 m_contentLightLevelHasBeenSet = true;
130 m_contentLightLevel = std::forward<ContentLightLevelT>(value);
131 }
132 template <typename ContentLightLevelT = ContentLightLevel>
133 CodecMetadata& WithContentLightLevel(ContentLightLevelT&& value) {
134 SetContentLightLevel(std::forward<ContentLightLevelT>(value));
135 return *this;
136 }
138
140
147 inline const Aws::String& GetFieldOrder() const { return m_fieldOrder; }
148 inline bool FieldOrderHasBeenSet() const { return m_fieldOrderHasBeenSet; }
149 template <typename FieldOrderT = Aws::String>
150 void SetFieldOrder(FieldOrderT&& value) {
151 m_fieldOrderHasBeenSet = true;
152 m_fieldOrder = std::forward<FieldOrderT>(value);
153 }
154 template <typename FieldOrderT = Aws::String>
155 CodecMetadata& WithFieldOrder(FieldOrderT&& value) {
156 SetFieldOrder(std::forward<FieldOrderT>(value));
157 return *this;
158 }
160
162
166 inline int GetHeight() const { return m_height; }
167 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
168 inline void SetHeight(int value) {
169 m_heightHasBeenSet = true;
170 m_height = value;
171 }
172 inline CodecMetadata& WithHeight(int value) {
173 SetHeight(value);
174 return *this;
175 }
177
179
184 inline const Aws::String& GetLevel() const { return m_level; }
185 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
186 template <typename LevelT = Aws::String>
187 void SetLevel(LevelT&& value) {
188 m_levelHasBeenSet = true;
189 m_level = std::forward<LevelT>(value);
190 }
191 template <typename LevelT = Aws::String>
192 CodecMetadata& WithLevel(LevelT&& value) {
193 SetLevel(std::forward<LevelT>(value));
194 return *this;
195 }
197
199
204 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
205 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
207 m_matrixCoefficientsHasBeenSet = true;
208 m_matrixCoefficients = value;
209 }
212 return *this;
213 }
215
217
223 inline const Aws::String& GetProfile() const { return m_profile; }
224 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
225 template <typename ProfileT = Aws::String>
226 void SetProfile(ProfileT&& value) {
227 m_profileHasBeenSet = true;
228 m_profile = std::forward<ProfileT>(value);
229 }
230 template <typename ProfileT = Aws::String>
231 CodecMetadata& WithProfile(ProfileT&& value) {
232 SetProfile(std::forward<ProfileT>(value));
233 return *this;
234 }
236
238
244 inline int GetRotation() const { return m_rotation; }
245 inline bool RotationHasBeenSet() const { return m_rotationHasBeenSet; }
246 inline void SetRotation(int value) {
247 m_rotationHasBeenSet = true;
248 m_rotation = value;
249 }
250 inline CodecMetadata& WithRotation(int value) {
251 SetRotation(value);
252 return *this;
253 }
255
257
261 inline const Aws::String& GetScanType() const { return m_scanType; }
262 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
263 template <typename ScanTypeT = Aws::String>
264 void SetScanType(ScanTypeT&& value) {
265 m_scanTypeHasBeenSet = true;
266 m_scanType = std::forward<ScanTypeT>(value);
267 }
268 template <typename ScanTypeT = Aws::String>
269 CodecMetadata& WithScanType(ScanTypeT&& value) {
270 SetScanType(std::forward<ScanTypeT>(value));
271 return *this;
272 }
274
276
281 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
282 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
284 m_transferCharacteristicsHasBeenSet = true;
285 m_transferCharacteristics = value;
286 }
289 return *this;
290 }
292
294
298 inline int GetWidth() const { return m_width; }
299 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
300 inline void SetWidth(int value) {
301 m_widthHasBeenSet = true;
302 m_width = value;
303 }
304 inline CodecMetadata& WithWidth(int value) {
305 SetWidth(value);
306 return *this;
307 }
309 private:
310 int m_bitDepth{0};
311
312 Aws::String m_chromaSubsampling;
313
314 FrameRate m_codedFrameRate;
315
316 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
317
318 ContentLightLevel m_contentLightLevel;
319
320 Aws::String m_fieldOrder;
321
322 int m_height{0};
323
324 Aws::String m_level;
325
327
328 Aws::String m_profile;
329
330 int m_rotation{0};
331
332 Aws::String m_scanType;
333
335
336 int m_width{0};
337 bool m_bitDepthHasBeenSet = false;
338 bool m_chromaSubsamplingHasBeenSet = false;
339 bool m_codedFrameRateHasBeenSet = false;
340 bool m_colorPrimariesHasBeenSet = false;
341 bool m_contentLightLevelHasBeenSet = false;
342 bool m_fieldOrderHasBeenSet = false;
343 bool m_heightHasBeenSet = false;
344 bool m_levelHasBeenSet = false;
345 bool m_matrixCoefficientsHasBeenSet = false;
346 bool m_profileHasBeenSet = false;
347 bool m_rotationHasBeenSet = false;
348 bool m_scanTypeHasBeenSet = false;
349 bool m_transferCharacteristicsHasBeenSet = false;
350 bool m_widthHasBeenSet = false;
351};
352
353} // namespace Model
354} // namespace MediaConvert
355} // namespace Aws
CodecMetadata & WithBitDepth(int value)
void SetColorPrimaries(ColorPrimaries value)
AWS_MEDIACONVERT_API CodecMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScanType() const
const FrameRate & GetCodedFrameRate() const
void SetTransferCharacteristics(TransferCharacteristics value)
CodecMetadata & WithRotation(int value)
CodecMetadata & WithProfile(ProfileT &&value)
void SetChromaSubsampling(ChromaSubsamplingT &&value)
void SetCodedFrameRate(CodedFrameRateT &&value)
AWS_MEDIACONVERT_API CodecMetadata()=default
void SetFieldOrder(FieldOrderT &&value)
const Aws::String & GetFieldOrder() const
const Aws::String & GetChromaSubsampling() const
void SetContentLightLevel(ContentLightLevelT &&value)
MatrixCoefficients GetMatrixCoefficients() const
const ContentLightLevel & GetContentLightLevel() const
CodecMetadata & WithMatrixCoefficients(MatrixCoefficients value)
const Aws::String & GetProfile() const
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 & WithColorPrimaries(ColorPrimaries value)
CodecMetadata & WithScanType(ScanTypeT &&value)
CodecMetadata & WithContentLightLevel(ContentLightLevelT &&value)
AWS_MEDIACONVERT_API CodecMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
CodecMetadata & WithTransferCharacteristics(TransferCharacteristics value)
CodecMetadata & WithCodedFrameRate(CodedFrameRateT &&value)
CodecMetadata & WithWidth(int value)
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