AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AutomatedAbrSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
9#include <aws/mediaconvert/model/AutomatedAbrRule.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConvert {
21namespace Model {
22
32 public:
33 AWS_MEDIACONVERT_API AutomatedAbrSettings() = default;
34 AWS_MEDIACONVERT_API AutomatedAbrSettings(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
47 inline int GetMaxAbrBitrate() const { return m_maxAbrBitrate; }
48 inline bool MaxAbrBitrateHasBeenSet() const { return m_maxAbrBitrateHasBeenSet; }
49 inline void SetMaxAbrBitrate(int value) {
50 m_maxAbrBitrateHasBeenSet = true;
51 m_maxAbrBitrate = value;
52 }
54 SetMaxAbrBitrate(value);
55 return *this;
56 }
58
60
68 inline double GetMaxQualityLevel() const { return m_maxQualityLevel; }
69 inline bool MaxQualityLevelHasBeenSet() const { return m_maxQualityLevelHasBeenSet; }
70 inline void SetMaxQualityLevel(double value) {
71 m_maxQualityLevelHasBeenSet = true;
72 m_maxQualityLevel = value;
73 }
75 SetMaxQualityLevel(value);
76 return *this;
77 }
79
81
88 inline int GetMaxRenditions() const { return m_maxRenditions; }
89 inline bool MaxRenditionsHasBeenSet() const { return m_maxRenditionsHasBeenSet; }
90 inline void SetMaxRenditions(int value) {
91 m_maxRenditionsHasBeenSet = true;
92 m_maxRenditions = value;
93 }
95 SetMaxRenditions(value);
96 return *this;
97 }
99
101
108 inline int GetMinAbrBitrate() const { return m_minAbrBitrate; }
109 inline bool MinAbrBitrateHasBeenSet() const { return m_minAbrBitrateHasBeenSet; }
110 inline void SetMinAbrBitrate(int value) {
111 m_minAbrBitrateHasBeenSet = true;
112 m_minAbrBitrate = value;
113 }
115 SetMinAbrBitrate(value);
116 return *this;
117 }
119
121
127 inline const Aws::Vector<AutomatedAbrRule>& GetRules() const { return m_rules; }
128 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
129 template <typename RulesT = Aws::Vector<AutomatedAbrRule>>
130 void SetRules(RulesT&& value) {
131 m_rulesHasBeenSet = true;
132 m_rules = std::forward<RulesT>(value);
133 }
134 template <typename RulesT = Aws::Vector<AutomatedAbrRule>>
136 SetRules(std::forward<RulesT>(value));
137 return *this;
138 }
139 template <typename RulesT = AutomatedAbrRule>
141 m_rulesHasBeenSet = true;
142 m_rules.emplace_back(std::forward<RulesT>(value));
143 return *this;
144 }
146 private:
147 int m_maxAbrBitrate{0};
148
149 double m_maxQualityLevel{0.0};
150
151 int m_maxRenditions{0};
152
153 int m_minAbrBitrate{0};
154
156 bool m_maxAbrBitrateHasBeenSet = false;
157 bool m_maxQualityLevelHasBeenSet = false;
158 bool m_maxRenditionsHasBeenSet = false;
159 bool m_minAbrBitrateHasBeenSet = false;
160 bool m_rulesHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace MediaConvert
165} // 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