AWS SDK for C++  0.14.3
AWS SDK for C++
VideoParameters.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace ElasticTranscoder
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  VideoParameters& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
54  inline const Aws::String& GetCodec() const{ return m_codec; }
55 
63  inline void SetCodec(const Aws::String& value) { m_codecHasBeenSet = true; m_codec = value; }
64 
72  inline void SetCodec(Aws::String&& value) { m_codecHasBeenSet = true; m_codec = value; }
73 
81  inline void SetCodec(const char* value) { m_codecHasBeenSet = true; m_codec.assign(value); }
82 
90  inline VideoParameters& WithCodec(const Aws::String& value) { SetCodec(value); return *this;}
91 
99  inline VideoParameters& WithCodec(Aws::String&& value) { SetCodec(value); return *this;}
100 
108  inline VideoParameters& WithCodec(const char* value) { SetCodec(value); return *this;}
109 
197  inline const Aws::Map<Aws::String, Aws::String>& GetCodecOptions() const{ return m_codecOptions; }
198 
286  inline void SetCodecOptions(const Aws::Map<Aws::String, Aws::String>& value) { m_codecOptionsHasBeenSet = true; m_codecOptions = value; }
287 
375  inline void SetCodecOptions(Aws::Map<Aws::String, Aws::String>&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions = value; }
376 
464  inline VideoParameters& WithCodecOptions(const Aws::Map<Aws::String, Aws::String>& value) { SetCodecOptions(value); return *this;}
465 
553  inline VideoParameters& WithCodecOptions(Aws::Map<Aws::String, Aws::String>&& value) { SetCodecOptions(value); return *this;}
554 
642  inline VideoParameters& AddCodecOptions(const Aws::String& key, const Aws::String& value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
643 
731  inline VideoParameters& AddCodecOptions(Aws::String&& key, const Aws::String& value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
732 
820  inline VideoParameters& AddCodecOptions(const Aws::String& key, Aws::String&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
821 
909  inline VideoParameters& AddCodecOptions(Aws::String&& key, Aws::String&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
910 
998  inline VideoParameters& AddCodecOptions(const char* key, Aws::String&& value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
999 
1087  inline VideoParameters& AddCodecOptions(Aws::String&& key, const char* value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
1088 
1176  inline VideoParameters& AddCodecOptions(const char* key, const char* value) { m_codecOptionsHasBeenSet = true; m_codecOptions[key] = value; return *this; }
1177 
1197  inline const Aws::String& GetKeyframesMaxDist() const{ return m_keyframesMaxDist; }
1198 
1218  inline void SetKeyframesMaxDist(const Aws::String& value) { m_keyframesMaxDistHasBeenSet = true; m_keyframesMaxDist = value; }
1219 
1239  inline void SetKeyframesMaxDist(Aws::String&& value) { m_keyframesMaxDistHasBeenSet = true; m_keyframesMaxDist = value; }
1240 
1260  inline void SetKeyframesMaxDist(const char* value) { m_keyframesMaxDistHasBeenSet = true; m_keyframesMaxDist.assign(value); }
1261 
1281  inline VideoParameters& WithKeyframesMaxDist(const Aws::String& value) { SetKeyframesMaxDist(value); return *this;}
1282 
1302  inline VideoParameters& WithKeyframesMaxDist(Aws::String&& value) { SetKeyframesMaxDist(value); return *this;}
1303 
1323  inline VideoParameters& WithKeyframesMaxDist(const char* value) { SetKeyframesMaxDist(value); return *this;}
1324 
1336  inline const Aws::String& GetFixedGOP() const{ return m_fixedGOP; }
1337 
1349  inline void SetFixedGOP(const Aws::String& value) { m_fixedGOPHasBeenSet = true; m_fixedGOP = value; }
1350 
1362  inline void SetFixedGOP(Aws::String&& value) { m_fixedGOPHasBeenSet = true; m_fixedGOP = value; }
1363 
1375  inline void SetFixedGOP(const char* value) { m_fixedGOPHasBeenSet = true; m_fixedGOP.assign(value); }
1376 
1388  inline VideoParameters& WithFixedGOP(const Aws::String& value) { SetFixedGOP(value); return *this;}
1389 
1401  inline VideoParameters& WithFixedGOP(Aws::String&& value) { SetFixedGOP(value); return *this;}
1402 
1414  inline VideoParameters& WithFixedGOP(const char* value) { SetFixedGOP(value); return *this;}
1415 
1430  inline const Aws::String& GetBitRate() const{ return m_bitRate; }
1431 
1446  inline void SetBitRate(const Aws::String& value) { m_bitRateHasBeenSet = true; m_bitRate = value; }
1447 
1462  inline void SetBitRate(Aws::String&& value) { m_bitRateHasBeenSet = true; m_bitRate = value; }
1463 
1478  inline void SetBitRate(const char* value) { m_bitRateHasBeenSet = true; m_bitRate.assign(value); }
1479 
1494  inline VideoParameters& WithBitRate(const Aws::String& value) { SetBitRate(value); return *this;}
1495 
1510  inline VideoParameters& WithBitRate(Aws::String&& value) { SetBitRate(value); return *this;}
1511 
1526  inline VideoParameters& WithBitRate(const char* value) { SetBitRate(value); return *this;}
1527 
1549  inline const Aws::String& GetFrameRate() const{ return m_frameRate; }
1550 
1572  inline void SetFrameRate(const Aws::String& value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
1573 
1595  inline void SetFrameRate(Aws::String&& value) { m_frameRateHasBeenSet = true; m_frameRate = value; }
1596 
1618  inline void SetFrameRate(const char* value) { m_frameRateHasBeenSet = true; m_frameRate.assign(value); }
1619 
1641  inline VideoParameters& WithFrameRate(const Aws::String& value) { SetFrameRate(value); return *this;}
1642 
1664  inline VideoParameters& WithFrameRate(Aws::String&& value) { SetFrameRate(value); return *this;}
1665 
1687  inline VideoParameters& WithFrameRate(const char* value) { SetFrameRate(value); return *this;}
1688 
1698  inline const Aws::String& GetMaxFrameRate() const{ return m_maxFrameRate; }
1699 
1709  inline void SetMaxFrameRate(const Aws::String& value) { m_maxFrameRateHasBeenSet = true; m_maxFrameRate = value; }
1710 
1720  inline void SetMaxFrameRate(Aws::String&& value) { m_maxFrameRateHasBeenSet = true; m_maxFrameRate = value; }
1721 
1731  inline void SetMaxFrameRate(const char* value) { m_maxFrameRateHasBeenSet = true; m_maxFrameRate.assign(value); }
1732 
1742  inline VideoParameters& WithMaxFrameRate(const Aws::String& value) { SetMaxFrameRate(value); return *this;}
1743 
1753  inline VideoParameters& WithMaxFrameRate(Aws::String&& value) { SetMaxFrameRate(value); return *this;}
1754 
1764  inline VideoParameters& WithMaxFrameRate(const char* value) { SetMaxFrameRate(value); return *this;}
1765 
1792  inline const Aws::String& GetResolution() const{ return m_resolution; }
1793 
1820  inline void SetResolution(const Aws::String& value) { m_resolutionHasBeenSet = true; m_resolution = value; }
1821 
1848  inline void SetResolution(Aws::String&& value) { m_resolutionHasBeenSet = true; m_resolution = value; }
1849 
1876  inline void SetResolution(const char* value) { m_resolutionHasBeenSet = true; m_resolution.assign(value); }
1877 
1904  inline VideoParameters& WithResolution(const Aws::String& value) { SetResolution(value); return *this;}
1905 
1932  inline VideoParameters& WithResolution(Aws::String&& value) { SetResolution(value); return *this;}
1933 
1960  inline VideoParameters& WithResolution(const char* value) { SetResolution(value); return *this;}
1961 
1978  inline const Aws::String& GetAspectRatio() const{ return m_aspectRatio; }
1979 
1996  inline void SetAspectRatio(const Aws::String& value) { m_aspectRatioHasBeenSet = true; m_aspectRatio = value; }
1997 
2014  inline void SetAspectRatio(Aws::String&& value) { m_aspectRatioHasBeenSet = true; m_aspectRatio = value; }
2015 
2032  inline void SetAspectRatio(const char* value) { m_aspectRatioHasBeenSet = true; m_aspectRatio.assign(value); }
2033 
2050  inline VideoParameters& WithAspectRatio(const Aws::String& value) { SetAspectRatio(value); return *this;}
2051 
2068  inline VideoParameters& WithAspectRatio(Aws::String&& value) { SetAspectRatio(value); return *this;}
2069 
2086  inline VideoParameters& WithAspectRatio(const char* value) { SetAspectRatio(value); return *this;}
2087 
2093  inline const Aws::String& GetMaxWidth() const{ return m_maxWidth; }
2094 
2100  inline void SetMaxWidth(const Aws::String& value) { m_maxWidthHasBeenSet = true; m_maxWidth = value; }
2101 
2107  inline void SetMaxWidth(Aws::String&& value) { m_maxWidthHasBeenSet = true; m_maxWidth = value; }
2108 
2114  inline void SetMaxWidth(const char* value) { m_maxWidthHasBeenSet = true; m_maxWidth.assign(value); }
2115 
2121  inline VideoParameters& WithMaxWidth(const Aws::String& value) { SetMaxWidth(value); return *this;}
2122 
2128  inline VideoParameters& WithMaxWidth(Aws::String&& value) { SetMaxWidth(value); return *this;}
2129 
2135  inline VideoParameters& WithMaxWidth(const char* value) { SetMaxWidth(value); return *this;}
2136 
2142  inline const Aws::String& GetMaxHeight() const{ return m_maxHeight; }
2143 
2149  inline void SetMaxHeight(const Aws::String& value) { m_maxHeightHasBeenSet = true; m_maxHeight = value; }
2150 
2156  inline void SetMaxHeight(Aws::String&& value) { m_maxHeightHasBeenSet = true; m_maxHeight = value; }
2157 
2163  inline void SetMaxHeight(const char* value) { m_maxHeightHasBeenSet = true; m_maxHeight.assign(value); }
2164 
2170  inline VideoParameters& WithMaxHeight(const Aws::String& value) { SetMaxHeight(value); return *this;}
2171 
2177  inline VideoParameters& WithMaxHeight(Aws::String&& value) { SetMaxHeight(value); return *this;}
2178 
2184  inline VideoParameters& WithMaxHeight(const char* value) { SetMaxHeight(value); return *this;}
2185 
2190  inline const Aws::String& GetDisplayAspectRatio() const{ return m_displayAspectRatio; }
2191 
2196  inline void SetDisplayAspectRatio(const Aws::String& value) { m_displayAspectRatioHasBeenSet = true; m_displayAspectRatio = value; }
2197 
2202  inline void SetDisplayAspectRatio(Aws::String&& value) { m_displayAspectRatioHasBeenSet = true; m_displayAspectRatio = value; }
2203 
2208  inline void SetDisplayAspectRatio(const char* value) { m_displayAspectRatioHasBeenSet = true; m_displayAspectRatio.assign(value); }
2209 
2214  inline VideoParameters& WithDisplayAspectRatio(const Aws::String& value) { SetDisplayAspectRatio(value); return *this;}
2215 
2220  inline VideoParameters& WithDisplayAspectRatio(Aws::String&& value) { SetDisplayAspectRatio(value); return *this;}
2221 
2226  inline VideoParameters& WithDisplayAspectRatio(const char* value) { SetDisplayAspectRatio(value); return *this;}
2227 
2255  inline const Aws::String& GetSizingPolicy() const{ return m_sizingPolicy; }
2256 
2284  inline void SetSizingPolicy(const Aws::String& value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy = value; }
2285 
2313  inline void SetSizingPolicy(Aws::String&& value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy = value; }
2314 
2342  inline void SetSizingPolicy(const char* value) { m_sizingPolicyHasBeenSet = true; m_sizingPolicy.assign(value); }
2343 
2371  inline VideoParameters& WithSizingPolicy(const Aws::String& value) { SetSizingPolicy(value); return *this;}
2372 
2400  inline VideoParameters& WithSizingPolicy(Aws::String&& value) { SetSizingPolicy(value); return *this;}
2401 
2429  inline VideoParameters& WithSizingPolicy(const char* value) { SetSizingPolicy(value); return *this;}
2430 
2437  inline const Aws::String& GetPaddingPolicy() const{ return m_paddingPolicy; }
2438 
2445  inline void SetPaddingPolicy(const Aws::String& value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy = value; }
2446 
2453  inline void SetPaddingPolicy(Aws::String&& value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy = value; }
2454 
2461  inline void SetPaddingPolicy(const char* value) { m_paddingPolicyHasBeenSet = true; m_paddingPolicy.assign(value); }
2462 
2469  inline VideoParameters& WithPaddingPolicy(const Aws::String& value) { SetPaddingPolicy(value); return *this;}
2470 
2477  inline VideoParameters& WithPaddingPolicy(Aws::String&& value) { SetPaddingPolicy(value); return *this;}
2478 
2485  inline VideoParameters& WithPaddingPolicy(const char* value) { SetPaddingPolicy(value); return *this;}
2486 
2500  inline const Aws::Vector<PresetWatermark>& GetWatermarks() const{ return m_watermarks; }
2501 
2515  inline void SetWatermarks(const Aws::Vector<PresetWatermark>& value) { m_watermarksHasBeenSet = true; m_watermarks = value; }
2516 
2530  inline void SetWatermarks(Aws::Vector<PresetWatermark>&& value) { m_watermarksHasBeenSet = true; m_watermarks = value; }
2531 
2545  inline VideoParameters& WithWatermarks(const Aws::Vector<PresetWatermark>& value) { SetWatermarks(value); return *this;}
2546 
2560  inline VideoParameters& WithWatermarks(Aws::Vector<PresetWatermark>&& value) { SetWatermarks(value); return *this;}
2561 
2575  inline VideoParameters& AddWatermarks(const PresetWatermark& value) { m_watermarksHasBeenSet = true; m_watermarks.push_back(value); return *this; }
2576 
2590  inline VideoParameters& AddWatermarks(PresetWatermark&& value) { m_watermarksHasBeenSet = true; m_watermarks.push_back(value); return *this; }
2591 
2592  private:
2593  Aws::String m_codec;
2594  bool m_codecHasBeenSet;
2595  Aws::Map<Aws::String, Aws::String> m_codecOptions;
2596  bool m_codecOptionsHasBeenSet;
2597  Aws::String m_keyframesMaxDist;
2598  bool m_keyframesMaxDistHasBeenSet;
2599  Aws::String m_fixedGOP;
2600  bool m_fixedGOPHasBeenSet;
2601  Aws::String m_bitRate;
2602  bool m_bitRateHasBeenSet;
2603  Aws::String m_frameRate;
2604  bool m_frameRateHasBeenSet;
2605  Aws::String m_maxFrameRate;
2606  bool m_maxFrameRateHasBeenSet;
2607  Aws::String m_resolution;
2608  bool m_resolutionHasBeenSet;
2609  Aws::String m_aspectRatio;
2610  bool m_aspectRatioHasBeenSet;
2611  Aws::String m_maxWidth;
2612  bool m_maxWidthHasBeenSet;
2613  Aws::String m_maxHeight;
2614  bool m_maxHeightHasBeenSet;
2615  Aws::String m_displayAspectRatio;
2616  bool m_displayAspectRatioHasBeenSet;
2617  Aws::String m_sizingPolicy;
2618  bool m_sizingPolicyHasBeenSet;
2619  Aws::String m_paddingPolicy;
2620  bool m_paddingPolicyHasBeenSet;
2621  Aws::Vector<PresetWatermark> m_watermarks;
2622  bool m_watermarksHasBeenSet;
2623  };
2624 
2625 } // namespace Model
2626 } // namespace ElasticTranscoder
2627 } // namespace Aws
void SetPaddingPolicy(const Aws::String &value)
void SetResolution(const Aws::String &value)
VideoParameters & WithMaxFrameRate(const char *value)
VideoParameters & AddWatermarks(PresetWatermark &&value)
VideoParameters & WithKeyframesMaxDist(const char *value)
VideoParameters & WithCodecOptions(Aws::Map< Aws::String, Aws::String > &&value)
void SetCodec(const Aws::String &value)
VideoParameters & AddWatermarks(const PresetWatermark &value)
VideoParameters & AddCodecOptions(Aws::String &&key, const char *value)
void SetMaxWidth(const Aws::String &value)
const Aws::String & GetKeyframesMaxDist() const
void SetMaxHeight(const Aws::String &value)
VideoParameters & WithResolution(Aws::String &&value)
VideoParameters & WithBitRate(const char *value)
VideoParameters & AddCodecOptions(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetCodecOptions() const
VideoParameters & WithKeyframesMaxDist(Aws::String &&value)
VideoParameters & AddCodecOptions(Aws::String &&key, const Aws::String &value)
VideoParameters & WithFixedGOP(const char *value)
void SetDisplayAspectRatio(const Aws::String &value)
void SetFixedGOP(const Aws::String &value)
VideoParameters & WithSizingPolicy(const char *value)
VideoParameters & WithCodec(const char *value)
VideoParameters & WithDisplayAspectRatio(Aws::String &&value)
VideoParameters & WithFrameRate(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
VideoParameters & WithFrameRate(Aws::String &&value)
VideoParameters & WithPaddingPolicy(const char *value)
VideoParameters & WithMaxFrameRate(const Aws::String &value)
void SetAspectRatio(const Aws::String &value)
VideoParameters & WithSizingPolicy(Aws::String &&value)
VideoParameters & WithAspectRatio(Aws::String &&value)
VideoParameters & WithMaxWidth(const Aws::String &value)
VideoParameters & AddCodecOptions(const char *key, Aws::String &&value)
VideoParameters & WithBitRate(const Aws::String &value)
VideoParameters & AddCodecOptions(const Aws::String &key, Aws::String &&value)
VideoParameters & WithAspectRatio(const char *value)
void SetFrameRate(const Aws::String &value)
VideoParameters & WithResolution(const char *value)
VideoParameters & WithMaxFrameRate(Aws::String &&value)
VideoParameters & WithAspectRatio(const Aws::String &value)
VideoParameters & WithWatermarks(const Aws::Vector< PresetWatermark > &value)
VideoParameters & WithPaddingPolicy(Aws::String &&value)
void SetWatermarks(Aws::Vector< PresetWatermark > &&value)
void SetCodecOptions(const Aws::Map< Aws::String, Aws::String > &value)
VideoParameters & WithMaxHeight(const Aws::String &value)
VideoParameters & WithMaxHeight(const char *value)
VideoParameters & WithCodec(Aws::String &&value)
VideoParameters & WithFrameRate(const Aws::String &value)
const Aws::String & GetDisplayAspectRatio() const
#define AWS_ELASTICTRANSCODER_API
VideoParameters & WithKeyframesMaxDist(const Aws::String &value)
VideoParameters & WithPaddingPolicy(const Aws::String &value)
VideoParameters & AddCodecOptions(const Aws::String &key, const Aws::String &value)
VideoParameters & WithDisplayAspectRatio(const Aws::String &value)
void SetSizingPolicy(const Aws::String &value)
VideoParameters & WithResolution(const Aws::String &value)
VideoParameters & WithFixedGOP(const Aws::String &value)
void SetMaxFrameRate(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< PresetWatermark > & GetWatermarks() const
VideoParameters & WithCodecOptions(const Aws::Map< Aws::String, Aws::String > &value)
VideoParameters & WithWatermarks(Aws::Vector< PresetWatermark > &&value)
void SetKeyframesMaxDist(const Aws::String &value)
VideoParameters & WithSizingPolicy(const Aws::String &value)
void SetWatermarks(const Aws::Vector< PresetWatermark > &value)
VideoParameters & WithMaxWidth(const char *value)
void SetCodecOptions(Aws::Map< Aws::String, Aws::String > &&value)
VideoParameters & WithCodec(const Aws::String &value)
VideoParameters & WithBitRate(Aws::String &&value)
VideoParameters & WithDisplayAspectRatio(const char *value)
VideoParameters & WithMaxWidth(Aws::String &&value)
VideoParameters & WithMaxHeight(Aws::String &&value)
JSON (JavaScript Object Notation).
VideoParameters & AddCodecOptions(Aws::String &&key, Aws::String &&value)
VideoParameters & WithFixedGOP(Aws::String &&value)