AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
WeightedBalancedSchedulingConfiguration.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/SchedulingMaxPriorityOverride.h>
9#include <aws/deadline/model/SchedulingMinPriorityOverride.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
35 public:
36 AWS_DEADLINE_API WeightedBalancedSchedulingConfiguration() = default;
39 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline double GetPriorityWeight() const { return m_priorityWeight; }
48 inline bool PriorityWeightHasBeenSet() const { return m_priorityWeightHasBeenSet; }
49 inline void SetPriorityWeight(double value) {
50 m_priorityWeightHasBeenSet = true;
51 m_priorityWeight = value;
52 }
54 SetPriorityWeight(value);
55 return *this;
56 }
58
60
65 inline double GetErrorWeight() const { return m_errorWeight; }
66 inline bool ErrorWeightHasBeenSet() const { return m_errorWeightHasBeenSet; }
67 inline void SetErrorWeight(double value) {
68 m_errorWeightHasBeenSet = true;
69 m_errorWeight = value;
70 }
72 SetErrorWeight(value);
73 return *this;
74 }
76
78
83 inline double GetSubmissionTimeWeight() const { return m_submissionTimeWeight; }
84 inline bool SubmissionTimeWeightHasBeenSet() const { return m_submissionTimeWeightHasBeenSet; }
85 inline void SetSubmissionTimeWeight(double value) {
86 m_submissionTimeWeightHasBeenSet = true;
87 m_submissionTimeWeight = value;
88 }
91 return *this;
92 }
94
96
102 inline double GetRenderingTaskWeight() const { return m_renderingTaskWeight; }
103 inline bool RenderingTaskWeightHasBeenSet() const { return m_renderingTaskWeightHasBeenSet; }
104 inline void SetRenderingTaskWeight(double value) {
105 m_renderingTaskWeightHasBeenSet = true;
106 m_renderingTaskWeight = value;
107 }
110 return *this;
111 }
113
115
123 inline int GetRenderingTaskBuffer() const { return m_renderingTaskBuffer; }
124 inline bool RenderingTaskBufferHasBeenSet() const { return m_renderingTaskBufferHasBeenSet; }
125 inline void SetRenderingTaskBuffer(int value) {
126 m_renderingTaskBufferHasBeenSet = true;
127 m_renderingTaskBuffer = value;
128 }
131 return *this;
132 }
134
136
142 inline const SchedulingMaxPriorityOverride& GetMaxPriorityOverride() const { return m_maxPriorityOverride; }
143 inline bool MaxPriorityOverrideHasBeenSet() const { return m_maxPriorityOverrideHasBeenSet; }
144 template <typename MaxPriorityOverrideT = SchedulingMaxPriorityOverride>
145 void SetMaxPriorityOverride(MaxPriorityOverrideT&& value) {
146 m_maxPriorityOverrideHasBeenSet = true;
147 m_maxPriorityOverride = std::forward<MaxPriorityOverrideT>(value);
148 }
149 template <typename MaxPriorityOverrideT = SchedulingMaxPriorityOverride>
151 SetMaxPriorityOverride(std::forward<MaxPriorityOverrideT>(value));
152 return *this;
153 }
155
157
163 inline const SchedulingMinPriorityOverride& GetMinPriorityOverride() const { return m_minPriorityOverride; }
164 inline bool MinPriorityOverrideHasBeenSet() const { return m_minPriorityOverrideHasBeenSet; }
165 template <typename MinPriorityOverrideT = SchedulingMinPriorityOverride>
166 void SetMinPriorityOverride(MinPriorityOverrideT&& value) {
167 m_minPriorityOverrideHasBeenSet = true;
168 m_minPriorityOverride = std::forward<MinPriorityOverrideT>(value);
169 }
170 template <typename MinPriorityOverrideT = SchedulingMinPriorityOverride>
172 SetMinPriorityOverride(std::forward<MinPriorityOverrideT>(value));
173 return *this;
174 }
176 private:
177 double m_priorityWeight{0.0};
178
179 double m_errorWeight{0.0};
180
181 double m_submissionTimeWeight{0.0};
182
183 double m_renderingTaskWeight{0.0};
184
185 int m_renderingTaskBuffer{0};
186
187 SchedulingMaxPriorityOverride m_maxPriorityOverride;
188
189 SchedulingMinPriorityOverride m_minPriorityOverride;
190 bool m_priorityWeightHasBeenSet = false;
191 bool m_errorWeightHasBeenSet = false;
192 bool m_submissionTimeWeightHasBeenSet = false;
193 bool m_renderingTaskWeightHasBeenSet = false;
194 bool m_renderingTaskBufferHasBeenSet = false;
195 bool m_maxPriorityOverrideHasBeenSet = false;
196 bool m_minPriorityOverrideHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace deadline
201} // namespace Aws
AWS_DEADLINE_API WeightedBalancedSchedulingConfiguration(Aws::Utils::Json::JsonView jsonValue)
WeightedBalancedSchedulingConfiguration & WithRenderingTaskWeight(double value)
WeightedBalancedSchedulingConfiguration & WithMaxPriorityOverride(MaxPriorityOverrideT &&value)
WeightedBalancedSchedulingConfiguration & WithSubmissionTimeWeight(double value)
WeightedBalancedSchedulingConfiguration & WithPriorityWeight(double value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
WeightedBalancedSchedulingConfiguration & WithMinPriorityOverride(MinPriorityOverrideT &&value)
AWS_DEADLINE_API WeightedBalancedSchedulingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
WeightedBalancedSchedulingConfiguration & WithErrorWeight(double value)
Aws::Utils::Json::JsonValue JsonValue