AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elastictranscoder/model/JobInput.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elastictranscoder/model/JobOutput.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/elastictranscoder/model/Timing.h>
14#include <aws/elastictranscoder/model/Playlist.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ElasticTranscoder
28{
29namespace Model
30{
31
38 class Job
39 {
40 public:
41 AWS_ELASTICTRANSCODER_API Job();
42 AWS_ELASTICTRANSCODER_API Job(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ELASTICTRANSCODER_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline Job& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline Job& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline Job& WithId(const char* value) { SetId(value); return *this;}
61
63
66 inline const Aws::String& GetArn() const{ return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline Job& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline Job& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline Job& WithArn(const char* value) { SetArn(value); return *this;}
75
77
83 inline const Aws::String& GetPipelineId() const{ return m_pipelineId; }
84 inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
85 inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
86 inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = std::move(value); }
87 inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); }
88 inline Job& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;}
89 inline Job& WithPipelineId(Aws::String&& value) { SetPipelineId(std::move(value)); return *this;}
90 inline Job& WithPipelineId(const char* value) { SetPipelineId(value); return *this;}
92
94
98 inline const JobInput& GetInput() const{ return m_input; }
99 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
100 inline void SetInput(const JobInput& value) { m_inputHasBeenSet = true; m_input = value; }
101 inline void SetInput(JobInput&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
102 inline Job& WithInput(const JobInput& value) { SetInput(value); return *this;}
103 inline Job& WithInput(JobInput&& value) { SetInput(std::move(value)); return *this;}
105
107
112 inline const Aws::Vector<JobInput>& GetInputs() const{ return m_inputs; }
113 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
114 inline void SetInputs(const Aws::Vector<JobInput>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
115 inline void SetInputs(Aws::Vector<JobInput>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
116 inline Job& WithInputs(const Aws::Vector<JobInput>& value) { SetInputs(value); return *this;}
117 inline Job& WithInputs(Aws::Vector<JobInput>&& value) { SetInputs(std::move(value)); return *this;}
118 inline Job& AddInputs(const JobInput& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
119 inline Job& AddInputs(JobInput&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
121
123
131 inline const JobOutput& GetOutput() const{ return m_output; }
132 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
133 inline void SetOutput(const JobOutput& value) { m_outputHasBeenSet = true; m_output = value; }
134 inline void SetOutput(JobOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); }
135 inline Job& WithOutput(const JobOutput& value) { SetOutput(value); return *this;}
136 inline Job& WithOutput(JobOutput&& value) { SetOutput(std::move(value)); return *this;}
138
140
149 inline const Aws::Vector<JobOutput>& GetOutputs() const{ return m_outputs; }
150 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
151 inline void SetOutputs(const Aws::Vector<JobOutput>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
152 inline void SetOutputs(Aws::Vector<JobOutput>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
153 inline Job& WithOutputs(const Aws::Vector<JobOutput>& value) { SetOutputs(value); return *this;}
154 inline Job& WithOutputs(Aws::Vector<JobOutput>&& value) { SetOutputs(std::move(value)); return *this;}
155 inline Job& AddOutputs(const JobOutput& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
156 inline Job& AddOutputs(JobOutput&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
158
160
166 inline const Aws::String& GetOutputKeyPrefix() const{ return m_outputKeyPrefix; }
167 inline bool OutputKeyPrefixHasBeenSet() const { return m_outputKeyPrefixHasBeenSet; }
168 inline void SetOutputKeyPrefix(const Aws::String& value) { m_outputKeyPrefixHasBeenSet = true; m_outputKeyPrefix = value; }
169 inline void SetOutputKeyPrefix(Aws::String&& value) { m_outputKeyPrefixHasBeenSet = true; m_outputKeyPrefix = std::move(value); }
170 inline void SetOutputKeyPrefix(const char* value) { m_outputKeyPrefixHasBeenSet = true; m_outputKeyPrefix.assign(value); }
171 inline Job& WithOutputKeyPrefix(const Aws::String& value) { SetOutputKeyPrefix(value); return *this;}
172 inline Job& WithOutputKeyPrefix(Aws::String&& value) { SetOutputKeyPrefix(std::move(value)); return *this;}
173 inline Job& WithOutputKeyPrefix(const char* value) { SetOutputKeyPrefix(value); return *this;}
175
177
185 inline const Aws::Vector<Playlist>& GetPlaylists() const{ return m_playlists; }
186 inline bool PlaylistsHasBeenSet() const { return m_playlistsHasBeenSet; }
187 inline void SetPlaylists(const Aws::Vector<Playlist>& value) { m_playlistsHasBeenSet = true; m_playlists = value; }
188 inline void SetPlaylists(Aws::Vector<Playlist>&& value) { m_playlistsHasBeenSet = true; m_playlists = std::move(value); }
189 inline Job& WithPlaylists(const Aws::Vector<Playlist>& value) { SetPlaylists(value); return *this;}
190 inline Job& WithPlaylists(Aws::Vector<Playlist>&& value) { SetPlaylists(std::move(value)); return *this;}
191 inline Job& AddPlaylists(const Playlist& value) { m_playlistsHasBeenSet = true; m_playlists.push_back(value); return *this; }
192 inline Job& AddPlaylists(Playlist&& value) { m_playlistsHasBeenSet = true; m_playlists.push_back(std::move(value)); return *this; }
194
196
200 inline const Aws::String& GetStatus() const{ return m_status; }
201 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
202 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
203 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
204 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
205 inline Job& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
206 inline Job& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
207 inline Job& WithStatus(const char* value) { SetStatus(value); return *this;}
209
211
222 inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const{ return m_userMetadata; }
223 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
224 inline void SetUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
225 inline void SetUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
226 inline Job& WithUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetUserMetadata(value); return *this;}
227 inline Job& WithUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetUserMetadata(std::move(value)); return *this;}
228 inline Job& AddUserMetadata(const Aws::String& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
229 inline Job& AddUserMetadata(Aws::String&& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
230 inline Job& AddUserMetadata(const Aws::String& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
231 inline Job& AddUserMetadata(Aws::String&& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), std::move(value)); return *this; }
232 inline Job& AddUserMetadata(const char* key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
233 inline Job& AddUserMetadata(Aws::String&& key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
234 inline Job& AddUserMetadata(const char* key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
236
238
241 inline const Timing& GetTiming() const{ return m_timing; }
242 inline bool TimingHasBeenSet() const { return m_timingHasBeenSet; }
243 inline void SetTiming(const Timing& value) { m_timingHasBeenSet = true; m_timing = value; }
244 inline void SetTiming(Timing&& value) { m_timingHasBeenSet = true; m_timing = std::move(value); }
245 inline Job& WithTiming(const Timing& value) { SetTiming(value); return *this;}
246 inline Job& WithTiming(Timing&& value) { SetTiming(std::move(value)); return *this;}
248 private:
249
250 Aws::String m_id;
251 bool m_idHasBeenSet = false;
252
253 Aws::String m_arn;
254 bool m_arnHasBeenSet = false;
255
256 Aws::String m_pipelineId;
257 bool m_pipelineIdHasBeenSet = false;
258
259 JobInput m_input;
260 bool m_inputHasBeenSet = false;
261
262 Aws::Vector<JobInput> m_inputs;
263 bool m_inputsHasBeenSet = false;
264
265 JobOutput m_output;
266 bool m_outputHasBeenSet = false;
267
268 Aws::Vector<JobOutput> m_outputs;
269 bool m_outputsHasBeenSet = false;
270
271 Aws::String m_outputKeyPrefix;
272 bool m_outputKeyPrefixHasBeenSet = false;
273
274 Aws::Vector<Playlist> m_playlists;
275 bool m_playlistsHasBeenSet = false;
276
277 Aws::String m_status;
278 bool m_statusHasBeenSet = false;
279
281 bool m_userMetadataHasBeenSet = false;
282
283 Timing m_timing;
284 bool m_timingHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace ElasticTranscoder
289} // namespace Aws
Job & WithArn(const Aws::String &value)
Definition Job.h:71
Job & AddInputs(const JobInput &value)
Definition Job.h:118
const Aws::String & GetOutputKeyPrefix() const
Definition Job.h:166
void SetUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition Job.h:224
Job & AddUserMetadata(Aws::String &&key, const char *value)
Definition Job.h:233
void SetInputs(Aws::Vector< JobInput > &&value)
Definition Job.h:115
Job & WithOutputKeyPrefix(Aws::String &&value)
Definition Job.h:172
Job & AddUserMetadata(const char *key, Aws::String &&value)
Definition Job.h:232
Job & WithId(Aws::String &&value)
Definition Job.h:58
bool OutputKeyPrefixHasBeenSet() const
Definition Job.h:167
const Aws::String & GetId() const
Definition Job.h:52
Job & WithPipelineId(Aws::String &&value)
Definition Job.h:89
void SetOutputKeyPrefix(const char *value)
Definition Job.h:170
void SetId(const char *value)
Definition Job.h:56
void SetInput(JobInput &&value)
Definition Job.h:101
Job & WithOutput(const JobOutput &value)
Definition Job.h:135
void SetTiming(Timing &&value)
Definition Job.h:244
Job & WithTiming(const Timing &value)
Definition Job.h:245
void SetId(Aws::String &&value)
Definition Job.h:55
Job & WithArn(const char *value)
Definition Job.h:73
Job & WithUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition Job.h:226
bool UserMetadataHasBeenSet() const
Definition Job.h:223
Job & AddPlaylists(Playlist &&value)
Definition Job.h:192
Job & WithPlaylists(const Aws::Vector< Playlist > &value)
Definition Job.h:189
void SetUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition Job.h:225
Job & AddUserMetadata(Aws::String &&key, const Aws::String &value)
Definition Job.h:229
void SetPipelineId(Aws::String &&value)
Definition Job.h:86
AWS_ELASTICTRANSCODER_API Job(Aws::Utils::Json::JsonView jsonValue)
Job & WithInput(const JobInput &value)
Definition Job.h:102
void SetTiming(const Timing &value)
Definition Job.h:243
bool PlaylistsHasBeenSet() const
Definition Job.h:186
Job & WithPlaylists(Aws::Vector< Playlist > &&value)
Definition Job.h:190
Job & WithOutputKeyPrefix(const char *value)
Definition Job.h:173
const JobInput & GetInput() const
Definition Job.h:98
const Aws::String & GetPipelineId() const
Definition Job.h:83
const Aws::String & GetArn() const
Definition Job.h:66
Job & WithStatus(Aws::String &&value)
Definition Job.h:206
Job & AddPlaylists(const Playlist &value)
Definition Job.h:191
void SetPlaylists(const Aws::Vector< Playlist > &value)
Definition Job.h:187
void SetPipelineId(const Aws::String &value)
Definition Job.h:85
Job & WithId(const Aws::String &value)
Definition Job.h:57
void SetPlaylists(Aws::Vector< Playlist > &&value)
Definition Job.h:188
void SetInputs(const Aws::Vector< JobInput > &value)
Definition Job.h:114
const Timing & GetTiming() const
Definition Job.h:241
Job & WithOutputs(const Aws::Vector< JobOutput > &value)
Definition Job.h:153
Job & WithArn(Aws::String &&value)
Definition Job.h:72
void SetOutputKeyPrefix(Aws::String &&value)
Definition Job.h:169
void SetOutputKeyPrefix(const Aws::String &value)
Definition Job.h:168
const Aws::Vector< Playlist > & GetPlaylists() const
Definition Job.h:185
AWS_ELASTICTRANSCODER_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & AddOutputs(JobOutput &&value)
Definition Job.h:156
void SetInput(const JobInput &value)
Definition Job.h:100
void SetArn(Aws::String &&value)
Definition Job.h:69
Job & AddUserMetadata(const char *key, const char *value)
Definition Job.h:234
Job & WithUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition Job.h:227
Job & AddUserMetadata(const Aws::String &key, Aws::String &&value)
Definition Job.h:230
Job & WithInputs(Aws::Vector< JobInput > &&value)
Definition Job.h:117
void SetStatus(Aws::String &&value)
Definition Job.h:203
void SetOutputs(Aws::Vector< JobOutput > &&value)
Definition Job.h:152
const Aws::Vector< JobInput > & GetInputs() const
Definition Job.h:112
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
Definition Job.h:222
Job & AddUserMetadata(Aws::String &&key, Aws::String &&value)
Definition Job.h:231
Job & AddOutputs(const JobOutput &value)
Definition Job.h:155
void SetOutput(const JobOutput &value)
Definition Job.h:133
void SetPipelineId(const char *value)
Definition Job.h:87
AWS_ELASTICTRANSCODER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOutputs(const Aws::Vector< JobOutput > &value)
Definition Job.h:151
Job & WithTiming(Timing &&value)
Definition Job.h:246
const Aws::Vector< JobOutput > & GetOutputs() const
Definition Job.h:149
Job & WithInputs(const Aws::Vector< JobInput > &value)
Definition Job.h:116
void SetStatus(const Aws::String &value)
Definition Job.h:202
AWS_ELASTICTRANSCODER_API Job()
Job & WithStatus(const Aws::String &value)
Definition Job.h:205
Job & WithId(const char *value)
Definition Job.h:59
void SetArn(const char *value)
Definition Job.h:70
Job & AddUserMetadata(const Aws::String &key, const Aws::String &value)
Definition Job.h:228
Job & WithInput(JobInput &&value)
Definition Job.h:103
void SetArn(const Aws::String &value)
Definition Job.h:68
void SetOutput(JobOutput &&value)
Definition Job.h:134
Job & WithPipelineId(const char *value)
Definition Job.h:90
const Aws::String & GetStatus() const
Definition Job.h:200
Job & WithOutput(JobOutput &&value)
Definition Job.h:136
Job & WithStatus(const char *value)
Definition Job.h:207
Job & WithOutputs(Aws::Vector< JobOutput > &&value)
Definition Job.h:154
Job & WithOutputKeyPrefix(const Aws::String &value)
Definition Job.h:171
void SetStatus(const char *value)
Definition Job.h:204
const JobOutput & GetOutput() const
Definition Job.h:131
Job & AddInputs(JobInput &&value)
Definition Job.h:119
void SetId(const Aws::String &value)
Definition Job.h:54
Job & WithPipelineId(const Aws::String &value)
Definition Job.h:88
bool PipelineIdHasBeenSet() const
Definition Job.h:84
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
Aws::Utils::Json::JsonValue JsonValue