AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8#include <aws/mediaconvert/MediaConvertRequest.h>
9#include <aws/mediaconvert/model/AccelerationSettings.h>
10#include <aws/mediaconvert/model/BillingTagsSource.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mediaconvert/model/JobSettings.h>
14#include <aws/mediaconvert/model/SimulateReservedQueue.h>
15#include <aws/mediaconvert/model/StatusUpdateInterval.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/mediaconvert/model/HopDestination.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace MediaConvert
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_MEDIACONVERT_API CreateJobRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
40
41 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
42
43
45
51 inline const AccelerationSettings& GetAccelerationSettings() const { return m_accelerationSettings; }
52 inline bool AccelerationSettingsHasBeenSet() const { return m_accelerationSettingsHasBeenSet; }
53 template<typename AccelerationSettingsT = AccelerationSettings>
54 void SetAccelerationSettings(AccelerationSettingsT&& value) { m_accelerationSettingsHasBeenSet = true; m_accelerationSettings = std::forward<AccelerationSettingsT>(value); }
55 template<typename AccelerationSettingsT = AccelerationSettings>
56 CreateJobRequest& WithAccelerationSettings(AccelerationSettingsT&& value) { SetAccelerationSettings(std::forward<AccelerationSettingsT>(value)); return *this;}
58
60
65 inline BillingTagsSource GetBillingTagsSource() const { return m_billingTagsSource; }
66 inline bool BillingTagsSourceHasBeenSet() const { return m_billingTagsSourceHasBeenSet; }
67 inline void SetBillingTagsSource(BillingTagsSource value) { m_billingTagsSourceHasBeenSet = true; m_billingTagsSource = value; }
70
72
80 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
81 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
82 template<typename ClientRequestTokenT = Aws::String>
83 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
84 template<typename ClientRequestTokenT = Aws::String>
85 CreateJobRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
87
89
95 inline const Aws::Vector<HopDestination>& GetHopDestinations() const { return m_hopDestinations; }
96 inline bool HopDestinationsHasBeenSet() const { return m_hopDestinationsHasBeenSet; }
97 template<typename HopDestinationsT = Aws::Vector<HopDestination>>
98 void SetHopDestinations(HopDestinationsT&& value) { m_hopDestinationsHasBeenSet = true; m_hopDestinations = std::forward<HopDestinationsT>(value); }
99 template<typename HopDestinationsT = Aws::Vector<HopDestination>>
100 CreateJobRequest& WithHopDestinations(HopDestinationsT&& value) { SetHopDestinations(std::forward<HopDestinationsT>(value)); return *this;}
101 template<typename HopDestinationsT = HopDestination>
102 CreateJobRequest& AddHopDestinations(HopDestinationsT&& value) { m_hopDestinationsHasBeenSet = true; m_hopDestinations.emplace_back(std::forward<HopDestinationsT>(value)); return *this; }
104
106
112 inline const Aws::String& GetJobEngineVersion() const { return m_jobEngineVersion; }
113 inline bool JobEngineVersionHasBeenSet() const { return m_jobEngineVersionHasBeenSet; }
114 template<typename JobEngineVersionT = Aws::String>
115 void SetJobEngineVersion(JobEngineVersionT&& value) { m_jobEngineVersionHasBeenSet = true; m_jobEngineVersion = std::forward<JobEngineVersionT>(value); }
116 template<typename JobEngineVersionT = Aws::String>
117 CreateJobRequest& WithJobEngineVersion(JobEngineVersionT&& value) { SetJobEngineVersion(std::forward<JobEngineVersionT>(value)); return *this;}
119
121
125 inline const Aws::String& GetJobTemplate() const { return m_jobTemplate; }
126 inline bool JobTemplateHasBeenSet() const { return m_jobTemplateHasBeenSet; }
127 template<typename JobTemplateT = Aws::String>
128 void SetJobTemplate(JobTemplateT&& value) { m_jobTemplateHasBeenSet = true; m_jobTemplate = std::forward<JobTemplateT>(value); }
129 template<typename JobTemplateT = Aws::String>
130 CreateJobRequest& WithJobTemplate(JobTemplateT&& value) { SetJobTemplate(std::forward<JobTemplateT>(value)); return *this;}
132
134
141 inline int GetPriority() const { return m_priority; }
142 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
143 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
144 inline CreateJobRequest& WithPriority(int value) { SetPriority(value); return *this;}
146
148
154 inline const Aws::String& GetQueue() const { return m_queue; }
155 inline bool QueueHasBeenSet() const { return m_queueHasBeenSet; }
156 template<typename QueueT = Aws::String>
157 void SetQueue(QueueT&& value) { m_queueHasBeenSet = true; m_queue = std::forward<QueueT>(value); }
158 template<typename QueueT = Aws::String>
159 CreateJobRequest& WithQueue(QueueT&& value) { SetQueue(std::forward<QueueT>(value)); return *this;}
161
163
168 inline const Aws::String& GetRole() const { return m_role; }
169 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
170 template<typename RoleT = Aws::String>
171 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
172 template<typename RoleT = Aws::String>
173 CreateJobRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
175
177
180 inline const JobSettings& GetSettings() const { return m_settings; }
181 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
182 template<typename SettingsT = JobSettings>
183 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
184 template<typename SettingsT = JobSettings>
185 CreateJobRequest& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
187
189
195 inline SimulateReservedQueue GetSimulateReservedQueue() const { return m_simulateReservedQueue; }
196 inline bool SimulateReservedQueueHasBeenSet() const { return m_simulateReservedQueueHasBeenSet; }
197 inline void SetSimulateReservedQueue(SimulateReservedQueue value) { m_simulateReservedQueueHasBeenSet = true; m_simulateReservedQueue = value; }
200
202
209 inline StatusUpdateInterval GetStatusUpdateInterval() const { return m_statusUpdateInterval; }
210 inline bool StatusUpdateIntervalHasBeenSet() const { return m_statusUpdateIntervalHasBeenSet; }
211 inline void SetStatusUpdateInterval(StatusUpdateInterval value) { m_statusUpdateIntervalHasBeenSet = true; m_statusUpdateInterval = value; }
214
216
222 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
223 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
224 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
226 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
227 CreateJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
228 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
229 CreateJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
230 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
231 }
233
235
241 inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const { return m_userMetadata; }
242 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
243 template<typename UserMetadataT = Aws::Map<Aws::String, Aws::String>>
244 void SetUserMetadata(UserMetadataT&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::forward<UserMetadataT>(value); }
245 template<typename UserMetadataT = Aws::Map<Aws::String, Aws::String>>
246 CreateJobRequest& WithUserMetadata(UserMetadataT&& value) { SetUserMetadata(std::forward<UserMetadataT>(value)); return *this;}
247 template<typename UserMetadataKeyT = Aws::String, typename UserMetadataValueT = Aws::String>
248 CreateJobRequest& AddUserMetadata(UserMetadataKeyT&& key, UserMetadataValueT&& value) {
249 m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::forward<UserMetadataKeyT>(key), std::forward<UserMetadataValueT>(value)); return *this;
250 }
252 private:
253
254 AccelerationSettings m_accelerationSettings;
255 bool m_accelerationSettingsHasBeenSet = false;
256
258 bool m_billingTagsSourceHasBeenSet = false;
259
260 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
261 bool m_clientRequestTokenHasBeenSet = true;
262
263 Aws::Vector<HopDestination> m_hopDestinations;
264 bool m_hopDestinationsHasBeenSet = false;
265
266 Aws::String m_jobEngineVersion;
267 bool m_jobEngineVersionHasBeenSet = false;
268
269 Aws::String m_jobTemplate;
270 bool m_jobTemplateHasBeenSet = false;
271
272 int m_priority{0};
273 bool m_priorityHasBeenSet = false;
274
275 Aws::String m_queue;
276 bool m_queueHasBeenSet = false;
277
278 Aws::String m_role;
279 bool m_roleHasBeenSet = false;
280
281 JobSettings m_settings;
282 bool m_settingsHasBeenSet = false;
283
285 bool m_simulateReservedQueueHasBeenSet = false;
286
288 bool m_statusUpdateIntervalHasBeenSet = false;
289
291 bool m_tagsHasBeenSet = false;
292
294 bool m_userMetadataHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace MediaConvert
299} // namespace Aws
CreateJobRequest & WithJobEngineVersion(JobEngineVersionT &&value)
AWS_MEDIACONVERT_API Aws::String SerializePayload() const override
AWS_MEDIACONVERT_API CreateJobRequest()=default
void SetClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithUserMetadata(UserMetadataT &&value)
void SetSimulateReservedQueue(SimulateReservedQueue value)
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
CreateJobRequest & WithSimulateReservedQueue(SimulateReservedQueue value)
void SetAccelerationSettings(AccelerationSettingsT &&value)
const AccelerationSettings & GetAccelerationSettings() const
CreateJobRequest & WithQueue(QueueT &&value)
CreateJobRequest & WithJobTemplate(JobTemplateT &&value)
void SetBillingTagsSource(BillingTagsSource value)
CreateJobRequest & WithBillingTagsSource(BillingTagsSource value)
CreateJobRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StatusUpdateInterval GetStatusUpdateInterval() const
void SetUserMetadata(UserMetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateJobRequest & WithTags(TagsT &&value)
CreateJobRequest & AddUserMetadata(UserMetadataKeyT &&key, UserMetadataValueT &&value)
const Aws::String & GetClientRequestToken() const
const Aws::Vector< HopDestination > & GetHopDestinations() const
const Aws::String & GetJobEngineVersion() const
void SetHopDestinations(HopDestinationsT &&value)
CreateJobRequest & WithSettings(SettingsT &&value)
BillingTagsSource GetBillingTagsSource() const
SimulateReservedQueue GetSimulateReservedQueue() const
CreateJobRequest & WithHopDestinations(HopDestinationsT &&value)
CreateJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateJobRequest & WithStatusUpdateInterval(StatusUpdateInterval value)
CreateJobRequest & WithAccelerationSettings(AccelerationSettingsT &&value)
CreateJobRequest & WithPriority(int value)
CreateJobRequest & WithRole(RoleT &&value)
void SetStatusUpdateInterval(StatusUpdateInterval value)
CreateJobRequest & AddHopDestinations(HopDestinationsT &&value)
void SetJobEngineVersion(JobEngineVersionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector