AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
67 inline int GetMaxRenditions() const{ return m_maxRenditions; }
68 inline bool MaxRenditionsHasBeenSet() const { return m_maxRenditionsHasBeenSet; }
69 inline void SetMaxRenditions(int value) { m_maxRenditionsHasBeenSet = true; m_maxRenditions = value; }
70 inline AutomatedAbrSettings& WithMaxRenditions(int value) { SetMaxRenditions(value); return *this;}
72
74
81 inline int GetMinAbrBitrate() const{ return m_minAbrBitrate; }
82 inline bool MinAbrBitrateHasBeenSet() const { return m_minAbrBitrateHasBeenSet; }
83 inline void SetMinAbrBitrate(int value) { m_minAbrBitrateHasBeenSet = true; m_minAbrBitrate = value; }
84 inline AutomatedAbrSettings& WithMinAbrBitrate(int value) { SetMinAbrBitrate(value); return *this;}
86
88
94 inline const Aws::Vector<AutomatedAbrRule>& GetRules() const{ return m_rules; }
95 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
96 inline void SetRules(const Aws::Vector<AutomatedAbrRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
97 inline void SetRules(Aws::Vector<AutomatedAbrRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
98 inline AutomatedAbrSettings& WithRules(const Aws::Vector<AutomatedAbrRule>& value) { SetRules(value); return *this;}
99 inline AutomatedAbrSettings& WithRules(Aws::Vector<AutomatedAbrRule>&& value) { SetRules(std::move(value)); return *this;}
100 inline AutomatedAbrSettings& AddRules(const AutomatedAbrRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
101 inline AutomatedAbrSettings& AddRules(AutomatedAbrRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
103 private:
104
105 int m_maxAbrBitrate;
106 bool m_maxAbrBitrateHasBeenSet = false;
107
108 int m_maxRenditions;
109 bool m_maxRenditionsHasBeenSet = false;
110
111 int m_minAbrBitrate;
112 bool m_minAbrBitrateHasBeenSet = false;
113
115 bool m_rulesHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace MediaConvert
120} // namespace Aws
AWS_MEDIACONVERT_API AutomatedAbrSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomatedAbrSettings & WithMaxRenditions(int value)
AutomatedAbrSettings & WithMaxAbrBitrate(int value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AutomatedAbrSettings & AddRules(AutomatedAbrRule &&value)
AutomatedAbrSettings & WithRules(const Aws::Vector< AutomatedAbrRule > &value)
AutomatedAbrSettings & WithMinAbrBitrate(int value)
AutomatedAbrSettings & AddRules(const AutomatedAbrRule &value)
AutomatedAbrSettings & WithRules(Aws::Vector< AutomatedAbrRule > &&value)
AWS_MEDIACONVERT_API AutomatedAbrSettings(Aws::Utils::Json::JsonView jsonValue)
void SetRules(Aws::Vector< AutomatedAbrRule > &&value)
void SetRules(const Aws::Vector< AutomatedAbrRule > &value)
const Aws::Vector< AutomatedAbrRule > & GetRules() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue