AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
VideoProperties.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/AspectRatio.h>
9#include <aws/mediaconvert/model/CodecMetadata.h>
10#include <aws/mediaconvert/model/ColorPrimaries.h>
11#include <aws/mediaconvert/model/FrameRate.h>
12#include <aws/mediaconvert/model/HdrMetadata.h>
13#include <aws/mediaconvert/model/MatrixCoefficients.h>
14#include <aws/mediaconvert/model/TransferCharacteristics.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaConvert {
26namespace Model {
27
34 public:
35 AWS_MEDIACONVERT_API VideoProperties() = default;
36 AWS_MEDIACONVERT_API VideoProperties(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONVERT_API VideoProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline int GetBitDepth() const { return m_bitDepth; }
47 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
48 inline void SetBitDepth(int value) {
49 m_bitDepthHasBeenSet = true;
50 m_bitDepth = value;
51 }
52 inline VideoProperties& WithBitDepth(int value) {
53 SetBitDepth(value);
54 return *this;
55 }
57
59
62 inline long long GetBitRate() const { return m_bitRate; }
63 inline bool BitRateHasBeenSet() const { return m_bitRateHasBeenSet; }
64 inline void SetBitRate(long long value) {
65 m_bitRateHasBeenSet = true;
66 m_bitRate = value;
67 }
68 inline VideoProperties& WithBitRate(long long value) {
69 SetBitRate(value);
70 return *this;
71 }
73
75
82 inline const CodecMetadata& GetCodecMetadata() const { return m_codecMetadata; }
83 inline bool CodecMetadataHasBeenSet() const { return m_codecMetadataHasBeenSet; }
84 template <typename CodecMetadataT = CodecMetadata>
85 void SetCodecMetadata(CodecMetadataT&& value) {
86 m_codecMetadataHasBeenSet = true;
87 m_codecMetadata = std::forward<CodecMetadataT>(value);
88 }
89 template <typename CodecMetadataT = CodecMetadata>
90 VideoProperties& WithCodecMetadata(CodecMetadataT&& value) {
91 SetCodecMetadata(std::forward<CodecMetadataT>(value));
92 return *this;
93 }
95
97
102 inline ColorPrimaries GetColorPrimaries() const { return m_colorPrimaries; }
103 inline bool ColorPrimariesHasBeenSet() const { return m_colorPrimariesHasBeenSet; }
105 m_colorPrimariesHasBeenSet = true;
106 m_colorPrimaries = value;
107 }
109 SetColorPrimaries(value);
110 return *this;
111 }
113
115
128 inline const AspectRatio& GetDisplayAspectRatio() const { return m_displayAspectRatio; }
129 inline bool DisplayAspectRatioHasBeenSet() const { return m_displayAspectRatioHasBeenSet; }
130 template <typename DisplayAspectRatioT = AspectRatio>
131 void SetDisplayAspectRatio(DisplayAspectRatioT&& value) {
132 m_displayAspectRatioHasBeenSet = true;
133 m_displayAspectRatio = std::forward<DisplayAspectRatioT>(value);
134 }
135 template <typename DisplayAspectRatioT = AspectRatio>
136 VideoProperties& WithDisplayAspectRatio(DisplayAspectRatioT&& value) {
137 SetDisplayAspectRatio(std::forward<DisplayAspectRatioT>(value));
138 return *this;
139 }
141
143
147 inline const FrameRate& GetFrameRate() const { return m_frameRate; }
148 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
149 template <typename FrameRateT = FrameRate>
150 void SetFrameRate(FrameRateT&& value) {
151 m_frameRateHasBeenSet = true;
152 m_frameRate = std::forward<FrameRateT>(value);
153 }
154 template <typename FrameRateT = FrameRate>
155 VideoProperties& WithFrameRate(FrameRateT&& value) {
156 SetFrameRate(std::forward<FrameRateT>(value));
157 return *this;
158 }
160
162
167 inline const HdrMetadata& GetHdrMetadata() const { return m_hdrMetadata; }
168 inline bool HdrMetadataHasBeenSet() const { return m_hdrMetadataHasBeenSet; }
169 template <typename HdrMetadataT = HdrMetadata>
170 void SetHdrMetadata(HdrMetadataT&& value) {
171 m_hdrMetadataHasBeenSet = true;
172 m_hdrMetadata = std::forward<HdrMetadataT>(value);
173 }
174 template <typename HdrMetadataT = HdrMetadata>
175 VideoProperties& WithHdrMetadata(HdrMetadataT&& value) {
176 SetHdrMetadata(std::forward<HdrMetadataT>(value));
177 return *this;
178 }
180
182
185 inline int GetHeight() const { return m_height; }
186 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
187 inline void SetHeight(int value) {
188 m_heightHasBeenSet = true;
189 m_height = value;
190 }
191 inline VideoProperties& WithHeight(int value) {
192 SetHeight(value);
193 return *this;
194 }
196
198
203 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
204 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
206 m_matrixCoefficientsHasBeenSet = true;
207 m_matrixCoefficients = value;
208 }
211 return *this;
212 }
214
216
223 inline int GetRotation() const { return m_rotation; }
224 inline bool RotationHasBeenSet() const { return m_rotationHasBeenSet; }
225 inline void SetRotation(int value) {
226 m_rotationHasBeenSet = true;
227 m_rotation = value;
228 }
229 inline VideoProperties& WithRotation(int value) {
230 SetRotation(value);
231 return *this;
232 }
234
236
249 inline const AspectRatio& GetSampleAspectRatio() const { return m_sampleAspectRatio; }
250 inline bool SampleAspectRatioHasBeenSet() const { return m_sampleAspectRatioHasBeenSet; }
251 template <typename SampleAspectRatioT = AspectRatio>
252 void SetSampleAspectRatio(SampleAspectRatioT&& value) {
253 m_sampleAspectRatioHasBeenSet = true;
254 m_sampleAspectRatio = std::forward<SampleAspectRatioT>(value);
255 }
256 template <typename SampleAspectRatioT = AspectRatio>
257 VideoProperties& WithSampleAspectRatio(SampleAspectRatioT&& value) {
258 SetSampleAspectRatio(std::forward<SampleAspectRatioT>(value));
259 return *this;
260 }
262
264
269 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
270 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
272 m_transferCharacteristicsHasBeenSet = true;
273 m_transferCharacteristics = value;
274 }
277 return *this;
278 }
280
282
285 inline int GetWidth() const { return m_width; }
286 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
287 inline void SetWidth(int value) {
288 m_widthHasBeenSet = true;
289 m_width = value;
290 }
291 inline VideoProperties& WithWidth(int value) {
292 SetWidth(value);
293 return *this;
294 }
296 private:
297 int m_bitDepth{0};
298
299 long long m_bitRate{0};
300
301 CodecMetadata m_codecMetadata;
302
303 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
304
305 AspectRatio m_displayAspectRatio;
306
307 FrameRate m_frameRate;
308
309 HdrMetadata m_hdrMetadata;
310
311 int m_height{0};
312
314
315 int m_rotation{0};
316
317 AspectRatio m_sampleAspectRatio;
318
320
321 int m_width{0};
322 bool m_bitDepthHasBeenSet = false;
323 bool m_bitRateHasBeenSet = false;
324 bool m_codecMetadataHasBeenSet = false;
325 bool m_colorPrimariesHasBeenSet = false;
326 bool m_displayAspectRatioHasBeenSet = false;
327 bool m_frameRateHasBeenSet = false;
328 bool m_hdrMetadataHasBeenSet = false;
329 bool m_heightHasBeenSet = false;
330 bool m_matrixCoefficientsHasBeenSet = false;
331 bool m_rotationHasBeenSet = false;
332 bool m_sampleAspectRatioHasBeenSet = false;
333 bool m_transferCharacteristicsHasBeenSet = false;
334 bool m_widthHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace MediaConvert
339} // namespace Aws
void SetSampleAspectRatio(SampleAspectRatioT &&value)
VideoProperties & WithSampleAspectRatio(SampleAspectRatioT &&value)
MatrixCoefficients GetMatrixCoefficients() const
const AspectRatio & GetSampleAspectRatio() const
VideoProperties & WithDisplayAspectRatio(DisplayAspectRatioT &&value)
VideoProperties & WithCodecMetadata(CodecMetadataT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
VideoProperties & WithRotation(int value)
void SetMatrixCoefficients(MatrixCoefficients value)
void SetHdrMetadata(HdrMetadataT &&value)
AWS_MEDIACONVERT_API VideoProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayAspectRatio(DisplayAspectRatioT &&value)
VideoProperties & WithHeight(int value)
VideoProperties & WithHdrMetadata(HdrMetadataT &&value)
const HdrMetadata & GetHdrMetadata() const
AWS_MEDIACONVERT_API VideoProperties()=default
VideoProperties & WithBitDepth(int value)
TransferCharacteristics GetTransferCharacteristics() const
VideoProperties & WithBitRate(long long value)
VideoProperties & WithColorPrimaries(ColorPrimaries value)
void SetColorPrimaries(ColorPrimaries value)
const AspectRatio & GetDisplayAspectRatio() const
VideoProperties & WithFrameRate(FrameRateT &&value)
VideoProperties & WithMatrixCoefficients(MatrixCoefficients value)
VideoProperties & WithTransferCharacteristics(TransferCharacteristics value)
void SetTransferCharacteristics(TransferCharacteristics value)
VideoProperties & WithWidth(int value)
AWS_MEDIACONVERT_API VideoProperties(Aws::Utils::Json::JsonView jsonValue)
void SetCodecMetadata(CodecMetadataT &&value)
const CodecMetadata & GetCodecMetadata() const
Aws::Utils::Json::JsonValue JsonValue