AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/FrameRate.h>
11#include <aws/mediaconvert/model/MatrixCoefficients.h>
12#include <aws/mediaconvert/model/TransferCharacteristics.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaConvert {
24namespace Model {
25
36 public:
37 AWS_MEDIACONVERT_API CodecMetadata() = default;
38 AWS_MEDIACONVERT_API CodecMetadata(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONVERT_API CodecMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline int GetBitDepth() const { return m_bitDepth; }
49 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
50 inline void SetBitDepth(int value) {
51 m_bitDepthHasBeenSet = true;
52 m_bitDepth = value;
53 }
54 inline CodecMetadata& WithBitDepth(int value) {
55 SetBitDepth(value);
56 return *this;
57 }
59
61
68 inline const Aws::String& GetChromaSubsampling() const { return m_chromaSubsampling; }
69 inline bool ChromaSubsamplingHasBeenSet() const { return m_chromaSubsamplingHasBeenSet; }
70 template <typename ChromaSubsamplingT = Aws::String>
71 void SetChromaSubsampling(ChromaSubsamplingT&& value) {
72 m_chromaSubsamplingHasBeenSet = true;
73 m_chromaSubsampling = std::forward<ChromaSubsamplingT>(value);
74 }
75 template <typename ChromaSubsamplingT = Aws::String>
76 CodecMetadata& WithChromaSubsampling(ChromaSubsamplingT&& value) {
77 SetChromaSubsampling(std::forward<ChromaSubsamplingT>(value));
78 return *this;
79 }
81
83
87 inline const FrameRate& GetCodedFrameRate() const { return m_codedFrameRate; }
88 inline bool CodedFrameRateHasBeenSet() const { return m_codedFrameRateHasBeenSet; }
89 template <typename CodedFrameRateT = FrameRate>
90 void SetCodedFrameRate(CodedFrameRateT&& value) {
91 m_codedFrameRateHasBeenSet = true;
92 m_codedFrameRate = std::forward<CodedFrameRateT>(value);
93 }
94 template <typename CodedFrameRateT = FrameRate>
95 CodecMetadata& WithCodedFrameRate(CodedFrameRateT&& value) {
96 SetCodedFrameRate(std::forward<CodedFrameRateT>(value));
97 return *this;
98 }
100
102
107 inline ColorPrimaries GetColorPrimaries() const { return m_colorPrimaries; }
108 inline bool ColorPrimariesHasBeenSet() const { return m_colorPrimariesHasBeenSet; }
110 m_colorPrimariesHasBeenSet = true;
111 m_colorPrimaries = value;
112 }
114 SetColorPrimaries(value);
115 return *this;
116 }
118
120
124 inline int GetHeight() const { return m_height; }
125 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
126 inline void SetHeight(int value) {
127 m_heightHasBeenSet = true;
128 m_height = value;
129 }
130 inline CodecMetadata& WithHeight(int value) {
131 SetHeight(value);
132 return *this;
133 }
135
137
142 inline const Aws::String& GetLevel() const { return m_level; }
143 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
144 template <typename LevelT = Aws::String>
145 void SetLevel(LevelT&& value) {
146 m_levelHasBeenSet = true;
147 m_level = std::forward<LevelT>(value);
148 }
149 template <typename LevelT = Aws::String>
150 CodecMetadata& WithLevel(LevelT&& value) {
151 SetLevel(std::forward<LevelT>(value));
152 return *this;
153 }
155
157
162 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
163 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
165 m_matrixCoefficientsHasBeenSet = true;
166 m_matrixCoefficients = value;
167 }
170 return *this;
171 }
173
175
181 inline const Aws::String& GetProfile() const { return m_profile; }
182 inline bool ProfileHasBeenSet() const { return m_profileHasBeenSet; }
183 template <typename ProfileT = Aws::String>
184 void SetProfile(ProfileT&& value) {
185 m_profileHasBeenSet = true;
186 m_profile = std::forward<ProfileT>(value);
187 }
188 template <typename ProfileT = Aws::String>
189 CodecMetadata& WithProfile(ProfileT&& value) {
190 SetProfile(std::forward<ProfileT>(value));
191 return *this;
192 }
194
196
200 inline const Aws::String& GetScanType() const { return m_scanType; }
201 inline bool ScanTypeHasBeenSet() const { return m_scanTypeHasBeenSet; }
202 template <typename ScanTypeT = Aws::String>
203 void SetScanType(ScanTypeT&& value) {
204 m_scanTypeHasBeenSet = true;
205 m_scanType = std::forward<ScanTypeT>(value);
206 }
207 template <typename ScanTypeT = Aws::String>
208 CodecMetadata& WithScanType(ScanTypeT&& value) {
209 SetScanType(std::forward<ScanTypeT>(value));
210 return *this;
211 }
213
215
220 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
221 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
223 m_transferCharacteristicsHasBeenSet = true;
224 m_transferCharacteristics = value;
225 }
228 return *this;
229 }
231
233
237 inline int GetWidth() const { return m_width; }
238 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
239 inline void SetWidth(int value) {
240 m_widthHasBeenSet = true;
241 m_width = value;
242 }
243 inline CodecMetadata& WithWidth(int value) {
244 SetWidth(value);
245 return *this;
246 }
248 private:
249 int m_bitDepth{0};
250
251 Aws::String m_chromaSubsampling;
252
253 FrameRate m_codedFrameRate;
254
255 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
256
257 int m_height{0};
258
259 Aws::String m_level;
260
262
263 Aws::String m_profile;
264
265 Aws::String m_scanType;
266
268
269 int m_width{0};
270 bool m_bitDepthHasBeenSet = false;
271 bool m_chromaSubsamplingHasBeenSet = false;
272 bool m_codedFrameRateHasBeenSet = false;
273 bool m_colorPrimariesHasBeenSet = false;
274 bool m_heightHasBeenSet = false;
275 bool m_levelHasBeenSet = false;
276 bool m_matrixCoefficientsHasBeenSet = false;
277 bool m_profileHasBeenSet = false;
278 bool m_scanTypeHasBeenSet = false;
279 bool m_transferCharacteristicsHasBeenSet = false;
280 bool m_widthHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace MediaConvert
285} // 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 & WithProfile(ProfileT &&value)
void SetChromaSubsampling(ChromaSubsamplingT &&value)
void SetCodedFrameRate(CodedFrameRateT &&value)
AWS_MEDIACONVERT_API CodecMetadata()=default
const Aws::String & GetChromaSubsampling() const
MatrixCoefficients GetMatrixCoefficients() 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)
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