AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
Queue.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
11#include <aws/mediaconvert/model/PricingPlan.h>
12#include <aws/mediaconvert/model/QueueStatus.h>
13#include <aws/mediaconvert/model/ReservationPlan.h>
14#include <aws/mediaconvert/model/ServiceOverride.h>
15#include <aws/mediaconvert/model/Type.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MediaConvert {
27namespace Model {
28
39class Queue {
40 public:
41 AWS_MEDIACONVERT_API Queue() = default;
42 AWS_MEDIACONVERT_API Queue(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIACONVERT_API Queue& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template <typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) {
54 m_arnHasBeenSet = true;
55 m_arn = std::forward<ArnT>(value);
56 }
57 template <typename ArnT = Aws::String>
58 Queue& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
68 inline int GetConcurrentJobs() const { return m_concurrentJobs; }
69 inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; }
70 inline void SetConcurrentJobs(int value) {
71 m_concurrentJobsHasBeenSet = true;
72 m_concurrentJobs = value;
73 }
74 inline Queue& WithConcurrentJobs(int value) {
75 SetConcurrentJobs(value);
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
85 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
86 template <typename CreatedAtT = Aws::Utils::DateTime>
87 void SetCreatedAt(CreatedAtT&& value) {
88 m_createdAtHasBeenSet = true;
89 m_createdAt = std::forward<CreatedAtT>(value);
90 }
91 template <typename CreatedAtT = Aws::Utils::DateTime>
92 Queue& WithCreatedAt(CreatedAtT&& value) {
93 SetCreatedAt(std::forward<CreatedAtT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
110 Queue& WithDescription(DescriptionT&& value) {
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
121 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
122 template <typename LastUpdatedT = Aws::Utils::DateTime>
123 void SetLastUpdated(LastUpdatedT&& value) {
124 m_lastUpdatedHasBeenSet = true;
125 m_lastUpdated = std::forward<LastUpdatedT>(value);
126 }
127 template <typename LastUpdatedT = Aws::Utils::DateTime>
128 Queue& WithLastUpdated(LastUpdatedT&& value) {
129 SetLastUpdated(std::forward<LastUpdatedT>(value));
130 return *this;
131 }
133
135
139 inline int GetMaximumConcurrentFeeds() const { return m_maximumConcurrentFeeds; }
140 inline bool MaximumConcurrentFeedsHasBeenSet() const { return m_maximumConcurrentFeedsHasBeenSet; }
141 inline void SetMaximumConcurrentFeeds(int value) {
142 m_maximumConcurrentFeedsHasBeenSet = true;
143 m_maximumConcurrentFeeds = value;
144 }
147 return *this;
148 }
150
152
156 inline const Aws::String& GetName() const { return m_name; }
157 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
158 template <typename NameT = Aws::String>
159 void SetName(NameT&& value) {
160 m_nameHasBeenSet = true;
161 m_name = std::forward<NameT>(value);
162 }
163 template <typename NameT = Aws::String>
164 Queue& WithName(NameT&& value) {
165 SetName(std::forward<NameT>(value));
166 return *this;
167 }
169
171
177 inline PricingPlan GetPricingPlan() const { return m_pricingPlan; }
178 inline bool PricingPlanHasBeenSet() const { return m_pricingPlanHasBeenSet; }
179 inline void SetPricingPlan(PricingPlan value) {
180 m_pricingPlanHasBeenSet = true;
181 m_pricingPlan = value;
182 }
184 SetPricingPlan(value);
185 return *this;
186 }
188
190
193 inline int GetProgressingJobsCount() const { return m_progressingJobsCount; }
194 inline bool ProgressingJobsCountHasBeenSet() const { return m_progressingJobsCountHasBeenSet; }
195 inline void SetProgressingJobsCount(int value) {
196 m_progressingJobsCountHasBeenSet = true;
197 m_progressingJobsCount = value;
198 }
199 inline Queue& WithProgressingJobsCount(int value) {
201 return *this;
202 }
204
206
210 inline const ReservationPlan& GetReservationPlan() const { return m_reservationPlan; }
211 inline bool ReservationPlanHasBeenSet() const { return m_reservationPlanHasBeenSet; }
212 template <typename ReservationPlanT = ReservationPlan>
213 void SetReservationPlan(ReservationPlanT&& value) {
214 m_reservationPlanHasBeenSet = true;
215 m_reservationPlan = std::forward<ReservationPlanT>(value);
216 }
217 template <typename ReservationPlanT = ReservationPlan>
218 Queue& WithReservationPlan(ReservationPlanT&& value) {
219 SetReservationPlan(std::forward<ReservationPlanT>(value));
220 return *this;
221 }
223
225
230 inline const Aws::Vector<ServiceOverride>& GetServiceOverrides() const { return m_serviceOverrides; }
231 inline bool ServiceOverridesHasBeenSet() const { return m_serviceOverridesHasBeenSet; }
232 template <typename ServiceOverridesT = Aws::Vector<ServiceOverride>>
233 void SetServiceOverrides(ServiceOverridesT&& value) {
234 m_serviceOverridesHasBeenSet = true;
235 m_serviceOverrides = std::forward<ServiceOverridesT>(value);
236 }
237 template <typename ServiceOverridesT = Aws::Vector<ServiceOverride>>
238 Queue& WithServiceOverrides(ServiceOverridesT&& value) {
239 SetServiceOverrides(std::forward<ServiceOverridesT>(value));
240 return *this;
241 }
242 template <typename ServiceOverridesT = ServiceOverride>
243 Queue& AddServiceOverrides(ServiceOverridesT&& value) {
244 m_serviceOverridesHasBeenSet = true;
245 m_serviceOverrides.emplace_back(std::forward<ServiceOverridesT>(value));
246 return *this;
247 }
249
251
256 inline QueueStatus GetStatus() const { return m_status; }
257 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
258 inline void SetStatus(QueueStatus value) {
259 m_statusHasBeenSet = true;
260 m_status = value;
261 }
262 inline Queue& WithStatus(QueueStatus value) {
263 SetStatus(value);
264 return *this;
265 }
267
269
272 inline int GetSubmittedJobsCount() const { return m_submittedJobsCount; }
273 inline bool SubmittedJobsCountHasBeenSet() const { return m_submittedJobsCountHasBeenSet; }
274 inline void SetSubmittedJobsCount(int value) {
275 m_submittedJobsCountHasBeenSet = true;
276 m_submittedJobsCount = value;
277 }
278 inline Queue& WithSubmittedJobsCount(int value) {
280 return *this;
281 }
283
285
290 inline Type GetType() const { return m_type; }
291 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
292 inline void SetType(Type value) {
293 m_typeHasBeenSet = true;
294 m_type = value;
295 }
296 inline Queue& WithType(Type value) {
297 SetType(value);
298 return *this;
299 }
301 private:
302 Aws::String m_arn;
303
304 int m_concurrentJobs{0};
305
306 Aws::Utils::DateTime m_createdAt{};
307
308 Aws::String m_description;
309
310 Aws::Utils::DateTime m_lastUpdated{};
311
312 int m_maximumConcurrentFeeds{0};
313
314 Aws::String m_name;
315
316 PricingPlan m_pricingPlan{PricingPlan::NOT_SET};
317
318 int m_progressingJobsCount{0};
319
320 ReservationPlan m_reservationPlan;
321
322 Aws::Vector<ServiceOverride> m_serviceOverrides;
323
325
326 int m_submittedJobsCount{0};
327
328 Type m_type{Type::NOT_SET};
329 bool m_arnHasBeenSet = false;
330 bool m_concurrentJobsHasBeenSet = false;
331 bool m_createdAtHasBeenSet = false;
332 bool m_descriptionHasBeenSet = false;
333 bool m_lastUpdatedHasBeenSet = false;
334 bool m_maximumConcurrentFeedsHasBeenSet = false;
335 bool m_nameHasBeenSet = false;
336 bool m_pricingPlanHasBeenSet = false;
337 bool m_progressingJobsCountHasBeenSet = false;
338 bool m_reservationPlanHasBeenSet = false;
339 bool m_serviceOverridesHasBeenSet = false;
340 bool m_statusHasBeenSet = false;
341 bool m_submittedJobsCountHasBeenSet = false;
342 bool m_typeHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace MediaConvert
347} // namespace Aws
Queue & WithType(Type value)
Definition Queue.h:296
QueueStatus GetStatus() const
Definition Queue.h:256
void SetProgressingJobsCount(int value)
Definition Queue.h:195
void SetCreatedAt(CreatedAtT &&value)
Definition Queue.h:87
Queue & WithDescription(DescriptionT &&value)
Definition Queue.h:110
int GetSubmittedJobsCount() const
Definition Queue.h:272
void SetConcurrentJobs(int value)
Definition Queue.h:70
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Queue.h:84
int GetConcurrentJobs() const
Definition Queue.h:68
int GetMaximumConcurrentFeeds() const
Definition Queue.h:139
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONVERT_API Queue & operator=(Aws::Utils::Json::JsonView jsonValue)
Queue & WithProgressingJobsCount(int value)
Definition Queue.h:199
bool DescriptionHasBeenSet() const
Definition Queue.h:103
bool MaximumConcurrentFeedsHasBeenSet() const
Definition Queue.h:140
void SetSubmittedJobsCount(int value)
Definition Queue.h:274
Queue & WithReservationPlan(ReservationPlanT &&value)
Definition Queue.h:218
AWS_MEDIACONVERT_API Queue(Aws::Utils::Json::JsonView jsonValue)
const ReservationPlan & GetReservationPlan() const
Definition Queue.h:210
Queue & WithLastUpdated(LastUpdatedT &&value)
Definition Queue.h:128
bool SubmittedJobsCountHasBeenSet() const
Definition Queue.h:273
bool ConcurrentJobsHasBeenSet() const
Definition Queue.h:69
bool ServiceOverridesHasBeenSet() const
Definition Queue.h:231
Queue & WithConcurrentJobs(int value)
Definition Queue.h:74
AWS_MEDIACONVERT_API Queue()=default
void SetMaximumConcurrentFeeds(int value)
Definition Queue.h:141
bool ProgressingJobsCountHasBeenSet() const
Definition Queue.h:194
void SetType(Type value)
Definition Queue.h:292
bool CreatedAtHasBeenSet() const
Definition Queue.h:85
void SetArn(ArnT &&value)
Definition Queue.h:53
void SetReservationPlan(ReservationPlanT &&value)
Definition Queue.h:213
Queue & WithCreatedAt(CreatedAtT &&value)
Definition Queue.h:92
const Aws::Utils::DateTime & GetLastUpdated() const
Definition Queue.h:120
bool LastUpdatedHasBeenSet() const
Definition Queue.h:121
void SetPricingPlan(PricingPlan value)
Definition Queue.h:179
bool StatusHasBeenSet() const
Definition Queue.h:257
Queue & AddServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:243
PricingPlan GetPricingPlan() const
Definition Queue.h:177
const Aws::String & GetArn() const
Definition Queue.h:50
Queue & WithServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:238
const Aws::Vector< ServiceOverride > & GetServiceOverrides() const
Definition Queue.h:230
Queue & WithStatus(QueueStatus value)
Definition Queue.h:262
int GetProgressingJobsCount() const
Definition Queue.h:193
void SetLastUpdated(LastUpdatedT &&value)
Definition Queue.h:123
Queue & WithName(NameT &&value)
Definition Queue.h:164
Queue & WithArn(ArnT &&value)
Definition Queue.h:58
const Aws::String & GetDescription() const
Definition Queue.h:102
void SetServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:233
const Aws::String & GetName() const
Definition Queue.h:156
Queue & WithMaximumConcurrentFeeds(int value)
Definition Queue.h:145
void SetDescription(DescriptionT &&value)
Definition Queue.h:105
Queue & WithSubmittedJobsCount(int value)
Definition Queue.h:278
bool PricingPlanHasBeenSet() const
Definition Queue.h:178
Queue & WithPricingPlan(PricingPlan value)
Definition Queue.h:183
void SetStatus(QueueStatus value)
Definition Queue.h:258
bool ReservationPlanHasBeenSet() const
Definition Queue.h:211
void SetName(NameT &&value)
Definition Queue.h:159
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue