AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateRecipeJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/databrew/GlueDataBrewRequest.h>
11#include <aws/databrew/GlueDataBrew_EXPORTS.h>
12#include <aws/databrew/model/DataCatalogOutput.h>
13#include <aws/databrew/model/DatabaseOutput.h>
14#include <aws/databrew/model/EncryptionMode.h>
15#include <aws/databrew/model/LogSubscription.h>
16#include <aws/databrew/model/Output.h>
17#include <aws/databrew/model/RecipeReference.h>
18
19#include <utility>
20
21namespace Aws {
22namespace GlueDataBrew {
23namespace Model {
24
28 public:
29 AWS_GLUEDATABREW_API CreateRecipeJobRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRecipeJob"; }
36
37 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
44 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
45 template <typename DatasetNameT = Aws::String>
46 void SetDatasetName(DatasetNameT&& value) {
47 m_datasetNameHasBeenSet = true;
48 m_datasetName = std::forward<DatasetNameT>(value);
49 }
50 template <typename DatasetNameT = Aws::String>
51 CreateRecipeJobRequest& WithDatasetName(DatasetNameT&& value) {
52 SetDatasetName(std::forward<DatasetNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
63 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
64 template <typename EncryptionKeyArnT = Aws::String>
65 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
66 m_encryptionKeyArnHasBeenSet = true;
67 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
68 }
69 template <typename EncryptionKeyArnT = Aws::String>
70 CreateRecipeJobRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
71 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
72 return *this;
73 }
75
77
83 inline EncryptionMode GetEncryptionMode() const { return m_encryptionMode; }
84 inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }
85 inline void SetEncryptionMode(EncryptionMode value) {
86 m_encryptionModeHasBeenSet = true;
87 m_encryptionMode = value;
88 }
90 SetEncryptionMode(value);
91 return *this;
92 }
94
96
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template <typename NameT = Aws::String>
103 void SetName(NameT&& value) {
104 m_nameHasBeenSet = true;
105 m_name = std::forward<NameT>(value);
106 }
107 template <typename NameT = Aws::String>
109 SetName(std::forward<NameT>(value));
110 return *this;
111 }
113
115
119 inline LogSubscription GetLogSubscription() const { return m_logSubscription; }
120 inline bool LogSubscriptionHasBeenSet() const { return m_logSubscriptionHasBeenSet; }
122 m_logSubscriptionHasBeenSet = true;
123 m_logSubscription = value;
124 }
126 SetLogSubscription(value);
127 return *this;
128 }
130
132
136 inline int GetMaxCapacity() const { return m_maxCapacity; }
137 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
138 inline void SetMaxCapacity(int value) {
139 m_maxCapacityHasBeenSet = true;
140 m_maxCapacity = value;
141 }
143 SetMaxCapacity(value);
144 return *this;
145 }
147
149
152 inline int GetMaxRetries() const { return m_maxRetries; }
153 inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }
154 inline void SetMaxRetries(int value) {
155 m_maxRetriesHasBeenSet = true;
156 m_maxRetries = value;
157 }
159 SetMaxRetries(value);
160 return *this;
161 }
163
165
168 inline const Aws::Vector<Output>& GetOutputs() const { return m_outputs; }
169 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
170 template <typename OutputsT = Aws::Vector<Output>>
171 void SetOutputs(OutputsT&& value) {
172 m_outputsHasBeenSet = true;
173 m_outputs = std::forward<OutputsT>(value);
174 }
175 template <typename OutputsT = Aws::Vector<Output>>
177 SetOutputs(std::forward<OutputsT>(value));
178 return *this;
179 }
180 template <typename OutputsT = Output>
182 m_outputsHasBeenSet = true;
183 m_outputs.emplace_back(std::forward<OutputsT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::Vector<DataCatalogOutput>& GetDataCatalogOutputs() const { return m_dataCatalogOutputs; }
194 inline bool DataCatalogOutputsHasBeenSet() const { return m_dataCatalogOutputsHasBeenSet; }
195 template <typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
196 void SetDataCatalogOutputs(DataCatalogOutputsT&& value) {
197 m_dataCatalogOutputsHasBeenSet = true;
198 m_dataCatalogOutputs = std::forward<DataCatalogOutputsT>(value);
199 }
200 template <typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
201 CreateRecipeJobRequest& WithDataCatalogOutputs(DataCatalogOutputsT&& value) {
202 SetDataCatalogOutputs(std::forward<DataCatalogOutputsT>(value));
203 return *this;
204 }
205 template <typename DataCatalogOutputsT = DataCatalogOutput>
206 CreateRecipeJobRequest& AddDataCatalogOutputs(DataCatalogOutputsT&& value) {
207 m_dataCatalogOutputsHasBeenSet = true;
208 m_dataCatalogOutputs.emplace_back(std::forward<DataCatalogOutputsT>(value));
209 return *this;
210 }
212
214
218 inline const Aws::Vector<DatabaseOutput>& GetDatabaseOutputs() const { return m_databaseOutputs; }
219 inline bool DatabaseOutputsHasBeenSet() const { return m_databaseOutputsHasBeenSet; }
220 template <typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
221 void SetDatabaseOutputs(DatabaseOutputsT&& value) {
222 m_databaseOutputsHasBeenSet = true;
223 m_databaseOutputs = std::forward<DatabaseOutputsT>(value);
224 }
225 template <typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
226 CreateRecipeJobRequest& WithDatabaseOutputs(DatabaseOutputsT&& value) {
227 SetDatabaseOutputs(std::forward<DatabaseOutputsT>(value));
228 return *this;
229 }
230 template <typename DatabaseOutputsT = DatabaseOutput>
231 CreateRecipeJobRequest& AddDatabaseOutputs(DatabaseOutputsT&& value) {
232 m_databaseOutputsHasBeenSet = true;
233 m_databaseOutputs.emplace_back(std::forward<DatabaseOutputsT>(value));
234 return *this;
235 }
237
239
243 inline const Aws::String& GetProjectName() const { return m_projectName; }
244 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
245 template <typename ProjectNameT = Aws::String>
246 void SetProjectName(ProjectNameT&& value) {
247 m_projectNameHasBeenSet = true;
248 m_projectName = std::forward<ProjectNameT>(value);
249 }
250 template <typename ProjectNameT = Aws::String>
252 SetProjectName(std::forward<ProjectNameT>(value));
253 return *this;
254 }
256
258
259 inline const RecipeReference& GetRecipeReference() const { return m_recipeReference; }
260 inline bool RecipeReferenceHasBeenSet() const { return m_recipeReferenceHasBeenSet; }
261 template <typename RecipeReferenceT = RecipeReference>
262 void SetRecipeReference(RecipeReferenceT&& value) {
263 m_recipeReferenceHasBeenSet = true;
264 m_recipeReference = std::forward<RecipeReferenceT>(value);
265 }
266 template <typename RecipeReferenceT = RecipeReference>
267 CreateRecipeJobRequest& WithRecipeReference(RecipeReferenceT&& value) {
268 SetRecipeReference(std::forward<RecipeReferenceT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
279 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
280 template <typename RoleArnT = Aws::String>
281 void SetRoleArn(RoleArnT&& value) {
282 m_roleArnHasBeenSet = true;
283 m_roleArn = std::forward<RoleArnT>(value);
284 }
285 template <typename RoleArnT = Aws::String>
287 SetRoleArn(std::forward<RoleArnT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
297 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
298 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
299 void SetTags(TagsT&& value) {
300 m_tagsHasBeenSet = true;
301 m_tags = std::forward<TagsT>(value);
302 }
303 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
305 SetTags(std::forward<TagsT>(value));
306 return *this;
307 }
308 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
309 CreateRecipeJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
310 m_tagsHasBeenSet = true;
311 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
312 return *this;
313 }
315
317
321 inline int GetTimeout() const { return m_timeout; }
322 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
323 inline void SetTimeout(int value) {
324 m_timeoutHasBeenSet = true;
325 m_timeout = value;
326 }
328 SetTimeout(value);
329 return *this;
330 }
332 private:
333 Aws::String m_datasetName;
334
335 Aws::String m_encryptionKeyArn;
336
337 EncryptionMode m_encryptionMode{EncryptionMode::NOT_SET};
338
339 Aws::String m_name;
340
341 LogSubscription m_logSubscription{LogSubscription::NOT_SET};
342
343 int m_maxCapacity{0};
344
345 int m_maxRetries{0};
346
347 Aws::Vector<Output> m_outputs;
348
349 Aws::Vector<DataCatalogOutput> m_dataCatalogOutputs;
350
351 Aws::Vector<DatabaseOutput> m_databaseOutputs;
352
353 Aws::String m_projectName;
354
355 RecipeReference m_recipeReference;
356
357 Aws::String m_roleArn;
358
360
361 int m_timeout{0};
362 bool m_datasetNameHasBeenSet = false;
363 bool m_encryptionKeyArnHasBeenSet = false;
364 bool m_encryptionModeHasBeenSet = false;
365 bool m_nameHasBeenSet = false;
366 bool m_logSubscriptionHasBeenSet = false;
367 bool m_maxCapacityHasBeenSet = false;
368 bool m_maxRetriesHasBeenSet = false;
369 bool m_outputsHasBeenSet = false;
370 bool m_dataCatalogOutputsHasBeenSet = false;
371 bool m_databaseOutputsHasBeenSet = false;
372 bool m_projectNameHasBeenSet = false;
373 bool m_recipeReferenceHasBeenSet = false;
374 bool m_roleArnHasBeenSet = false;
375 bool m_tagsHasBeenSet = false;
376 bool m_timeoutHasBeenSet = false;
377};
378
379} // namespace Model
380} // namespace GlueDataBrew
381} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRecipeJobRequest & WithDatasetName(DatasetNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateRecipeJobRequest & WithName(NameT &&value)
AWS_GLUEDATABREW_API CreateRecipeJobRequest()=default
CreateRecipeJobRequest & WithEncryptionMode(EncryptionMode value)
CreateRecipeJobRequest & AddDatabaseOutputs(DatabaseOutputsT &&value)
const Aws::Vector< DatabaseOutput > & GetDatabaseOutputs() const
CreateRecipeJobRequest & WithLogSubscription(LogSubscription value)
CreateRecipeJobRequest & WithDataCatalogOutputs(DataCatalogOutputsT &&value)
CreateRecipeJobRequest & AddDataCatalogOutputs(DataCatalogOutputsT &&value)
CreateRecipeJobRequest & WithRecipeReference(RecipeReferenceT &&value)
CreateRecipeJobRequest & WithTags(TagsT &&value)
CreateRecipeJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< Output > & GetOutputs() const
CreateRecipeJobRequest & AddOutputs(OutputsT &&value)
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
void SetDataCatalogOutputs(DataCatalogOutputsT &&value)
CreateRecipeJobRequest & WithProjectName(ProjectNameT &&value)
const Aws::Vector< DataCatalogOutput > & GetDataCatalogOutputs() const
CreateRecipeJobRequest & WithOutputs(OutputsT &&value)
CreateRecipeJobRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
CreateRecipeJobRequest & WithMaxCapacity(int value)
CreateRecipeJobRequest & WithDatabaseOutputs(DatabaseOutputsT &&value)
CreateRecipeJobRequest & WithRoleArn(RoleArnT &&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