AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Queue.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/mediaconvert/model/PricingPlan.h>
11#include <aws/mediaconvert/model/ReservationPlan.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mediaconvert/model/QueueStatus.h>
14#include <aws/mediaconvert/model/Type.h>
15#include <aws/mediaconvert/model/ServiceOverride.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace MediaConvert
29{
30namespace Model
31{
32
43 class Queue
44 {
45 public:
46 AWS_MEDIACONVERT_API Queue() = default;
47 AWS_MEDIACONVERT_API Queue(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MEDIACONVERT_API Queue& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetArn() const { return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 template<typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
60 template<typename ArnT = Aws::String>
61 Queue& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
63
65
68 inline int GetConcurrentJobs() const { return m_concurrentJobs; }
69 inline bool ConcurrentJobsHasBeenSet() const { return m_concurrentJobsHasBeenSet; }
70 inline void SetConcurrentJobs(int value) { m_concurrentJobsHasBeenSet = true; m_concurrentJobs = value; }
71 inline Queue& WithConcurrentJobs(int value) { SetConcurrentJobs(value); return *this;}
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
80 template<typename CreatedAtT = Aws::Utils::DateTime>
81 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
82 template<typename CreatedAtT = Aws::Utils::DateTime>
83 Queue& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template<typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
94 template<typename DescriptionT = Aws::String>
95 Queue& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
103 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
104 template<typename LastUpdatedT = Aws::Utils::DateTime>
105 void SetLastUpdated(LastUpdatedT&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::forward<LastUpdatedT>(value); }
106 template<typename LastUpdatedT = Aws::Utils::DateTime>
107 Queue& WithLastUpdated(LastUpdatedT&& value) { SetLastUpdated(std::forward<LastUpdatedT>(value)); return *this;}
109
111
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template<typename NameT = Aws::String>
118 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
119 template<typename NameT = Aws::String>
120 Queue& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
122
124
130 inline PricingPlan GetPricingPlan() const { return m_pricingPlan; }
131 inline bool PricingPlanHasBeenSet() const { return m_pricingPlanHasBeenSet; }
132 inline void SetPricingPlan(PricingPlan value) { m_pricingPlanHasBeenSet = true; m_pricingPlan = value; }
133 inline Queue& WithPricingPlan(PricingPlan value) { SetPricingPlan(value); return *this;}
135
137
140 inline int GetProgressingJobsCount() const { return m_progressingJobsCount; }
141 inline bool ProgressingJobsCountHasBeenSet() const { return m_progressingJobsCountHasBeenSet; }
142 inline void SetProgressingJobsCount(int value) { m_progressingJobsCountHasBeenSet = true; m_progressingJobsCount = value; }
143 inline Queue& WithProgressingJobsCount(int value) { SetProgressingJobsCount(value); return *this;}
145
147
151 inline const ReservationPlan& GetReservationPlan() const { return m_reservationPlan; }
152 inline bool ReservationPlanHasBeenSet() const { return m_reservationPlanHasBeenSet; }
153 template<typename ReservationPlanT = ReservationPlan>
154 void SetReservationPlan(ReservationPlanT&& value) { m_reservationPlanHasBeenSet = true; m_reservationPlan = std::forward<ReservationPlanT>(value); }
155 template<typename ReservationPlanT = ReservationPlan>
156 Queue& WithReservationPlan(ReservationPlanT&& value) { SetReservationPlan(std::forward<ReservationPlanT>(value)); return *this;}
158
160
165 inline const Aws::Vector<ServiceOverride>& GetServiceOverrides() const { return m_serviceOverrides; }
166 inline bool ServiceOverridesHasBeenSet() const { return m_serviceOverridesHasBeenSet; }
167 template<typename ServiceOverridesT = Aws::Vector<ServiceOverride>>
168 void SetServiceOverrides(ServiceOverridesT&& value) { m_serviceOverridesHasBeenSet = true; m_serviceOverrides = std::forward<ServiceOverridesT>(value); }
169 template<typename ServiceOverridesT = Aws::Vector<ServiceOverride>>
170 Queue& WithServiceOverrides(ServiceOverridesT&& value) { SetServiceOverrides(std::forward<ServiceOverridesT>(value)); return *this;}
171 template<typename ServiceOverridesT = ServiceOverride>
172 Queue& AddServiceOverrides(ServiceOverridesT&& value) { m_serviceOverridesHasBeenSet = true; m_serviceOverrides.emplace_back(std::forward<ServiceOverridesT>(value)); return *this; }
174
176
181 inline QueueStatus GetStatus() const { return m_status; }
182 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
183 inline void SetStatus(QueueStatus value) { m_statusHasBeenSet = true; m_status = value; }
184 inline Queue& WithStatus(QueueStatus value) { SetStatus(value); return *this;}
186
188
191 inline int GetSubmittedJobsCount() const { return m_submittedJobsCount; }
192 inline bool SubmittedJobsCountHasBeenSet() const { return m_submittedJobsCountHasBeenSet; }
193 inline void SetSubmittedJobsCount(int value) { m_submittedJobsCountHasBeenSet = true; m_submittedJobsCount = value; }
194 inline Queue& WithSubmittedJobsCount(int value) { SetSubmittedJobsCount(value); return *this;}
196
198
203 inline Type GetType() const { return m_type; }
204 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
205 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
206 inline Queue& WithType(Type value) { SetType(value); return *this;}
208 private:
209
210 Aws::String m_arn;
211 bool m_arnHasBeenSet = false;
212
213 int m_concurrentJobs{0};
214 bool m_concurrentJobsHasBeenSet = false;
215
216 Aws::Utils::DateTime m_createdAt{};
217 bool m_createdAtHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 Aws::Utils::DateTime m_lastUpdated{};
223 bool m_lastUpdatedHasBeenSet = false;
224
225 Aws::String m_name;
226 bool m_nameHasBeenSet = false;
227
228 PricingPlan m_pricingPlan{PricingPlan::NOT_SET};
229 bool m_pricingPlanHasBeenSet = false;
230
231 int m_progressingJobsCount{0};
232 bool m_progressingJobsCountHasBeenSet = false;
233
234 ReservationPlan m_reservationPlan;
235 bool m_reservationPlanHasBeenSet = false;
236
237 Aws::Vector<ServiceOverride> m_serviceOverrides;
238 bool m_serviceOverridesHasBeenSet = false;
239
241 bool m_statusHasBeenSet = false;
242
243 int m_submittedJobsCount{0};
244 bool m_submittedJobsCountHasBeenSet = false;
245
246 Type m_type{Type::NOT_SET};
247 bool m_typeHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace MediaConvert
252} // namespace Aws
Queue & WithType(Type value)
Definition Queue.h:206
QueueStatus GetStatus() const
Definition Queue.h:181
void SetProgressingJobsCount(int value)
Definition Queue.h:142
void SetCreatedAt(CreatedAtT &&value)
Definition Queue.h:81
Queue & WithDescription(DescriptionT &&value)
Definition Queue.h:95
int GetSubmittedJobsCount() const
Definition Queue.h:191
void SetConcurrentJobs(int value)
Definition Queue.h:70
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Queue.h:78
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:143
bool DescriptionHasBeenSet() const
Definition Queue.h:91
void SetSubmittedJobsCount(int value)
Definition Queue.h:193
Queue & WithReservationPlan(ReservationPlanT &&value)
Definition Queue.h:156
AWS_MEDIACONVERT_API Queue(Aws::Utils::Json::JsonView jsonValue)
const ReservationPlan & GetReservationPlan() const
Definition Queue.h:151
Queue & WithLastUpdated(LastUpdatedT &&value)
Definition Queue.h:107
bool SubmittedJobsCountHasBeenSet() const
Definition Queue.h:192
bool ConcurrentJobsHasBeenSet() const
Definition Queue.h:69
bool ServiceOverridesHasBeenSet() const
Definition Queue.h:166
Queue & WithConcurrentJobs(int value)
Definition Queue.h:71
AWS_MEDIACONVERT_API Queue()=default
bool ProgressingJobsCountHasBeenSet() const
Definition Queue.h:141
void SetType(Type value)
Definition Queue.h:205
bool CreatedAtHasBeenSet() const
Definition Queue.h:79
void SetArn(ArnT &&value)
Definition Queue.h:59
void SetReservationPlan(ReservationPlanT &&value)
Definition Queue.h:154
Queue & WithCreatedAt(CreatedAtT &&value)
Definition Queue.h:83
const Aws::Utils::DateTime & GetLastUpdated() const
Definition Queue.h:102
bool LastUpdatedHasBeenSet() const
Definition Queue.h:103
void SetPricingPlan(PricingPlan value)
Definition Queue.h:132
bool StatusHasBeenSet() const
Definition Queue.h:182
Queue & AddServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:172
PricingPlan GetPricingPlan() const
Definition Queue.h:130
const Aws::String & GetArn() const
Definition Queue.h:56
Queue & WithServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:170
const Aws::Vector< ServiceOverride > & GetServiceOverrides() const
Definition Queue.h:165
Queue & WithStatus(QueueStatus value)
Definition Queue.h:184
int GetProgressingJobsCount() const
Definition Queue.h:140
void SetLastUpdated(LastUpdatedT &&value)
Definition Queue.h:105
Queue & WithName(NameT &&value)
Definition Queue.h:120
Queue & WithArn(ArnT &&value)
Definition Queue.h:61
const Aws::String & GetDescription() const
Definition Queue.h:90
void SetServiceOverrides(ServiceOverridesT &&value)
Definition Queue.h:168
const Aws::String & GetName() const
Definition Queue.h:115
void SetDescription(DescriptionT &&value)
Definition Queue.h:93
Queue & WithSubmittedJobsCount(int value)
Definition Queue.h:194
bool PricingPlanHasBeenSet() const
Definition Queue.h:131
Queue & WithPricingPlan(PricingPlan value)
Definition Queue.h:133
void SetStatus(QueueStatus value)
Definition Queue.h:183
bool ReservationPlanHasBeenSet() const
Definition Queue.h:152
void SetName(NameT &&value)
Definition Queue.h:118
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue