AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutomatedAbrSettings.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconvert/model/AutomatedAbrRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConvert
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_MEDIACONVERT_API AutomatedAbrSettings() = default;
39 AWS_MEDIACONVERT_API AutomatedAbrSettings(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
53 inline int GetMaxAbrBitrate() const { return m_maxAbrBitrate; }
54 inline bool MaxAbrBitrateHasBeenSet() const { return m_maxAbrBitrateHasBeenSet; }
55 inline void SetMaxAbrBitrate(int value) { m_maxAbrBitrateHasBeenSet = true; m_maxAbrBitrate = value; }
56 inline AutomatedAbrSettings& WithMaxAbrBitrate(int value) { SetMaxAbrBitrate(value); return *this;}
58
60
68 inline double GetMaxQualityLevel() const { return m_maxQualityLevel; }
69 inline bool MaxQualityLevelHasBeenSet() const { return m_maxQualityLevelHasBeenSet; }
70 inline void SetMaxQualityLevel(double value) { m_maxQualityLevelHasBeenSet = true; m_maxQualityLevel = value; }
71 inline AutomatedAbrSettings& WithMaxQualityLevel(double value) { SetMaxQualityLevel(value); return *this;}
73
75
82 inline int GetMaxRenditions() const { return m_maxRenditions; }
83 inline bool MaxRenditionsHasBeenSet() const { return m_maxRenditionsHasBeenSet; }
84 inline void SetMaxRenditions(int value) { m_maxRenditionsHasBeenSet = true; m_maxRenditions = value; }
85 inline AutomatedAbrSettings& WithMaxRenditions(int value) { SetMaxRenditions(value); return *this;}
87
89
96 inline int GetMinAbrBitrate() const { return m_minAbrBitrate; }
97 inline bool MinAbrBitrateHasBeenSet() const { return m_minAbrBitrateHasBeenSet; }
98 inline void SetMinAbrBitrate(int value) { m_minAbrBitrateHasBeenSet = true; m_minAbrBitrate = value; }
99 inline AutomatedAbrSettings& WithMinAbrBitrate(int value) { SetMinAbrBitrate(value); return *this;}
101
103
109 inline const Aws::Vector<AutomatedAbrRule>& GetRules() const { return m_rules; }
110 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
111 template<typename RulesT = Aws::Vector<AutomatedAbrRule>>
112 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
113 template<typename RulesT = Aws::Vector<AutomatedAbrRule>>
114 AutomatedAbrSettings& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
115 template<typename RulesT = AutomatedAbrRule>
116 AutomatedAbrSettings& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
118 private:
119
120 int m_maxAbrBitrate{0};
121 bool m_maxAbrBitrateHasBeenSet = false;
122
123 double m_maxQualityLevel{0.0};
124 bool m_maxQualityLevelHasBeenSet = false;
125
126 int m_maxRenditions{0};
127 bool m_maxRenditionsHasBeenSet = false;
128
129 int m_minAbrBitrate{0};
130 bool m_minAbrBitrateHasBeenSet = false;
131
133 bool m_rulesHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace MediaConvert
138} // namespace Aws
AWS_MEDIACONVERT_API AutomatedAbrSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomatedAbrSettings & WithMaxRenditions(int value)
AutomatedAbrSettings & WithMaxAbrBitrate(int value)
AutomatedAbrSettings & WithRules(RulesT &&value)
AutomatedAbrSettings & WithMaxQualityLevel(double value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedAbrSettings & WithMinAbrBitrate(int value)
AWS_MEDIACONVERT_API AutomatedAbrSettings()=default
AutomatedAbrSettings & AddRules(RulesT &&value)
AWS_MEDIACONVERT_API AutomatedAbrSettings(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AutomatedAbrRule > & GetRules() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue