AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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
144 inline int GetHeight() const { return m_height; }
145 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
146 inline void SetHeight(int value) {
147 m_heightHasBeenSet = true;
148 m_height = value;
149 }
150 inline CodecMetadata& WithHeight(int value) {
151 SetHeight(value);
152 return *this;
153 }
155
157
162 inline const Aws::String& GetLevel() const { return m_level; }
163 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
164 template <typename LevelT = Aws::String>
165 void SetLevel(LevelT&& value) {
166 m_levelHasBeenSet = true;
167 m_level = std::forward<LevelT>(value);
168 }
169 template <typename LevelT = Aws::String>
170 CodecMetadata& WithLevel(LevelT&& value) {
171 SetLevel(std::forward<LevelT>(value));
172 return *this;
173 }
175
177
182 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
183 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
185 m_matrixCoefficientsHasBeenSet = true;
186 m_matrixCoefficients = value;
187 }
190 return *this;
191 }
193
195
201 inline const Aws::String& GetProfile() const { return m_profile; }
202 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
203 template <typename ProfileT = Aws::String>
204 void SetProfile(ProfileT&& value) {
205 m_profileHasBeenSet = true;
206 m_profile = std::forward<ProfileT>(value);
207 }
208 template <typename ProfileT = Aws::String>
209 CodecMetadata& WithProfile(ProfileT&& value) {
210 SetProfile(std::forward<ProfileT>(value));
211 return *this;
212 }
214
216
222 inline int GetRotation() const { return m_rotation; }
223 inline bool RotationHasBeenSet() const { return m_rotationHasBeenSet; }
224 inline void SetRotation(int value) {
225 m_rotationHasBeenSet = true;
226 m_rotation = value;
227 }
228 inline CodecMetadata& WithRotation(int value) {
229 SetRotation(value);
230 return *this;
231 }
233
235
239 inline const Aws::String& GetScanType() const { return m_scanType; }
240 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
241 template <typename ScanTypeT = Aws::String>
242 void SetScanType(ScanTypeT&& value) {
243 m_scanTypeHasBeenSet = true;
244 m_scanType = std::forward<ScanTypeT>(value);
245 }
246 template <typename ScanTypeT = Aws::String>
247 CodecMetadata& WithScanType(ScanTypeT&& value) {
248 SetScanType(std::forward<ScanTypeT>(value));
249 return *this;
250 }
252
254
259 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
260 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
262 m_transferCharacteristicsHasBeenSet = true;
263 m_transferCharacteristics = value;
264 }
267 return *this;
268 }
270
272
276 inline int GetWidth() const { return m_width; }
277 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
278 inline void SetWidth(int value) {
279 m_widthHasBeenSet = true;
280 m_width = value;
281 }
282 inline CodecMetadata& WithWidth(int value) {
283 SetWidth(value);
284 return *this;
285 }
287 private:
288 int m_bitDepth{0};
289
290 Aws::String m_chromaSubsampling;
291
292 FrameRate m_codedFrameRate;
293
294 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
295
296 ContentLightLevel m_contentLightLevel;
297
298 int m_height{0};
299
300 Aws::String m_level;
301
303
304 Aws::String m_profile;
305
306 int m_rotation{0};
307
308 Aws::String m_scanType;
309
311
312 int m_width{0};
313 bool m_bitDepthHasBeenSet = false;
314 bool m_chromaSubsamplingHasBeenSet = false;
315 bool m_codedFrameRateHasBeenSet = false;
316 bool m_colorPrimariesHasBeenSet = false;
317 bool m_contentLightLevelHasBeenSet = false;
318 bool m_heightHasBeenSet = false;
319 bool m_levelHasBeenSet = false;
320 bool m_matrixCoefficientsHasBeenSet = false;
321 bool m_profileHasBeenSet = false;
322 bool m_rotationHasBeenSet = false;
323 bool m_scanTypeHasBeenSet = false;
324 bool m_transferCharacteristicsHasBeenSet = false;
325 bool m_widthHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace MediaConvert
330} // 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
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
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