AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VideoParameters.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elastictranscoder/model/PresetWatermark.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElasticTranscoder
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ELASTICTRANSCODER_API VideoParameters() = default;
38 AWS_ELASTICTRANSCODER_API VideoParameters(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICTRANSCODER_API VideoParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const Aws::String& GetCodec() const { return m_codec; }
53 inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; }
54 template<typename CodecT = Aws::String>
55 void SetCodec(CodecT&& value) { m_codecHasBeenSet = true; m_codec = std::forward<CodecT>(value); }
56 template<typename CodecT = Aws::String>
57 VideoParameters& WithCodec(CodecT&& value) { SetCodec(std::forward<CodecT>(value)); return *this;}
59
61
151 inline const Aws::Map<Aws::String, Aws::String>& GetCodecOptions() const { return m_codecOptions; }
152 inline bool CodecOptionsHasBeenSet() const { return m_codecOptionsHasBeenSet; }
153 template<typename CodecOptionsT = Aws::Map<Aws::String, Aws::String>>
154 void SetCodecOptions(CodecOptionsT&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions = std::forward<CodecOptionsT>(value); }
155 template<typename CodecOptionsT = Aws::Map<Aws::String, Aws::String>>
156 VideoParameters& WithCodecOptions(CodecOptionsT&& value) { SetCodecOptions(std::forward<CodecOptionsT>(value)); return *this;}
157 template<typename CodecOptionsKeyT = Aws::String, typename CodecOptionsValueT = Aws::String>
158 VideoParameters& AddCodecOptions(CodecOptionsKeyT&& key, CodecOptionsValueT&& value) {
159 m_codecOptionsHasBeenSet = true; m_codecOptions.emplace(std::forward<CodecOptionsKeyT>(key), std::forward<CodecOptionsValueT>(value)); return *this;
160 }
162
164
183 inline const Aws::String& GetKeyframesMaxDist() const { return m_keyframesMaxDist; }
184 inline bool KeyframesMaxDistHasBeenSet() const { return m_keyframesMaxDistHasBeenSet; }
185 template<typename KeyframesMaxDistT = Aws::String>
186 void SetKeyframesMaxDist(KeyframesMaxDistT&& value) { m_keyframesMaxDistHasBeenSet = true; m_keyframesMaxDist = std::forward<KeyframesMaxDistT>(value); }
187 template<typename KeyframesMaxDistT = Aws::String>
188 VideoParameters& WithKeyframesMaxDist(KeyframesMaxDistT&& value) { SetKeyframesMaxDist(std::forward<KeyframesMaxDistT>(value)); return *this;}
190
192
203 inline const Aws::String& GetFixedGOP() const { return m_fixedGOP; }
204 inline bool FixedGOPHasBeenSet() const { return m_fixedGOPHasBeenSet; }
205 template<typename FixedGOPT = Aws::String>
206 void SetFixedGOP(FixedGOPT&& value) { m_fixedGOPHasBeenSet = true; m_fixedGOP = std::forward<FixedGOPT>(value); }
207 template<typename FixedGOPT = Aws::String>
208 VideoParameters& WithFixedGOP(FixedGOPT&& value) { SetFixedGOP(std::forward<FixedGOPT>(value)); return *this;}
210
212
227 inline const Aws::String& GetBitRate() const { return m_bitRate; }
228 inline bool BitRateHasBeenSet() const { return m_bitRateHasBeenSet; }
229 template<typename BitRateT = Aws::String>
230 void SetBitRate(BitRateT&& value) { m_bitRateHasBeenSet = true; m_bitRate = std::forward<BitRateT>(value); }
231 template<typename BitRateT = Aws::String>
232 VideoParameters& WithBitRate(BitRateT&& value) { SetBitRate(std::forward<BitRateT>(value)); return *this;}
234
236
258 inline const Aws::String& GetFrameRate() const { return m_frameRate; }
259 inline bool FrameRateHasBeenSet() const { return m_frameRateHasBeenSet; }
260 template<typename FrameRateT = Aws::String>
261 void SetFrameRate(FrameRateT&& value) { m_frameRateHasBeenSet = true; m_frameRate = std::forward<FrameRateT>(value); }
262 template<typename FrameRateT = Aws::String>
263 VideoParameters& WithFrameRate(FrameRateT&& value) { SetFrameRate(std::forward<FrameRateT>(value)); return *this;}
265
267
276 inline const Aws::String& GetMaxFrameRate() const { return m_maxFrameRate; }
277 inline bool MaxFrameRateHasBeenSet() const { return m_maxFrameRateHasBeenSet; }
278 template<typename MaxFrameRateT = Aws::String>
279 void SetMaxFrameRate(MaxFrameRateT&& value) { m_maxFrameRateHasBeenSet = true; m_maxFrameRate = std::forward<MaxFrameRateT>(value); }
280 template<typename MaxFrameRateT = Aws::String>
281 VideoParameters& WithMaxFrameRate(MaxFrameRateT&& value) { SetMaxFrameRate(std::forward<MaxFrameRateT>(value)); return *this;}
283
285
313 inline const Aws::String& GetResolution() const { return m_resolution; }
314 inline bool ResolutionHasBeenSet() const { return m_resolutionHasBeenSet; }
315 template<typename ResolutionT = Aws::String>
316 void SetResolution(ResolutionT&& value) { m_resolutionHasBeenSet = true; m_resolution = std::forward<ResolutionT>(value); }
317 template<typename ResolutionT = Aws::String>
318 VideoParameters& WithResolution(ResolutionT&& value) { SetResolution(std::forward<ResolutionT>(value)); return *this;}
320
322
338 inline const Aws::String& GetAspectRatio() const { return m_aspectRatio; }
339 inline bool AspectRatioHasBeenSet() const { return m_aspectRatioHasBeenSet; }
340 template<typename AspectRatioT = Aws::String>
341 void SetAspectRatio(AspectRatioT&& value) { m_aspectRatioHasBeenSet = true; m_aspectRatio = std::forward<AspectRatioT>(value); }
342 template<typename AspectRatioT = Aws::String>
343 VideoParameters& WithAspectRatio(AspectRatioT&& value) { SetAspectRatio(std::forward<AspectRatioT>(value)); return *this;}
345
347
352 inline const Aws::String& GetMaxWidth() const { return m_maxWidth; }
353 inline bool MaxWidthHasBeenSet() const { return m_maxWidthHasBeenSet; }
354 template<typename MaxWidthT = Aws::String>
355 void SetMaxWidth(MaxWidthT&& value) { m_maxWidthHasBeenSet = true; m_maxWidth = std::forward<MaxWidthT>(value); }
356 template<typename MaxWidthT = Aws::String>
357 VideoParameters& WithMaxWidth(MaxWidthT&& value) { SetMaxWidth(std::forward<MaxWidthT>(value)); return *this;}
359
361
366 inline const Aws::String& GetMaxHeight() const { return m_maxHeight; }
367 inline bool MaxHeightHasBeenSet() const { return m_maxHeightHasBeenSet; }
368 template<typename MaxHeightT = Aws::String>
369 void SetMaxHeight(MaxHeightT&& value) { m_maxHeightHasBeenSet = true; m_maxHeight = std::forward<MaxHeightT>(value); }
370 template<typename MaxHeightT = Aws::String>
371 VideoParameters& WithMaxHeight(MaxHeightT&& value) { SetMaxHeight(std::forward<MaxHeightT>(value)); return *this;}
373
375
379 inline const Aws::String& GetDisplayAspectRatio() const { return m_displayAspectRatio; }
380 inline bool DisplayAspectRatioHasBeenSet() const { return m_displayAspectRatioHasBeenSet; }
381 template<typename DisplayAspectRatioT = Aws::String>
382 void SetDisplayAspectRatio(DisplayAspectRatioT&& value) { m_displayAspectRatioHasBeenSet = true; m_displayAspectRatio = std::forward<DisplayAspectRatioT>(value); }
383 template<typename DisplayAspectRatioT = Aws::String>
384 VideoParameters& WithDisplayAspectRatio(DisplayAspectRatioT&& value) { SetDisplayAspectRatio(std::forward<DisplayAspectRatioT>(value)); return *this;}
386
388
415 inline const Aws::String& GetSizingPolicy() const { return m_sizingPolicy; }
416 inline bool SizingPolicyHasBeenSet() const { return m_sizingPolicyHasBeenSet; }
417 template<typename SizingPolicyT = Aws::String>
418 void SetSizingPolicy(SizingPolicyT&& value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy = std::forward<SizingPolicyT>(value); }
419 template<typename SizingPolicyT = Aws::String>
420 VideoParameters& WithSizingPolicy(SizingPolicyT&& value) { SetSizingPolicy(std::forward<SizingPolicyT>(value)); return *this;}
422
424
430 inline const Aws::String& GetPaddingPolicy() const { return m_paddingPolicy; }
431 inline bool PaddingPolicyHasBeenSet() const { return m_paddingPolicyHasBeenSet; }
432 template<typename PaddingPolicyT = Aws::String>
433 void SetPaddingPolicy(PaddingPolicyT&& value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy = std::forward<PaddingPolicyT>(value); }
434 template<typename PaddingPolicyT = Aws::String>
435 VideoParameters& WithPaddingPolicy(PaddingPolicyT&& value) { SetPaddingPolicy(std::forward<PaddingPolicyT>(value)); return *this;}
437
439
452 inline const Aws::Vector<PresetWatermark>& GetWatermarks() const { return m_watermarks; }
453 inline bool WatermarksHasBeenSet() const { return m_watermarksHasBeenSet; }
454 template<typename WatermarksT = Aws::Vector<PresetWatermark>>
455 void SetWatermarks(WatermarksT&& value) { m_watermarksHasBeenSet = true; m_watermarks = std::forward<WatermarksT>(value); }
456 template<typename WatermarksT = Aws::Vector<PresetWatermark>>
457 VideoParameters& WithWatermarks(WatermarksT&& value) { SetWatermarks(std::forward<WatermarksT>(value)); return *this;}
458 template<typename WatermarksT = PresetWatermark>
459 VideoParameters& AddWatermarks(WatermarksT&& value) { m_watermarksHasBeenSet = true; m_watermarks.emplace_back(std::forward<WatermarksT>(value)); return *this; }
461 private:
462
463 Aws::String m_codec;
464 bool m_codecHasBeenSet = false;
465
467 bool m_codecOptionsHasBeenSet = false;
468
469 Aws::String m_keyframesMaxDist;
470 bool m_keyframesMaxDistHasBeenSet = false;
471
472 Aws::String m_fixedGOP;
473 bool m_fixedGOPHasBeenSet = false;
474
475 Aws::String m_bitRate;
476 bool m_bitRateHasBeenSet = false;
477
478 Aws::String m_frameRate;
479 bool m_frameRateHasBeenSet = false;
480
481 Aws::String m_maxFrameRate;
482 bool m_maxFrameRateHasBeenSet = false;
483
484 Aws::String m_resolution;
485 bool m_resolutionHasBeenSet = false;
486
487 Aws::String m_aspectRatio;
488 bool m_aspectRatioHasBeenSet = false;
489
490 Aws::String m_maxWidth;
491 bool m_maxWidthHasBeenSet = false;
492
493 Aws::String m_maxHeight;
494 bool m_maxHeightHasBeenSet = false;
495
496 Aws::String m_displayAspectRatio;
497 bool m_displayAspectRatioHasBeenSet = false;
498
499 Aws::String m_sizingPolicy;
500 bool m_sizingPolicyHasBeenSet = false;
501
502 Aws::String m_paddingPolicy;
503 bool m_paddingPolicyHasBeenSet = false;
504
505 Aws::Vector<PresetWatermark> m_watermarks;
506 bool m_watermarksHasBeenSet = false;
507 };
508
509} // namespace Model
510} // namespace ElasticTranscoder
511} // namespace Aws
void SetKeyframesMaxDist(KeyframesMaxDistT &&value)
VideoParameters & WithResolution(ResolutionT &&value)
VideoParameters & WithBitRate(BitRateT &&value)
VideoParameters & WithKeyframesMaxDist(KeyframesMaxDistT &&value)
void SetDisplayAspectRatio(DisplayAspectRatioT &&value)
VideoParameters & WithDisplayAspectRatio(DisplayAspectRatioT &&value)
VideoParameters & AddCodecOptions(CodecOptionsKeyT &&key, CodecOptionsValueT &&value)
AWS_ELASTICTRANSCODER_API VideoParameters(Aws::Utils::Json::JsonView jsonValue)
VideoParameters & WithWatermarks(WatermarksT &&value)
VideoParameters & WithMaxHeight(MaxHeightT &&value)
VideoParameters & WithSizingPolicy(SizingPolicyT &&value)
VideoParameters & WithPaddingPolicy(PaddingPolicyT &&value)
VideoParameters & WithFixedGOP(FixedGOPT &&value)
VideoParameters & WithMaxWidth(MaxWidthT &&value)
VideoParameters & WithAspectRatio(AspectRatioT &&value)
const Aws::String & GetDisplayAspectRatio() const
VideoParameters & WithMaxFrameRate(MaxFrameRateT &&value)
const Aws::Vector< PresetWatermark > & GetWatermarks() const
AWS_ELASTICTRANSCODER_API VideoParameters()=default
VideoParameters & WithFrameRate(FrameRateT &&value)
AWS_ELASTICTRANSCODER_API VideoParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
VideoParameters & WithCodecOptions(CodecOptionsT &&value)
VideoParameters & AddWatermarks(WatermarksT &&value)
VideoParameters & WithCodec(CodecT &&value)
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetCodecOptions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue