AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
VideoDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/VideoCodecSettings.h>
10#include <aws/medialive/model/VideoDescriptionRespondToAfd.h>
11#include <aws/medialive/model/VideoDescriptionScalingBehavior.h>
12#include <aws/medialive/model/VideoPositionRectangle.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive {
24namespace Model {
25
32 public:
33 AWS_MEDIALIVE_API VideoDescription() = default;
34 AWS_MEDIALIVE_API VideoDescription(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const VideoCodecSettings& GetCodecSettings() const { return m_codecSettings; }
43 inline bool CodecSettingsHasBeenSet() const { return m_codecSettingsHasBeenSet; }
44 template <typename CodecSettingsT = VideoCodecSettings>
45 void SetCodecSettings(CodecSettingsT&& value) {
46 m_codecSettingsHasBeenSet = true;
47 m_codecSettings = std::forward<CodecSettingsT>(value);
48 }
49 template <typename CodecSettingsT = VideoCodecSettings>
50 VideoDescription& WithCodecSettings(CodecSettingsT&& value) {
51 SetCodecSettings(std::forward<CodecSettingsT>(value));
52 return *this;
53 }
55
57
63 inline int GetHeight() const { return m_height; }
64 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
65 inline void SetHeight(int value) {
66 m_heightHasBeenSet = true;
67 m_height = value;
68 }
69 inline VideoDescription& WithHeight(int value) {
70 SetHeight(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 VideoDescription& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
111 inline VideoDescriptionRespondToAfd GetRespondToAfd() const { return m_respondToAfd; }
112 inline bool RespondToAfdHasBeenSet() const { return m_respondToAfdHasBeenSet; }
114 m_respondToAfdHasBeenSet = true;
115 m_respondToAfd = value;
116 }
118 SetRespondToAfd(value);
119 return *this;
120 }
122
124
136 inline VideoDescriptionScalingBehavior GetScalingBehavior() const { return m_scalingBehavior; }
137 inline bool ScalingBehaviorHasBeenSet() const { return m_scalingBehaviorHasBeenSet; }
139 m_scalingBehaviorHasBeenSet = true;
140 m_scalingBehavior = value;
141 }
143 SetScalingBehavior(value);
144 return *this;
145 }
147
149
153 inline int GetSharpness() const { return m_sharpness; }
154 inline bool SharpnessHasBeenSet() const { return m_sharpnessHasBeenSet; }
155 inline void SetSharpness(int value) {
156 m_sharpnessHasBeenSet = true;
157 m_sharpness = value;
158 }
159 inline VideoDescription& WithSharpness(int value) {
160 SetSharpness(value);
161 return *this;
162 }
164
166
172 inline int GetWidth() const { return m_width; }
173 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
174 inline void SetWidth(int value) {
175 m_widthHasBeenSet = true;
176 m_width = value;
177 }
178 inline VideoDescription& WithWidth(int value) {
179 SetWidth(value);
180 return *this;
181 }
183
185
199 inline const VideoPositionRectangle& GetCropRectangle() const { return m_cropRectangle; }
200 inline bool CropRectangleHasBeenSet() const { return m_cropRectangleHasBeenSet; }
201 template <typename CropRectangleT = VideoPositionRectangle>
202 void SetCropRectangle(CropRectangleT&& value) {
203 m_cropRectangleHasBeenSet = true;
204 m_cropRectangle = std::forward<CropRectangleT>(value);
205 }
206 template <typename CropRectangleT = VideoPositionRectangle>
207 VideoDescription& WithCropRectangle(CropRectangleT&& value) {
208 SetCropRectangle(std::forward<CropRectangleT>(value));
209 return *this;
210 }
212
214
224 inline const VideoPositionRectangle& GetOutputPositionRectangle() const { return m_outputPositionRectangle; }
225 inline bool OutputPositionRectangleHasBeenSet() const { return m_outputPositionRectangleHasBeenSet; }
226 template <typename OutputPositionRectangleT = VideoPositionRectangle>
227 void SetOutputPositionRectangle(OutputPositionRectangleT&& value) {
228 m_outputPositionRectangleHasBeenSet = true;
229 m_outputPositionRectangle = std::forward<OutputPositionRectangleT>(value);
230 }
231 template <typename OutputPositionRectangleT = VideoPositionRectangle>
232 VideoDescription& WithOutputPositionRectangle(OutputPositionRectangleT&& value) {
233 SetOutputPositionRectangle(std::forward<OutputPositionRectangleT>(value));
234 return *this;
235 }
237
239
251 inline int GetBorder() const { return m_border; }
252 inline bool BorderHasBeenSet() const { return m_borderHasBeenSet; }
253 inline void SetBorder(int value) {
254 m_borderHasBeenSet = true;
255 m_border = value;
256 }
257 inline VideoDescription& WithBorder(int value) {
258 SetBorder(value);
259 return *this;
260 }
262 private:
263 VideoCodecSettings m_codecSettings;
264
265 int m_height{0};
266
267 Aws::String m_name;
268
270
272
273 int m_sharpness{0};
274
275 int m_width{0};
276
277 VideoPositionRectangle m_cropRectangle;
278
279 VideoPositionRectangle m_outputPositionRectangle;
280
281 int m_border{0};
282 bool m_codecSettingsHasBeenSet = false;
283 bool m_heightHasBeenSet = false;
284 bool m_nameHasBeenSet = false;
285 bool m_respondToAfdHasBeenSet = false;
286 bool m_scalingBehaviorHasBeenSet = false;
287 bool m_sharpnessHasBeenSet = false;
288 bool m_widthHasBeenSet = false;
289 bool m_cropRectangleHasBeenSet = false;
290 bool m_outputPositionRectangleHasBeenSet = false;
291 bool m_borderHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace MediaLive
296} // namespace Aws
const VideoCodecSettings & GetCodecSettings() const
VideoDescription & WithBorder(int value)
void SetCropRectangle(CropRectangleT &&value)
void SetRespondToAfd(VideoDescriptionRespondToAfd value)
VideoDescription & WithScalingBehavior(VideoDescriptionScalingBehavior value)
void SetCodecSettings(CodecSettingsT &&value)
VideoDescription & WithCropRectangle(CropRectangleT &&value)
VideoDescription & WithHeight(int value)
AWS_MEDIALIVE_API VideoDescription()=default
VideoDescription & WithSharpness(int value)
const VideoPositionRectangle & GetOutputPositionRectangle() const
VideoDescription & WithWidth(int value)
VideoDescription & WithOutputPositionRectangle(OutputPositionRectangleT &&value)
VideoDescription & WithRespondToAfd(VideoDescriptionRespondToAfd value)
void SetOutputPositionRectangle(OutputPositionRectangleT &&value)
void SetScalingBehavior(VideoDescriptionScalingBehavior value)
VideoDescriptionRespondToAfd GetRespondToAfd() const
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
VideoDescriptionScalingBehavior GetScalingBehavior() const
const VideoPositionRectangle & GetCropRectangle() const
const Aws::String & GetName() const
AWS_MEDIALIVE_API VideoDescription(Aws::Utils::Json::JsonView jsonValue)
VideoDescription & WithCodecSettings(CodecSettingsT &&value)
VideoDescription & WithName(NameT &&value)
AWS_MEDIALIVE_API VideoDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue