AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
JobTemplate.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/AccelerationSettings.h>
12#include <aws/mediaconvert/model/HopDestination.h>
13#include <aws/mediaconvert/model/JobTemplateSettings.h>
14#include <aws/mediaconvert/model/StatusUpdateInterval.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
36 public:
37 AWS_MEDIACONVERT_API JobTemplate() = default;
38 AWS_MEDIACONVERT_API JobTemplate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIACONVERT_API JobTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const AccelerationSettings& GetAccelerationSettings() const { return m_accelerationSettings; }
48 inline bool AccelerationSettingsHasBeenSet() const { return m_accelerationSettingsHasBeenSet; }
49 template <typename AccelerationSettingsT = AccelerationSettings>
50 void SetAccelerationSettings(AccelerationSettingsT&& value) {
51 m_accelerationSettingsHasBeenSet = true;
52 m_accelerationSettings = std::forward<AccelerationSettingsT>(value);
53 }
54 template <typename AccelerationSettingsT = AccelerationSettings>
55 JobTemplate& WithAccelerationSettings(AccelerationSettingsT&& value) {
56 SetAccelerationSettings(std::forward<AccelerationSettingsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 template <typename ArnT = Aws::String>
68 void SetArn(ArnT&& value) {
69 m_arnHasBeenSet = true;
70 m_arn = std::forward<ArnT>(value);
71 }
72 template <typename ArnT = Aws::String>
73 JobTemplate& WithArn(ArnT&& value) {
74 SetArn(std::forward<ArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetCategory() const { return m_category; }
84 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
85 template <typename CategoryT = Aws::String>
86 void SetCategory(CategoryT&& value) {
87 m_categoryHasBeenSet = true;
88 m_category = std::forward<CategoryT>(value);
89 }
90 template <typename CategoryT = Aws::String>
91 JobTemplate& WithCategory(CategoryT&& value) {
92 SetCategory(std::forward<CategoryT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
102 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 void SetCreatedAt(CreatedAtT&& value) {
105 m_createdAtHasBeenSet = true;
106 m_createdAt = std::forward<CreatedAtT>(value);
107 }
108 template <typename CreatedAtT = Aws::Utils::DateTime>
109 JobTemplate& WithCreatedAt(CreatedAtT&& value) {
110 SetCreatedAt(std::forward<CreatedAtT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template <typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) {
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
127 JobTemplate& WithDescription(DescriptionT&& value) {
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<HopDestination>& GetHopDestinations() const { return m_hopDestinations; }
138 inline bool HopDestinationsHasBeenSet() const { return m_hopDestinationsHasBeenSet; }
139 template <typename HopDestinationsT = Aws::Vector<HopDestination>>
140 void SetHopDestinations(HopDestinationsT&& value) {
141 m_hopDestinationsHasBeenSet = true;
142 m_hopDestinations = std::forward<HopDestinationsT>(value);
143 }
144 template <typename HopDestinationsT = Aws::Vector<HopDestination>>
145 JobTemplate& WithHopDestinations(HopDestinationsT&& value) {
146 SetHopDestinations(std::forward<HopDestinationsT>(value));
147 return *this;
148 }
149 template <typename HopDestinationsT = HopDestination>
150 JobTemplate& AddHopDestinations(HopDestinationsT&& value) {
151 m_hopDestinationsHasBeenSet = true;
152 m_hopDestinations.emplace_back(std::forward<HopDestinationsT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
162 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
163 template <typename LastUpdatedT = Aws::Utils::DateTime>
164 void SetLastUpdated(LastUpdatedT&& value) {
165 m_lastUpdatedHasBeenSet = true;
166 m_lastUpdated = std::forward<LastUpdatedT>(value);
167 }
168 template <typename LastUpdatedT = Aws::Utils::DateTime>
169 JobTemplate& WithLastUpdated(LastUpdatedT&& value) {
170 SetLastUpdated(std::forward<LastUpdatedT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetName() const { return m_name; }
181 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
182 template <typename NameT = Aws::String>
183 void SetName(NameT&& value) {
184 m_nameHasBeenSet = true;
185 m_name = std::forward<NameT>(value);
186 }
187 template <typename NameT = Aws::String>
188 JobTemplate& WithName(NameT&& value) {
189 SetName(std::forward<NameT>(value));
190 return *this;
191 }
193
195
198 inline int GetPriority() const { return m_priority; }
199 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
200 inline void SetPriority(int value) {
201 m_priorityHasBeenSet = true;
202 m_priority = value;
203 }
204 inline JobTemplate& WithPriority(int value) {
205 SetPriority(value);
206 return *this;
207 }
209
211
215 inline const Aws::String& GetQueue() const { return m_queue; }
216 inline bool QueueHasBeenSet() const { return m_queueHasBeenSet; }
217 template <typename QueueT = Aws::String>
218 void SetQueue(QueueT&& value) {
219 m_queueHasBeenSet = true;
220 m_queue = std::forward<QueueT>(value);
221 }
222 template <typename QueueT = Aws::String>
223 JobTemplate& WithQueue(QueueT&& value) {
224 SetQueue(std::forward<QueueT>(value));
225 return *this;
226 }
228
230
234 inline const JobTemplateSettings& GetSettings() const { return m_settings; }
235 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
236 template <typename SettingsT = JobTemplateSettings>
237 void SetSettings(SettingsT&& value) {
238 m_settingsHasBeenSet = true;
239 m_settings = std::forward<SettingsT>(value);
240 }
241 template <typename SettingsT = JobTemplateSettings>
242 JobTemplate& WithSettings(SettingsT&& value) {
243 SetSettings(std::forward<SettingsT>(value));
244 return *this;
245 }
247
249
255 inline StatusUpdateInterval GetStatusUpdateInterval() const { return m_statusUpdateInterval; }
256 inline bool StatusUpdateIntervalHasBeenSet() const { return m_statusUpdateIntervalHasBeenSet; }
258 m_statusUpdateIntervalHasBeenSet = true;
259 m_statusUpdateInterval = value;
260 }
263 return *this;
264 }
266
268
272 inline Type GetType() const { return m_type; }
273 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
274 inline void SetType(Type value) {
275 m_typeHasBeenSet = true;
276 m_type = value;
277 }
278 inline JobTemplate& WithType(Type value) {
279 SetType(value);
280 return *this;
281 }
283 private:
284 AccelerationSettings m_accelerationSettings;
285
286 Aws::String m_arn;
287
288 Aws::String m_category;
289
290 Aws::Utils::DateTime m_createdAt{};
291
292 Aws::String m_description;
293
294 Aws::Vector<HopDestination> m_hopDestinations;
295
296 Aws::Utils::DateTime m_lastUpdated{};
297
298 Aws::String m_name;
299
300 int m_priority{0};
301
302 Aws::String m_queue;
303
304 JobTemplateSettings m_settings;
305
307
308 Type m_type{Type::NOT_SET};
309 bool m_accelerationSettingsHasBeenSet = false;
310 bool m_arnHasBeenSet = false;
311 bool m_categoryHasBeenSet = false;
312 bool m_createdAtHasBeenSet = false;
313 bool m_descriptionHasBeenSet = false;
314 bool m_hopDestinationsHasBeenSet = false;
315 bool m_lastUpdatedHasBeenSet = false;
316 bool m_nameHasBeenSet = false;
317 bool m_priorityHasBeenSet = false;
318 bool m_queueHasBeenSet = false;
319 bool m_settingsHasBeenSet = false;
320 bool m_statusUpdateIntervalHasBeenSet = false;
321 bool m_typeHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace MediaConvert
326} // namespace Aws
AWS_MEDIACONVERT_API JobTemplate(Aws::Utils::Json::JsonView jsonValue)
void SetAccelerationSettings(AccelerationSettingsT &&value)
Definition JobTemplate.h:50
void SetCategory(CategoryT &&value)
Definition JobTemplate.h:86
JobTemplate & WithAccelerationSettings(AccelerationSettingsT &&value)
Definition JobTemplate.h:55
JobTemplate & WithQueue(QueueT &&value)
JobTemplate & WithType(Type value)
const Aws::String & GetName() const
JobTemplate & WithCreatedAt(CreatedAtT &&value)
JobTemplate & WithPriority(int value)
JobTemplate & WithLastUpdated(LastUpdatedT &&value)
void SetLastUpdated(LastUpdatedT &&value)
JobTemplate & WithCategory(CategoryT &&value)
Definition JobTemplate.h:91
JobTemplate & WithStatusUpdateInterval(StatusUpdateInterval value)
AWS_MEDIACONVERT_API JobTemplate()=default
void SetSettings(SettingsT &&value)
AWS_MEDIACONVERT_API JobTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
const Aws::String & GetArn() const
Definition JobTemplate.h:65
JobTemplate & AddHopDestinations(HopDestinationsT &&value)
JobTemplate & WithDescription(DescriptionT &&value)
void SetCreatedAt(CreatedAtT &&value)
const JobTemplateSettings & GetSettings() const
void SetDescription(DescriptionT &&value)
void SetHopDestinations(HopDestinationsT &&value)
const Aws::String & GetQueue() const
const Aws::Utils::DateTime & GetLastUpdated() const
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const
const AccelerationSettings & GetAccelerationSettings() const
Definition JobTemplate.h:47
const Aws::String & GetCategory() const
Definition JobTemplate.h:83
const Aws::Vector< HopDestination > & GetHopDestinations() const
void SetStatusUpdateInterval(StatusUpdateInterval value)
JobTemplate & WithSettings(SettingsT &&value)
JobTemplate & WithArn(ArnT &&value)
Definition JobTemplate.h:73
JobTemplate & WithName(NameT &&value)
JobTemplate & WithHopDestinations(HopDestinationsT &&value)
StatusUpdateInterval GetStatusUpdateInterval() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue