AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AutomatedAbrRule.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/AllowedRenditionSize.h>
10#include <aws/mediaconvert/model/ForceIncludeRenditionSize.h>
11#include <aws/mediaconvert/model/MinBottomRenditionSize.h>
12#include <aws/mediaconvert/model/MinTopRenditionSize.h>
13#include <aws/mediaconvert/model/RuleType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MediaConvert {
25namespace Model {
26
34 public:
35 AWS_MEDIACONVERT_API AutomatedAbrRule() = default;
36 AWS_MEDIACONVERT_API AutomatedAbrRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDIACONVERT_API AutomatedAbrRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<AllowedRenditionSize>& GetAllowedRenditions() const { return m_allowedRenditions; }
46 inline bool AllowedRenditionsHasBeenSet() const { return m_allowedRenditionsHasBeenSet; }
47 template <typename AllowedRenditionsT = Aws::Vector<AllowedRenditionSize>>
48 void SetAllowedRenditions(AllowedRenditionsT&& value) {
49 m_allowedRenditionsHasBeenSet = true;
50 m_allowedRenditions = std::forward<AllowedRenditionsT>(value);
51 }
52 template <typename AllowedRenditionsT = Aws::Vector<AllowedRenditionSize>>
53 AutomatedAbrRule& WithAllowedRenditions(AllowedRenditionsT&& value) {
54 SetAllowedRenditions(std::forward<AllowedRenditionsT>(value));
55 return *this;
56 }
57 template <typename AllowedRenditionsT = AllowedRenditionSize>
58 AutomatedAbrRule& AddAllowedRenditions(AllowedRenditionsT&& value) {
59 m_allowedRenditionsHasBeenSet = true;
60 m_allowedRenditions.emplace_back(std::forward<AllowedRenditionsT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<ForceIncludeRenditionSize>& GetForceIncludeRenditions() const { return m_forceIncludeRenditions; }
71 inline bool ForceIncludeRenditionsHasBeenSet() const { return m_forceIncludeRenditionsHasBeenSet; }
72 template <typename ForceIncludeRenditionsT = Aws::Vector<ForceIncludeRenditionSize>>
73 void SetForceIncludeRenditions(ForceIncludeRenditionsT&& value) {
74 m_forceIncludeRenditionsHasBeenSet = true;
75 m_forceIncludeRenditions = std::forward<ForceIncludeRenditionsT>(value);
76 }
77 template <typename ForceIncludeRenditionsT = Aws::Vector<ForceIncludeRenditionSize>>
78 AutomatedAbrRule& WithForceIncludeRenditions(ForceIncludeRenditionsT&& value) {
79 SetForceIncludeRenditions(std::forward<ForceIncludeRenditionsT>(value));
80 return *this;
81 }
82 template <typename ForceIncludeRenditionsT = ForceIncludeRenditionSize>
83 AutomatedAbrRule& AddForceIncludeRenditions(ForceIncludeRenditionsT&& value) {
84 m_forceIncludeRenditionsHasBeenSet = true;
85 m_forceIncludeRenditions.emplace_back(std::forward<ForceIncludeRenditionsT>(value));
86 return *this;
87 }
89
91
100 inline const MinBottomRenditionSize& GetMinBottomRenditionSize() const { return m_minBottomRenditionSize; }
101 inline bool MinBottomRenditionSizeHasBeenSet() const { return m_minBottomRenditionSizeHasBeenSet; }
102 template <typename MinBottomRenditionSizeT = MinBottomRenditionSize>
103 void SetMinBottomRenditionSize(MinBottomRenditionSizeT&& value) {
104 m_minBottomRenditionSizeHasBeenSet = true;
105 m_minBottomRenditionSize = std::forward<MinBottomRenditionSizeT>(value);
106 }
107 template <typename MinBottomRenditionSizeT = MinBottomRenditionSize>
108 AutomatedAbrRule& WithMinBottomRenditionSize(MinBottomRenditionSizeT&& value) {
109 SetMinBottomRenditionSize(std::forward<MinBottomRenditionSizeT>(value));
110 return *this;
111 }
113
115
124 inline const MinTopRenditionSize& GetMinTopRenditionSize() const { return m_minTopRenditionSize; }
125 inline bool MinTopRenditionSizeHasBeenSet() const { return m_minTopRenditionSizeHasBeenSet; }
126 template <typename MinTopRenditionSizeT = MinTopRenditionSize>
127 void SetMinTopRenditionSize(MinTopRenditionSizeT&& value) {
128 m_minTopRenditionSizeHasBeenSet = true;
129 m_minTopRenditionSize = std::forward<MinTopRenditionSizeT>(value);
130 }
131 template <typename MinTopRenditionSizeT = MinTopRenditionSize>
132 AutomatedAbrRule& WithMinTopRenditionSize(MinTopRenditionSizeT&& value) {
133 SetMinTopRenditionSize(std::forward<MinTopRenditionSizeT>(value));
134 return *this;
135 }
137
139
173 inline RuleType GetType() const { return m_type; }
174 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
175 inline void SetType(RuleType value) {
176 m_typeHasBeenSet = true;
177 m_type = value;
178 }
180 SetType(value);
181 return *this;
182 }
184 private:
185 Aws::Vector<AllowedRenditionSize> m_allowedRenditions;
186
187 Aws::Vector<ForceIncludeRenditionSize> m_forceIncludeRenditions;
188
189 MinBottomRenditionSize m_minBottomRenditionSize;
190
191 MinTopRenditionSize m_minTopRenditionSize;
192
194 bool m_allowedRenditionsHasBeenSet = false;
195 bool m_forceIncludeRenditionsHasBeenSet = false;
196 bool m_minBottomRenditionSizeHasBeenSet = false;
197 bool m_minTopRenditionSizeHasBeenSet = false;
198 bool m_typeHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace MediaConvert
203} // namespace Aws
AutomatedAbrRule & AddAllowedRenditions(AllowedRenditionsT &&value)
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ForceIncludeRenditionSize > & GetForceIncludeRenditions() const
AWS_MEDIACONVERT_API AutomatedAbrRule()=default
AutomatedAbrRule & WithAllowedRenditions(AllowedRenditionsT &&value)
void SetMinBottomRenditionSize(MinBottomRenditionSizeT &&value)
void SetAllowedRenditions(AllowedRenditionsT &&value)
AWS_MEDIACONVERT_API AutomatedAbrRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomatedAbrRule & WithType(RuleType value)
void SetMinTopRenditionSize(MinTopRenditionSizeT &&value)
AutomatedAbrRule & WithMinBottomRenditionSize(MinBottomRenditionSizeT &&value)
void SetForceIncludeRenditions(ForceIncludeRenditionsT &&value)
const MinTopRenditionSize & GetMinTopRenditionSize() const
AutomatedAbrRule & WithMinTopRenditionSize(MinTopRenditionSizeT &&value)
const MinBottomRenditionSize & GetMinBottomRenditionSize() const
AutomatedAbrRule & WithForceIncludeRenditions(ForceIncludeRenditionsT &&value)
const Aws::Vector< AllowedRenditionSize > & GetAllowedRenditions() const
AutomatedAbrRule & AddForceIncludeRenditions(ForceIncludeRenditionsT &&value)
AWS_MEDIACONVERT_API AutomatedAbrRule(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue