AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeJobRunResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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/JobRunState.h>
15#include <aws/databrew/model/JobSample.h>
16#include <aws/databrew/model/LogSubscription.h>
17#include <aws/databrew/model/Output.h>
18#include <aws/databrew/model/ProfileConfiguration.h>
19#include <aws/databrew/model/RecipeReference.h>
20#include <aws/databrew/model/ValidationConfiguration.h>
21
22#include <utility>
23
24namespace Aws {
25template <typename RESULT_TYPE>
26class AmazonWebServiceResult;
27
28namespace Utils {
29namespace Json {
30class JsonValue;
31} // namespace Json
32} // namespace Utils
33namespace GlueDataBrew {
34namespace Model {
36 public:
37 AWS_GLUEDATABREW_API DescribeJobRunResult() = default;
40
42
45 inline int GetAttempt() const { return m_attempt; }
46 inline void SetAttempt(int value) {
47 m_attemptHasBeenSet = true;
48 m_attempt = value;
49 }
50 inline DescribeJobRunResult& WithAttempt(int value) {
51 SetAttempt(value);
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
61 template <typename CompletedOnT = Aws::Utils::DateTime>
62 void SetCompletedOn(CompletedOnT&& value) {
63 m_completedOnHasBeenSet = true;
64 m_completedOn = std::forward<CompletedOnT>(value);
65 }
66 template <typename CompletedOnT = Aws::Utils::DateTime>
67 DescribeJobRunResult& WithCompletedOn(CompletedOnT&& value) {
68 SetCompletedOn(std::forward<CompletedOnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
78 template <typename DatasetNameT = Aws::String>
79 void SetDatasetName(DatasetNameT&& value) {
80 m_datasetNameHasBeenSet = true;
81 m_datasetName = std::forward<DatasetNameT>(value);
82 }
83 template <typename DatasetNameT = Aws::String>
84 DescribeJobRunResult& WithDatasetName(DatasetNameT&& value) {
85 SetDatasetName(std::forward<DatasetNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
96 template <typename ErrorMessageT = Aws::String>
97 void SetErrorMessage(ErrorMessageT&& value) {
98 m_errorMessageHasBeenSet = true;
99 m_errorMessage = std::forward<ErrorMessageT>(value);
100 }
101 template <typename ErrorMessageT = Aws::String>
102 DescribeJobRunResult& WithErrorMessage(ErrorMessageT&& value) {
103 SetErrorMessage(std::forward<ErrorMessageT>(value));
104 return *this;
105 }
107
109
113 inline int GetExecutionTime() const { return m_executionTime; }
114 inline void SetExecutionTime(int value) {
115 m_executionTimeHasBeenSet = true;
116 m_executionTime = value;
117 }
119 SetExecutionTime(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetJobName() const { return m_jobName; }
129 template <typename JobNameT = Aws::String>
130 void SetJobName(JobNameT&& value) {
131 m_jobNameHasBeenSet = true;
132 m_jobName = std::forward<JobNameT>(value);
133 }
134 template <typename JobNameT = Aws::String>
136 SetJobName(std::forward<JobNameT>(value));
137 return *this;
138 }
140
142
147 inline const ProfileConfiguration& GetProfileConfiguration() const { return m_profileConfiguration; }
148 template <typename ProfileConfigurationT = ProfileConfiguration>
149 void SetProfileConfiguration(ProfileConfigurationT&& value) {
150 m_profileConfigurationHasBeenSet = true;
151 m_profileConfiguration = std::forward<ProfileConfigurationT>(value);
152 }
153 template <typename ProfileConfigurationT = ProfileConfiguration>
154 DescribeJobRunResult& WithProfileConfiguration(ProfileConfigurationT&& value) {
155 SetProfileConfiguration(std::forward<ProfileConfigurationT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<ValidationConfiguration>& GetValidationConfigurations() const { return m_validationConfigurations; }
165 template <typename ValidationConfigurationsT = Aws::Vector<ValidationConfiguration>>
166 void SetValidationConfigurations(ValidationConfigurationsT&& value) {
167 m_validationConfigurationsHasBeenSet = true;
168 m_validationConfigurations = std::forward<ValidationConfigurationsT>(value);
169 }
170 template <typename ValidationConfigurationsT = Aws::Vector<ValidationConfiguration>>
171 DescribeJobRunResult& WithValidationConfigurations(ValidationConfigurationsT&& value) {
172 SetValidationConfigurations(std::forward<ValidationConfigurationsT>(value));
173 return *this;
174 }
175 template <typename ValidationConfigurationsT = ValidationConfiguration>
176 DescribeJobRunResult& AddValidationConfigurations(ValidationConfigurationsT&& value) {
177 m_validationConfigurationsHasBeenSet = true;
178 m_validationConfigurations.emplace_back(std::forward<ValidationConfigurationsT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetRunId() const { return m_runId; }
188 template <typename RunIdT = Aws::String>
189 void SetRunId(RunIdT&& value) {
190 m_runIdHasBeenSet = true;
191 m_runId = std::forward<RunIdT>(value);
192 }
193 template <typename RunIdT = Aws::String>
195 SetRunId(std::forward<RunIdT>(value));
196 return *this;
197 }
199
201
204 inline JobRunState GetState() const { return m_state; }
205 inline void SetState(JobRunState value) {
206 m_stateHasBeenSet = true;
207 m_state = value;
208 }
210 SetState(value);
211 return *this;
212 }
214
216
219 inline LogSubscription GetLogSubscription() const { return m_logSubscription; }
221 m_logSubscriptionHasBeenSet = true;
222 m_logSubscription = value;
223 }
225 SetLogSubscription(value);
226 return *this;
227 }
229
231
235 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
236 template <typename LogGroupNameT = Aws::String>
237 void SetLogGroupName(LogGroupNameT&& value) {
238 m_logGroupNameHasBeenSet = true;
239 m_logGroupName = std::forward<LogGroupNameT>(value);
240 }
241 template <typename LogGroupNameT = Aws::String>
242 DescribeJobRunResult& WithLogGroupName(LogGroupNameT&& value) {
243 SetLogGroupName(std::forward<LogGroupNameT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Vector<Output>& GetOutputs() const { return m_outputs; }
253 template <typename OutputsT = Aws::Vector<Output>>
254 void SetOutputs(OutputsT&& value) {
255 m_outputsHasBeenSet = true;
256 m_outputs = std::forward<OutputsT>(value);
257 }
258 template <typename OutputsT = Aws::Vector<Output>>
260 SetOutputs(std::forward<OutputsT>(value));
261 return *this;
262 }
263 template <typename OutputsT = Output>
264 DescribeJobRunResult& AddOutputs(OutputsT&& value) {
265 m_outputsHasBeenSet = true;
266 m_outputs.emplace_back(std::forward<OutputsT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::Vector<DataCatalogOutput>& GetDataCatalogOutputs() const { return m_dataCatalogOutputs; }
277 template <typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
278 void SetDataCatalogOutputs(DataCatalogOutputsT&& value) {
279 m_dataCatalogOutputsHasBeenSet = true;
280 m_dataCatalogOutputs = std::forward<DataCatalogOutputsT>(value);
281 }
282 template <typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
283 DescribeJobRunResult& WithDataCatalogOutputs(DataCatalogOutputsT&& value) {
284 SetDataCatalogOutputs(std::forward<DataCatalogOutputsT>(value));
285 return *this;
286 }
287 template <typename DataCatalogOutputsT = DataCatalogOutput>
288 DescribeJobRunResult& AddDataCatalogOutputs(DataCatalogOutputsT&& value) {
289 m_dataCatalogOutputsHasBeenSet = true;
290 m_dataCatalogOutputs.emplace_back(std::forward<DataCatalogOutputsT>(value));
291 return *this;
292 }
294
296
300 inline const Aws::Vector<DatabaseOutput>& GetDatabaseOutputs() const { return m_databaseOutputs; }
301 template <typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
302 void SetDatabaseOutputs(DatabaseOutputsT&& value) {
303 m_databaseOutputsHasBeenSet = true;
304 m_databaseOutputs = std::forward<DatabaseOutputsT>(value);
305 }
306 template <typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
307 DescribeJobRunResult& WithDatabaseOutputs(DatabaseOutputsT&& value) {
308 SetDatabaseOutputs(std::forward<DatabaseOutputsT>(value));
309 return *this;
310 }
311 template <typename DatabaseOutputsT = DatabaseOutput>
312 DescribeJobRunResult& AddDatabaseOutputs(DatabaseOutputsT&& value) {
313 m_databaseOutputsHasBeenSet = true;
314 m_databaseOutputs.emplace_back(std::forward<DatabaseOutputsT>(value));
315 return *this;
316 }
318
320
321 inline const RecipeReference& GetRecipeReference() const { return m_recipeReference; }
322 template <typename RecipeReferenceT = RecipeReference>
323 void SetRecipeReference(RecipeReferenceT&& value) {
324 m_recipeReferenceHasBeenSet = true;
325 m_recipeReference = std::forward<RecipeReferenceT>(value);
326 }
327 template <typename RecipeReferenceT = RecipeReference>
328 DescribeJobRunResult& WithRecipeReference(RecipeReferenceT&& value) {
329 SetRecipeReference(std::forward<RecipeReferenceT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
339 template <typename StartedByT = Aws::String>
340 void SetStartedBy(StartedByT&& value) {
341 m_startedByHasBeenSet = true;
342 m_startedBy = std::forward<StartedByT>(value);
343 }
344 template <typename StartedByT = Aws::String>
345 DescribeJobRunResult& WithStartedBy(StartedByT&& value) {
346 SetStartedBy(std::forward<StartedByT>(value));
347 return *this;
348 }
350
352
355 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
356 template <typename StartedOnT = Aws::Utils::DateTime>
357 void SetStartedOn(StartedOnT&& value) {
358 m_startedOnHasBeenSet = true;
359 m_startedOn = std::forward<StartedOnT>(value);
360 }
361 template <typename StartedOnT = Aws::Utils::DateTime>
362 DescribeJobRunResult& WithStartedOn(StartedOnT&& value) {
363 SetStartedOn(std::forward<StartedOnT>(value));
364 return *this;
365 }
367
369
375 inline const JobSample& GetJobSample() const { return m_jobSample; }
376 template <typename JobSampleT = JobSample>
377 void SetJobSample(JobSampleT&& value) {
378 m_jobSampleHasBeenSet = true;
379 m_jobSample = std::forward<JobSampleT>(value);
380 }
381 template <typename JobSampleT = JobSample>
382 DescribeJobRunResult& WithJobSample(JobSampleT&& value) {
383 SetJobSample(std::forward<JobSampleT>(value));
384 return *this;
385 }
387
389
390 inline const Aws::String& GetRequestId() const { return m_requestId; }
391 template <typename RequestIdT = Aws::String>
392 void SetRequestId(RequestIdT&& value) {
393 m_requestIdHasBeenSet = true;
394 m_requestId = std::forward<RequestIdT>(value);
395 }
396 template <typename RequestIdT = Aws::String>
397 DescribeJobRunResult& WithRequestId(RequestIdT&& value) {
398 SetRequestId(std::forward<RequestIdT>(value));
399 return *this;
400 }
402 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
403
404 private:
405 int m_attempt{0};
406
407 Aws::Utils::DateTime m_completedOn{};
408
409 Aws::String m_datasetName;
410
411 Aws::String m_errorMessage;
412
413 int m_executionTime{0};
414
415 Aws::String m_jobName;
416
417 ProfileConfiguration m_profileConfiguration;
418
419 Aws::Vector<ValidationConfiguration> m_validationConfigurations;
420
421 Aws::String m_runId;
422
424
425 LogSubscription m_logSubscription{LogSubscription::NOT_SET};
426
427 Aws::String m_logGroupName;
428
429 Aws::Vector<Output> m_outputs;
430
431 Aws::Vector<DataCatalogOutput> m_dataCatalogOutputs;
432
433 Aws::Vector<DatabaseOutput> m_databaseOutputs;
434
435 RecipeReference m_recipeReference;
436
437 Aws::String m_startedBy;
438
439 Aws::Utils::DateTime m_startedOn{};
440
441 JobSample m_jobSample;
442
443 Aws::String m_requestId;
444 Aws::Http::HttpResponseCode m_HttpResponseCode;
445 bool m_attemptHasBeenSet = false;
446 bool m_completedOnHasBeenSet = false;
447 bool m_datasetNameHasBeenSet = false;
448 bool m_errorMessageHasBeenSet = false;
449 bool m_executionTimeHasBeenSet = false;
450 bool m_jobNameHasBeenSet = false;
451 bool m_profileConfigurationHasBeenSet = false;
452 bool m_validationConfigurationsHasBeenSet = false;
453 bool m_runIdHasBeenSet = false;
454 bool m_stateHasBeenSet = false;
455 bool m_logSubscriptionHasBeenSet = false;
456 bool m_logGroupNameHasBeenSet = false;
457 bool m_outputsHasBeenSet = false;
458 bool m_dataCatalogOutputsHasBeenSet = false;
459 bool m_databaseOutputsHasBeenSet = false;
460 bool m_recipeReferenceHasBeenSet = false;
461 bool m_startedByHasBeenSet = false;
462 bool m_startedOnHasBeenSet = false;
463 bool m_jobSampleHasBeenSet = false;
464 bool m_requestIdHasBeenSet = false;
465};
466
467} // namespace Model
468} // namespace GlueDataBrew
469} // namespace Aws
DescribeJobRunResult & WithLogGroupName(LogGroupNameT &&value)
AWS_GLUEDATABREW_API DescribeJobRunResult()=default
DescribeJobRunResult & WithProfileConfiguration(ProfileConfigurationT &&value)
const Aws::Vector< ValidationConfiguration > & GetValidationConfigurations() const
DescribeJobRunResult & WithErrorMessage(ErrorMessageT &&value)
void SetValidationConfigurations(ValidationConfigurationsT &&value)
DescribeJobRunResult & AddDatabaseOutputs(DatabaseOutputsT &&value)
DescribeJobRunResult & WithRequestId(RequestIdT &&value)
DescribeJobRunResult & WithCompletedOn(CompletedOnT &&value)
DescribeJobRunResult & WithDatasetName(DatasetNameT &&value)
void SetDataCatalogOutputs(DataCatalogOutputsT &&value)
DescribeJobRunResult & WithStartedOn(StartedOnT &&value)
DescribeJobRunResult & WithRunId(RunIdT &&value)
const Aws::Vector< Output > & GetOutputs() const
DescribeJobRunResult & WithDataCatalogOutputs(DataCatalogOutputsT &&value)
DescribeJobRunResult & WithState(JobRunState value)
DescribeJobRunResult & WithStartedBy(StartedByT &&value)
const Aws::Vector< DataCatalogOutput > & GetDataCatalogOutputs() const
DescribeJobRunResult & AddOutputs(OutputsT &&value)
const ProfileConfiguration & GetProfileConfiguration() const
AWS_GLUEDATABREW_API DescribeJobRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeJobRunResult & WithDatabaseOutputs(DatabaseOutputsT &&value)
DescribeJobRunResult & WithLogSubscription(LogSubscription value)
DescribeJobRunResult & WithExecutionTime(int value)
DescribeJobRunResult & WithOutputs(OutputsT &&value)
DescribeJobRunResult & WithValidationConfigurations(ValidationConfigurationsT &&value)
const Aws::Vector< DatabaseOutput > & GetDatabaseOutputs() const
void SetProfileConfiguration(ProfileConfigurationT &&value)
AWS_GLUEDATABREW_API DescribeJobRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeJobRunResult & AddValidationConfigurations(ValidationConfigurationsT &&value)
DescribeJobRunResult & WithJobSample(JobSampleT &&value)
const Aws::Utils::DateTime & GetStartedOn() const
const Aws::Utils::DateTime & GetCompletedOn() const
DescribeJobRunResult & WithAttempt(int value)
DescribeJobRunResult & WithRecipeReference(RecipeReferenceT &&value)
DescribeJobRunResult & WithJobName(JobNameT &&value)
DescribeJobRunResult & AddDataCatalogOutputs(DataCatalogOutputsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue