AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/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
32 public:
33 AWS_MEDIACONVERT_API VideoProperties() = default;
34 AWS_MEDIACONVERT_API VideoProperties(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONVERT_API VideoProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline int GetBitDepth() const { return m_bitDepth; }
45 inline bool BitDepthHasBeenSet() const { return m_bitDepthHasBeenSet; }
46 inline void SetBitDepth(int value) {
47 m_bitDepthHasBeenSet = true;
48 m_bitDepth = value;
49 }
50 inline VideoProperties& WithBitDepth(int value) {
51 SetBitDepth(value);
52 return *this;
53 }
55
57
60 inline long long GetBitRate() const { return m_bitRate; }
61 inline bool BitRateHasBeenSet() const { return m_bitRateHasBeenSet; }
62 inline void SetBitRate(long long value) {
63 m_bitRateHasBeenSet = true;
64 m_bitRate = value;
65 }
66 inline VideoProperties& WithBitRate(long long value) {
67 SetBitRate(value);
68 return *this;
69 }
71
73
80 inline const CodecMetadata& GetCodecMetadata() const { return m_codecMetadata; }
81 inline bool CodecMetadataHasBeenSet() const { return m_codecMetadataHasBeenSet; }
82 template <typename CodecMetadataT = CodecMetadata>
83 void SetCodecMetadata(CodecMetadataT&& value) {
84 m_codecMetadataHasBeenSet = true;
85 m_codecMetadata = std::forward<CodecMetadataT>(value);
86 }
87 template <typename CodecMetadataT = CodecMetadata>
88 VideoProperties& WithCodecMetadata(CodecMetadataT&& value) {
89 SetCodecMetadata(std::forward<CodecMetadataT>(value));
90 return *this;
91 }
93
95
100 inline ColorPrimaries GetColorPrimaries() const { return m_colorPrimaries; }
101 inline bool ColorPrimariesHasBeenSet() const { return m_colorPrimariesHasBeenSet; }
103 m_colorPrimariesHasBeenSet = true;
104 m_colorPrimaries = value;
105 }
107 SetColorPrimaries(value);
108 return *this;
109 }
111
113
117 inline const FrameRate& GetFrameRate() const { return m_frameRate; }
118 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
119 template <typename FrameRateT = FrameRate>
120 void SetFrameRate(FrameRateT&& value) {
121 m_frameRateHasBeenSet = true;
122 m_frameRate = std::forward<FrameRateT>(value);
123 }
124 template <typename FrameRateT = FrameRate>
125 VideoProperties& WithFrameRate(FrameRateT&& value) {
126 SetFrameRate(std::forward<FrameRateT>(value));
127 return *this;
128 }
130
132
135 inline int GetHeight() const { return m_height; }
136 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
137 inline void SetHeight(int value) {
138 m_heightHasBeenSet = true;
139 m_height = value;
140 }
141 inline VideoProperties& WithHeight(int value) {
142 SetHeight(value);
143 return *this;
144 }
146
148
153 inline MatrixCoefficients GetMatrixCoefficients() const { return m_matrixCoefficients; }
154 inline bool MatrixCoefficientsHasBeenSet() const { return m_matrixCoefficientsHasBeenSet; }
156 m_matrixCoefficientsHasBeenSet = true;
157 m_matrixCoefficients = value;
158 }
161 return *this;
162 }
164
166
171 inline TransferCharacteristics GetTransferCharacteristics() const { return m_transferCharacteristics; }
172 inline bool TransferCharacteristicsHasBeenSet() const { return m_transferCharacteristicsHasBeenSet; }
174 m_transferCharacteristicsHasBeenSet = true;
175 m_transferCharacteristics = value;
176 }
179 return *this;
180 }
182
184
187 inline int GetWidth() const { return m_width; }
188 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
189 inline void SetWidth(int value) {
190 m_widthHasBeenSet = true;
191 m_width = value;
192 }
193 inline VideoProperties& WithWidth(int value) {
194 SetWidth(value);
195 return *this;
196 }
198 private:
199 int m_bitDepth{0};
200
201 long long m_bitRate{0};
202
203 CodecMetadata m_codecMetadata;
204
205 ColorPrimaries m_colorPrimaries{ColorPrimaries::NOT_SET};
206
207 FrameRate m_frameRate;
208
209 int m_height{0};
210
212
214
215 int m_width{0};
216 bool m_bitDepthHasBeenSet = false;
217 bool m_bitRateHasBeenSet = false;
218 bool m_codecMetadataHasBeenSet = false;
219 bool m_colorPrimariesHasBeenSet = false;
220 bool m_frameRateHasBeenSet = false;
221 bool m_heightHasBeenSet = false;
222 bool m_matrixCoefficientsHasBeenSet = false;
223 bool m_transferCharacteristicsHasBeenSet = false;
224 bool m_widthHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace MediaConvert
229} // namespace Aws
MatrixCoefficients GetMatrixCoefficients() const
VideoProperties & WithCodecMetadata(CodecMetadataT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMatrixCoefficients(MatrixCoefficients value)
AWS_MEDIACONVERT_API VideoProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
VideoProperties & WithHeight(int value)
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