AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/elastictranscoder/ElasticTranscoder_EXPORTS.h>
8#include <aws/elastictranscoder/ElasticTranscoderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elastictranscoder/model/JobInput.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elastictranscoder/model/CreateJobOutput.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/elastictranscoder/model/CreateJobPlaylist.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ElasticTranscoder
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_ELASTICTRANSCODER_API CreateJobRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
39
40 AWS_ELASTICTRANSCODER_API Aws::String SerializePayload() const override;
41
42
44
50 inline const Aws::String& GetPipelineId() const{ return m_pipelineId; }
51 inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
52 inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; }
53 inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = std::move(value); }
54 inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); }
55 inline CreateJobRequest& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;}
56 inline CreateJobRequest& WithPipelineId(Aws::String&& value) { SetPipelineId(std::move(value)); return *this;}
57 inline CreateJobRequest& WithPipelineId(const char* value) { SetPipelineId(value); return *this;}
59
61
65 inline const JobInput& GetInput() const{ return m_input; }
66 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
67 inline void SetInput(const JobInput& value) { m_inputHasBeenSet = true; m_input = value; }
68 inline void SetInput(JobInput&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
69 inline CreateJobRequest& WithInput(const JobInput& value) { SetInput(value); return *this;}
70 inline CreateJobRequest& WithInput(JobInput&& value) { SetInput(std::move(value)); return *this;}
72
74
78 inline const Aws::Vector<JobInput>& GetInputs() const{ return m_inputs; }
79 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
80 inline void SetInputs(const Aws::Vector<JobInput>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
81 inline void SetInputs(Aws::Vector<JobInput>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
82 inline CreateJobRequest& WithInputs(const Aws::Vector<JobInput>& value) { SetInputs(value); return *this;}
83 inline CreateJobRequest& WithInputs(Aws::Vector<JobInput>&& value) { SetInputs(std::move(value)); return *this;}
84 inline CreateJobRequest& AddInputs(const JobInput& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
85 inline CreateJobRequest& AddInputs(JobInput&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
87
89
94 inline const CreateJobOutput& GetOutput() const{ return m_output; }
95 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
96 inline void SetOutput(const CreateJobOutput& value) { m_outputHasBeenSet = true; m_output = value; }
97 inline void SetOutput(CreateJobOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); }
98 inline CreateJobRequest& WithOutput(const CreateJobOutput& value) { SetOutput(value); return *this;}
99 inline CreateJobRequest& WithOutput(CreateJobOutput&& value) { SetOutput(std::move(value)); return *this;}
101
103
108 inline const Aws::Vector<CreateJobOutput>& GetOutputs() const{ return m_outputs; }
109 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
110 inline void SetOutputs(const Aws::Vector<CreateJobOutput>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
111 inline void SetOutputs(Aws::Vector<CreateJobOutput>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
112 inline CreateJobRequest& WithOutputs(const Aws::Vector<CreateJobOutput>& value) { SetOutputs(value); return *this;}
113 inline CreateJobRequest& WithOutputs(Aws::Vector<CreateJobOutput>&& value) { SetOutputs(std::move(value)); return *this;}
114 inline CreateJobRequest& AddOutputs(const CreateJobOutput& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
115 inline CreateJobRequest& AddOutputs(CreateJobOutput&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }
117
119
124 inline const Aws::String& GetOutputKeyPrefix() const{ return m_outputKeyPrefix; }
125 inline bool OutputKeyPrefixHasBeenSet() const { return m_outputKeyPrefixHasBeenSet; }
126 inline void SetOutputKeyPrefix(const Aws::String& value) { m_outputKeyPrefixHasBeenSet = true; m_outputKeyPrefix = value; }
127 inline void SetOutputKeyPrefix(Aws::String&& value) { m_outputKeyPrefixHasBeenSet = true; m_outputKeyPrefix = std::move(value); }
128 inline void SetOutputKeyPrefix(const char* value) { m_outputKeyPrefixHasBeenSet = true; m_outputKeyPrefix.assign(value); }
129 inline CreateJobRequest& WithOutputKeyPrefix(const Aws::String& value) { SetOutputKeyPrefix(value); return *this;}
130 inline CreateJobRequest& WithOutputKeyPrefix(Aws::String&& value) { SetOutputKeyPrefix(std::move(value)); return *this;}
131 inline CreateJobRequest& WithOutputKeyPrefix(const char* value) { SetOutputKeyPrefix(value); return *this;}
133
135
141 inline const Aws::Vector<CreateJobPlaylist>& GetPlaylists() const{ return m_playlists; }
142 inline bool PlaylistsHasBeenSet() const { return m_playlistsHasBeenSet; }
143 inline void SetPlaylists(const Aws::Vector<CreateJobPlaylist>& value) { m_playlistsHasBeenSet = true; m_playlists = value; }
144 inline void SetPlaylists(Aws::Vector<CreateJobPlaylist>&& value) { m_playlistsHasBeenSet = true; m_playlists = std::move(value); }
145 inline CreateJobRequest& WithPlaylists(const Aws::Vector<CreateJobPlaylist>& value) { SetPlaylists(value); return *this;}
146 inline CreateJobRequest& WithPlaylists(Aws::Vector<CreateJobPlaylist>&& value) { SetPlaylists(std::move(value)); return *this;}
147 inline CreateJobRequest& AddPlaylists(const CreateJobPlaylist& value) { m_playlistsHasBeenSet = true; m_playlists.push_back(value); return *this; }
148 inline CreateJobRequest& AddPlaylists(CreateJobPlaylist&& value) { m_playlistsHasBeenSet = true; m_playlists.push_back(std::move(value)); return *this; }
150
152
159 inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const{ return m_userMetadata; }
160 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
161 inline void SetUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
162 inline void SetUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
164 inline CreateJobRequest& WithUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetUserMetadata(std::move(value)); return *this;}
165 inline CreateJobRequest& AddUserMetadata(const Aws::String& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
166 inline CreateJobRequest& AddUserMetadata(Aws::String&& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
167 inline CreateJobRequest& AddUserMetadata(const Aws::String& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
168 inline CreateJobRequest& AddUserMetadata(Aws::String&& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), std::move(value)); return *this; }
169 inline CreateJobRequest& AddUserMetadata(const char* key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
170 inline CreateJobRequest& AddUserMetadata(Aws::String&& key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
171 inline CreateJobRequest& AddUserMetadata(const char* key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
173 private:
174
175 Aws::String m_pipelineId;
176 bool m_pipelineIdHasBeenSet = false;
177
178 JobInput m_input;
179 bool m_inputHasBeenSet = false;
180
181 Aws::Vector<JobInput> m_inputs;
182 bool m_inputsHasBeenSet = false;
183
184 CreateJobOutput m_output;
185 bool m_outputHasBeenSet = false;
186
188 bool m_outputsHasBeenSet = false;
189
190 Aws::String m_outputKeyPrefix;
191 bool m_outputKeyPrefixHasBeenSet = false;
192
194 bool m_playlistsHasBeenSet = false;
195
197 bool m_userMetadataHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace ElasticTranscoder
202} // namespace Aws
CreateJobRequest & WithPipelineId(const char *value)
CreateJobRequest & AddUserMetadata(const char *key, Aws::String &&value)
const Aws::Vector< CreateJobPlaylist > & GetPlaylists() const
const Aws::Vector< JobInput > & GetInputs() const
CreateJobRequest & WithOutputs(const Aws::Vector< CreateJobOutput > &value)
CreateJobRequest & AddUserMetadata(const Aws::String &key, Aws::String &&value)
CreateJobRequest & AddUserMetadata(Aws::String &&key, const char *value)
void SetOutputKeyPrefix(const Aws::String &value)
CreateJobRequest & AddUserMetadata(const Aws::String &key, const Aws::String &value)
CreateJobRequest & AddUserMetadata(const char *key, const char *value)
CreateJobRequest & AddOutputs(const CreateJobOutput &value)
CreateJobRequest & AddOutputs(CreateJobOutput &&value)
CreateJobRequest & WithPipelineId(const Aws::String &value)
void SetOutputs(const Aws::Vector< CreateJobOutput > &value)
CreateJobRequest & WithUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobRequest & WithInput(JobInput &&value)
void SetPlaylists(const Aws::Vector< CreateJobPlaylist > &value)
CreateJobRequest & WithInputs(Aws::Vector< JobInput > &&value)
CreateJobRequest & AddUserMetadata(Aws::String &&key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateJobRequest & WithOutput(const CreateJobOutput &value)
CreateJobRequest & WithPipelineId(Aws::String &&value)
void SetInputs(const Aws::Vector< JobInput > &value)
CreateJobRequest & AddInputs(JobInput &&value)
void SetUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetOutputs(Aws::Vector< CreateJobOutput > &&value)
CreateJobRequest & AddUserMetadata(Aws::String &&key, Aws::String &&value)
CreateJobRequest & WithOutputs(Aws::Vector< CreateJobOutput > &&value)
CreateJobRequest & WithInputs(const Aws::Vector< JobInput > &value)
CreateJobRequest & WithPlaylists(const Aws::Vector< CreateJobPlaylist > &value)
CreateJobRequest & WithInput(const JobInput &value)
void SetUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_ELASTICTRANSCODER_API CreateJobRequest()
const Aws::Vector< CreateJobOutput > & GetOutputs() const
CreateJobRequest & AddInputs(const JobInput &value)
CreateJobRequest & WithOutput(CreateJobOutput &&value)
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
void SetPlaylists(Aws::Vector< CreateJobPlaylist > &&value)
void SetInputs(Aws::Vector< JobInput > &&value)
CreateJobRequest & AddPlaylists(CreateJobPlaylist &&value)
CreateJobRequest & WithOutputKeyPrefix(const char *value)
CreateJobRequest & WithUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_ELASTICTRANSCODER_API Aws::String SerializePayload() const override
CreateJobRequest & WithOutputKeyPrefix(const Aws::String &value)
void SetOutput(const CreateJobOutput &value)
CreateJobRequest & AddPlaylists(const CreateJobPlaylist &value)
CreateJobRequest & WithOutputKeyPrefix(Aws::String &&value)
CreateJobRequest & WithPlaylists(Aws::Vector< CreateJobPlaylist > &&value)
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