AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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 const Aws::String& GetName() const { return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 template <typename NameT = Aws::String>
142 void SetName(NameT&& value) {
143 m_nameHasBeenSet = true;
144 m_name = std::forward<NameT>(value);
145 }
146 template <typename NameT = Aws::String>
147 Queue& WithName(NameT&& value) {
148 SetName(std::forward<NameT>(value));
149 return *this;
150 }
152
154
160 inline PricingPlan GetPricingPlan() const { return m_pricingPlan; }
161 inline bool PricingPlanHasBeenSet() const { return m_pricingPlanHasBeenSet; }
162 inline void SetPricingPlan(PricingPlan value) {
163 m_pricingPlanHasBeenSet = true;
164 m_pricingPlan = value;
165 }
167 SetPricingPlan(value);
168 return *this;
169 }
171
173
176 inline int GetProgressingJobsCount() const { return m_progressingJobsCount; }
177 inline bool ProgressingJobsCountHasBeenSet() const { return m_progressingJobsCountHasBeenSet; }
178 inline void SetProgressingJobsCount(int value) {
179 m_progressingJobsCountHasBeenSet = true;
180 m_progressingJobsCount = value;
181 }
182 inline Queue& WithProgressingJobsCount(int value) {
184 return *this;
185 }
187
189
193 inline const ReservationPlan& GetReservationPlan() const { return m_reservationPlan; }
194 inline bool ReservationPlanHasBeenSet() const { return m_reservationPlanHasBeenSet; }
195 template <typename ReservationPlanT = ReservationPlan>
196 void SetReservationPlan(ReservationPlanT&& value) {
197 m_reservationPlanHasBeenSet = true;
198 m_reservationPlan = std::forward<ReservationPlanT>(value);
199 }
200 template <typename ReservationPlanT = ReservationPlan>
201 Queue& WithReservationPlan(ReservationPlanT&& value) {
202 SetReservationPlan(std::forward<ReservationPlanT>(value));
203 return *this;
204 }
206
208
213 inline const Aws::Vector<ServiceOverride>& GetServiceOverrides() const { return m_serviceOverrides; }
214 inline bool ServiceOverridesHasBeenSet() const { return m_serviceOverridesHasBeenSet; }
215 template <typename ServiceOverridesT = Aws::Vector<ServiceOverride>>
216 void SetServiceOverrides(ServiceOverridesT&& value) {
217 m_serviceOverridesHasBeenSet = true;
218 m_serviceOverrides = std::forward<ServiceOverridesT>(value);
219 }
220 template <typename ServiceOverridesT = Aws::Vector<ServiceOverride>>
221 Queue& WithServiceOverrides(ServiceOverridesT&& value) {
222 SetServiceOverrides(std::forward<ServiceOverridesT>(value));
223 return *this;
224 }
225 template <typename ServiceOverridesT = ServiceOverride>
226 Queue& AddServiceOverrides(ServiceOverridesT&& value) {
227 m_serviceOverridesHasBeenSet = true;
228 m_serviceOverrides.emplace_back(std::forward<ServiceOverridesT>(value));
229 return *this;
230 }
232
234
239 inline QueueStatus GetStatus() const { return m_status; }
240 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
241 inline void SetStatus(QueueStatus value) {
242 m_statusHasBeenSet = true;
243 m_status = value;
244 }
245 inline Queue& WithStatus(QueueStatus value) {
246 SetStatus(value);
247 return *this;
248 }
250
252
255 inline int GetSubmittedJobsCount() const { return m_submittedJobsCount; }
256 inline bool SubmittedJobsCountHasBeenSet() const { return m_submittedJobsCountHasBeenSet; }
257 inline void SetSubmittedJobsCount(int value) {
258 m_submittedJobsCountHasBeenSet = true;
259 m_submittedJobsCount = value;
260 }
261 inline Queue& WithSubmittedJobsCount(int value) {
263 return *this;
264 }
266
268
273 inline Type GetType() const { return m_type; }
274 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
275 inline void SetType(Type value) {
276 m_typeHasBeenSet = true;
277 m_type = value;
278 }
279 inline Queue& WithType(Type value) {
280 SetType(value);
281 return *this;
282 }
284 private:
285 Aws::String m_arn;
286
287 int m_concurrentJobs{0};
288
289 Aws::Utils::DateTime m_createdAt{};
290
291 Aws::String m_description;
292
293 Aws::Utils::DateTime m_lastUpdated{};
294
295 Aws::String m_name;
296
297 PricingPlan m_pricingPlan{PricingPlan::NOT_SET};
298
299 int m_progressingJobsCount{0};
300
301 ReservationPlan m_reservationPlan;
302
303 Aws::Vector<ServiceOverride> m_serviceOverrides;
304
306
307 int m_submittedJobsCount{0};
308
309 Type m_type{Type::NOT_SET};
310 bool m_arnHasBeenSet = false;
311 bool m_concurrentJobsHasBeenSet = false;
312 bool m_createdAtHasBeenSet = false;
313 bool m_descriptionHasBeenSet = false;
314 bool m_lastUpdatedHasBeenSet = false;
315 bool m_nameHasBeenSet = false;
316 bool m_pricingPlanHasBeenSet = false;
317 bool m_progressingJobsCountHasBeenSet = false;
318 bool m_reservationPlanHasBeenSet = false;
319 bool m_serviceOverridesHasBeenSet = false;
320 bool m_statusHasBeenSet = false;
321 bool m_submittedJobsCountHasBeenSet = false;
322 bool m_typeHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace MediaConvert
327} // namespace Aws
Queue & WithType(Type value)
Definition Queue.h:279
QueueStatus GetStatus() const
Definition Queue.h:239
void SetProgressingJobsCount(int value)
Definition Queue.h:178
void SetCreatedAt(CreatedAtT &&value)
Definition Queue.h:87
Queue & WithDescription(DescriptionT &&value)
Definition Queue.h:110
int GetSubmittedJobsCount() const
Definition Queue.h:255
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
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:182
bool DescriptionHasBeenSet() const
Definition Queue.h:103
void SetSubmittedJobsCount(int value)
Definition Queue.h:257
Queue & WithReservationPlan(ReservationPlanT &&value)
Definition Queue.h:201
AWS_MEDIACONVERT_API Queue(Aws::Utils::Json::JsonView jsonValue)
const ReservationPlan & GetReservationPlan() const
Definition Queue.h:193
Queue & WithLastUpdated(LastUpdatedT &&value)
Definition Queue.h:128
bool SubmittedJobsCountHasBeenSet() const
Definition Queue.h:256
bool ConcurrentJobsHasBeenSet() const
Definition Queue.h:69
bool ServiceOverridesHasBeenSet() const
Definition Queue.h:214
Queue & WithConcurrentJobs(int value)
Definition Queue.h:74
AWS_MEDIACONVERT_API Queue()=default
bool ProgressingJobsCountHasBeenSet() const
Definition Queue.h:177
void SetType(Type value)
Definition Queue.h:275
bool CreatedAtHasBeenSet() const
Definition Queue.h:85
void SetArn(ArnT &&value)
Definition Queue.h:53
void SetReservationPlan(ReservationPlanT &&value)
Definition Queue.h:196
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:162
bool StatusHasBeenSet() const
Definition Queue.h:240
Queue & AddServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:226
PricingPlan GetPricingPlan() const
Definition Queue.h:160
const Aws::String & GetArn() const
Definition Queue.h:50
Queue & WithServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:221
const Aws::Vector< ServiceOverride > & GetServiceOverrides() const
Definition Queue.h:213
Queue & WithStatus(QueueStatus value)
Definition Queue.h:245
int GetProgressingJobsCount() const
Definition Queue.h:176
void SetLastUpdated(LastUpdatedT &&value)
Definition Queue.h:123
Queue & WithName(NameT &&value)
Definition Queue.h:147
Queue & WithArn(ArnT &&value)
Definition Queue.h:58
const Aws::String & GetDescription() const
Definition Queue.h:102
void SetServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:216
const Aws::String & GetName() const
Definition Queue.h:139
void SetDescription(DescriptionT &&value)
Definition Queue.h:105
Queue & WithSubmittedJobsCount(int value)
Definition Queue.h:261
bool PricingPlanHasBeenSet() const
Definition Queue.h:161
Queue & WithPricingPlan(PricingPlan value)
Definition Queue.h:166
void SetStatus(QueueStatus value)
Definition Queue.h:241
bool ReservationPlanHasBeenSet() const
Definition Queue.h:194
void SetName(NameT &&value)
Definition Queue.h:142
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue