AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
VideoProperties.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/model/CodecMetadata.h>
9#include <aws/mediaconvert/model/ColorPrimaries.h>
10#include <aws/mediaconvert/model/FrameRate.h>
11#include <aws/mediaconvert/model/HdrMetadata.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
33 public:
34 AWS_MEDIACONVERT_API VideoProperties() = default;
35 AWS_MEDIACONVERT_API VideoProperties(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONVERT_API VideoProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline int GetBitDepth() const { return m_bitDepth; }
46 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
47 inline void SetBitDepth(int value) {
48 m_bitDepthHasBeenSet = true;
49 m_bitDepth = value;
50 }
51 inline VideoProperties& WithBitDepth(int value) {
52 SetBitDepth(value);
53 return *this;
54 }
56
58
61 inline long long GetBitRate() const { return m_bitRate; }
62 inline bool BitRateHasBeenSet() const { return m_bitRateHasBeenSet; }
63 inline void SetBitRate(long long value) {
64 m_bitRateHasBeenSet = true;
65 m_bitRate = value;
66 }
67 inline VideoProperties& WithBitRate(long long value) {
68 SetBitRate(value);
69 return *this;
70 }
72
74
81 inline const CodecMetadata& GetCodecMetadata() const { return m_codecMetadata; }
82 inline bool CodecMetadataHasBeenSet() const { return m_codecMetadataHasBeenSet; }
83 template <typename CodecMetadataT = CodecMetadata>
84 void SetCodecMetadata(CodecMetadataT&& value) {
85 m_codecMetadataHasBeenSet = true;
86 m_codecMetadata = std::forward<CodecMetadataT>(value);
87 }
88 template <typename CodecMetadataT = CodecMetadata>
89 VideoProperties& WithCodecMetadata(CodecMetadataT&& value) {
90 SetCodecMetadata(std::forward<CodecMetadataT>(value));
91 return *this;
92 }
94
96
101 inline ColorPrimaries GetColorPrimaries() const { return m_colorPrimaries; }
102 inline bool ColorPrimariesHasBeenSet() const { return m_colorPrimariesHasBeenSet; }
104 m_colorPrimariesHasBeenSet = true;
105 m_colorPrimaries = value;
106 }
108 SetColorPrimaries(value);
109 return *this;
110 }
112
114
118 inline const FrameRate& GetFrameRate() const { return m_frameRate; }
119 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
120 template <typename FrameRateT = FrameRate>
121 void SetFrameRate(FrameRateT&& value) {
122 m_frameRateHasBeenSet = true;
123 m_frameRate = std::forward<FrameRateT>(value);
124 }
125 template <typename FrameRateT = FrameRate>
126 VideoProperties& WithFrameRate(FrameRateT&& value) {
127 SetFrameRate(std::forward<FrameRateT>(value));
128 return *this;
129 }
131
133
138 inline const HdrMetadata& GetHdrMetadata() const { return m_hdrMetadata; }
139 inline bool HdrMetadataHasBeenSet() const { return m_hdrMetadataHasBeenSet; }
140 template <typename HdrMetadataT = HdrMetadata>
141 void SetHdrMetadata(HdrMetadataT&& value) {
142 m_hdrMetadataHasBeenSet = true;
143 m_hdrMetadata = std::forward<HdrMetadataT>(value);
144 }
145 template <typename HdrMetadataT = HdrMetadata>
146 VideoProperties& WithHdrMetadata(HdrMetadataT&& value) {
147 SetHdrMetadata(std::forward<HdrMetadataT>(value));
148 return *this;
149 }
151
153
156 inline int GetHeight() const { return m_height; }
157 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
158 inline void SetHeight(int value) {
159 m_heightHasBeenSet = true;
160 m_height = value;
161 }
162 inline VideoProperties& WithHeight(int value) {
163 SetHeight(value);
164 return *this;
165 }
167
169
174 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
175 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
177 m_matrixCoefficientsHasBeenSet = true;
178 m_matrixCoefficients = value;
179 }
182 return *this;
183 }
185
187
194 inline int GetRotation() const { return m_rotation; }
195 inline bool RotationHasBeenSet() const { return m_rotationHasBeenSet; }
196 inline void SetRotation(int value) {
197 m_rotationHasBeenSet = true;
198 m_rotation = value;
199 }
200 inline VideoProperties& WithRotation(int value) {
201 SetRotation(value);
202 return *this;
203 }
205
207
212 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
213 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
215 m_transferCharacteristicsHasBeenSet = true;
216 m_transferCharacteristics = value;
217 }
220 return *this;
221 }
223
225
228 inline int GetWidth() const { return m_width; }
229 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
230 inline void SetWidth(int value) {
231 m_widthHasBeenSet = true;
232 m_width = value;
233 }
234 inline VideoProperties& WithWidth(int value) {
235 SetWidth(value);
236 return *this;
237 }
239 private:
240 int m_bitDepth{0};
241
242 long long m_bitRate{0};
243
244 CodecMetadata m_codecMetadata;
245
246 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
247
248 FrameRate m_frameRate;
249
250 HdrMetadata m_hdrMetadata;
251
252 int m_height{0};
253
255
256 int m_rotation{0};
257
259
260 int m_width{0};
261 bool m_bitDepthHasBeenSet = false;
262 bool m_bitRateHasBeenSet = false;
263 bool m_codecMetadataHasBeenSet = false;
264 bool m_colorPrimariesHasBeenSet = false;
265 bool m_frameRateHasBeenSet = false;
266 bool m_hdrMetadataHasBeenSet = false;
267 bool m_heightHasBeenSet = false;
268 bool m_matrixCoefficientsHasBeenSet = false;
269 bool m_rotationHasBeenSet = false;
270 bool m_transferCharacteristicsHasBeenSet = false;
271 bool m_widthHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace MediaConvert
276} // namespace Aws
MatrixCoefficients GetMatrixCoefficients() const
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)
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)
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