AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutomatedAbrRule.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/MinBottomRenditionSize.h>
10#include <aws/mediaconvert/model/MinTopRenditionSize.h>
11#include <aws/mediaconvert/model/RuleType.h>
12#include <aws/mediaconvert/model/AllowedRenditionSize.h>
13#include <aws/mediaconvert/model/ForceIncludeRenditionSize.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaConvert
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_MEDIACONVERT_API AutomatedAbrRule() = default;
41 AWS_MEDIACONVERT_API AutomatedAbrRule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIACONVERT_API AutomatedAbrRule& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<AllowedRenditionSize>& GetAllowedRenditions() const { return m_allowedRenditions; }
52 inline bool AllowedRenditionsHasBeenSet() const { return m_allowedRenditionsHasBeenSet; }
53 template<typename AllowedRenditionsT = Aws::Vector<AllowedRenditionSize>>
54 void SetAllowedRenditions(AllowedRenditionsT&& value) { m_allowedRenditionsHasBeenSet = true; m_allowedRenditions = std::forward<AllowedRenditionsT>(value); }
55 template<typename AllowedRenditionsT = Aws::Vector<AllowedRenditionSize>>
56 AutomatedAbrRule& WithAllowedRenditions(AllowedRenditionsT&& value) { SetAllowedRenditions(std::forward<AllowedRenditionsT>(value)); return *this;}
57 template<typename AllowedRenditionsT = AllowedRenditionSize>
58 AutomatedAbrRule& AddAllowedRenditions(AllowedRenditionsT&& value) { m_allowedRenditionsHasBeenSet = true; m_allowedRenditions.emplace_back(std::forward<AllowedRenditionsT>(value)); return *this; }
60
62
66 inline const Aws::Vector<ForceIncludeRenditionSize>& GetForceIncludeRenditions() const { return m_forceIncludeRenditions; }
67 inline bool ForceIncludeRenditionsHasBeenSet() const { return m_forceIncludeRenditionsHasBeenSet; }
68 template<typename ForceIncludeRenditionsT = Aws::Vector<ForceIncludeRenditionSize>>
69 void SetForceIncludeRenditions(ForceIncludeRenditionsT&& value) { m_forceIncludeRenditionsHasBeenSet = true; m_forceIncludeRenditions = std::forward<ForceIncludeRenditionsT>(value); }
70 template<typename ForceIncludeRenditionsT = Aws::Vector<ForceIncludeRenditionSize>>
71 AutomatedAbrRule& WithForceIncludeRenditions(ForceIncludeRenditionsT&& value) { SetForceIncludeRenditions(std::forward<ForceIncludeRenditionsT>(value)); return *this;}
72 template<typename ForceIncludeRenditionsT = ForceIncludeRenditionSize>
73 AutomatedAbrRule& AddForceIncludeRenditions(ForceIncludeRenditionsT&& value) { m_forceIncludeRenditionsHasBeenSet = true; m_forceIncludeRenditions.emplace_back(std::forward<ForceIncludeRenditionsT>(value)); return *this; }
75
77
86 inline const MinBottomRenditionSize& GetMinBottomRenditionSize() const { return m_minBottomRenditionSize; }
87 inline bool MinBottomRenditionSizeHasBeenSet() const { return m_minBottomRenditionSizeHasBeenSet; }
88 template<typename MinBottomRenditionSizeT = MinBottomRenditionSize>
89 void SetMinBottomRenditionSize(MinBottomRenditionSizeT&& value) { m_minBottomRenditionSizeHasBeenSet = true; m_minBottomRenditionSize = std::forward<MinBottomRenditionSizeT>(value); }
90 template<typename MinBottomRenditionSizeT = MinBottomRenditionSize>
91 AutomatedAbrRule& WithMinBottomRenditionSize(MinBottomRenditionSizeT&& value) { SetMinBottomRenditionSize(std::forward<MinBottomRenditionSizeT>(value)); return *this;}
93
95
104 inline const MinTopRenditionSize& GetMinTopRenditionSize() const { return m_minTopRenditionSize; }
105 inline bool MinTopRenditionSizeHasBeenSet() const { return m_minTopRenditionSizeHasBeenSet; }
106 template<typename MinTopRenditionSizeT = MinTopRenditionSize>
107 void SetMinTopRenditionSize(MinTopRenditionSizeT&& value) { m_minTopRenditionSizeHasBeenSet = true; m_minTopRenditionSize = std::forward<MinTopRenditionSizeT>(value); }
108 template<typename MinTopRenditionSizeT = MinTopRenditionSize>
109 AutomatedAbrRule& WithMinTopRenditionSize(MinTopRenditionSizeT&& value) { SetMinTopRenditionSize(std::forward<MinTopRenditionSizeT>(value)); return *this;}
111
113
147 inline RuleType GetType() const { return m_type; }
148 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
149 inline void SetType(RuleType value) { m_typeHasBeenSet = true; m_type = value; }
150 inline AutomatedAbrRule& WithType(RuleType value) { SetType(value); return *this;}
152 private:
153
154 Aws::Vector<AllowedRenditionSize> m_allowedRenditions;
155 bool m_allowedRenditionsHasBeenSet = false;
156
157 Aws::Vector<ForceIncludeRenditionSize> m_forceIncludeRenditions;
158 bool m_forceIncludeRenditionsHasBeenSet = false;
159
160 MinBottomRenditionSize m_minBottomRenditionSize;
161 bool m_minBottomRenditionSizeHasBeenSet = false;
162
163 MinTopRenditionSize m_minTopRenditionSize;
164 bool m_minTopRenditionSizeHasBeenSet = false;
165
167 bool m_typeHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace MediaConvert
172} // 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