AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeJobRunResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11#include <aws/databrew/model/DataCatalogOutput.h>
12#include <aws/databrew/model/DatabaseOutput.h>
13#include <aws/databrew/model/JobRunState.h>
14#include <aws/databrew/model/JobSample.h>
15#include <aws/databrew/model/LogSubscription.h>
16#include <aws/databrew/model/Output.h>
17#include <aws/databrew/model/ProfileConfiguration.h>
18#include <aws/databrew/model/RecipeReference.h>
19#include <aws/databrew/model/ValidationConfiguration.h>
20
21#include <utility>
22
23namespace Aws {
24template <typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils {
28namespace Json {
29class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace GlueDataBrew {
33namespace Model {
35 public:
36 AWS_GLUEDATABREW_API DescribeJobRunResult() = default;
39
41
44 inline int GetAttempt() const { return m_attempt; }
45 inline void SetAttempt(int value) {
46 m_attemptHasBeenSet = true;
47 m_attempt = value;
48 }
49 inline DescribeJobRunResult& WithAttempt(int value) {
50 SetAttempt(value);
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
60 template <typename CompletedOnT = Aws::Utils::DateTime>
61 void SetCompletedOn(CompletedOnT&& value) {
62 m_completedOnHasBeenSet = true;
63 m_completedOn = std::forward<CompletedOnT>(value);
64 }
65 template <typename CompletedOnT = Aws::Utils::DateTime>
66 DescribeJobRunResult& WithCompletedOn(CompletedOnT&& value) {
67 SetCompletedOn(std::forward<CompletedOnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
77 template <typename DatasetNameT = Aws::String>
78 void SetDatasetName(DatasetNameT&& value) {
79 m_datasetNameHasBeenSet = true;
80 m_datasetName = std::forward<DatasetNameT>(value);
81 }
82 template <typename DatasetNameT = Aws::String>
83 DescribeJobRunResult& WithDatasetName(DatasetNameT&& value) {
84 SetDatasetName(std::forward<DatasetNameT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
95 template <typename ErrorMessageT = Aws::String>
96 void SetErrorMessage(ErrorMessageT&& value) {
97 m_errorMessageHasBeenSet = true;
98 m_errorMessage = std::forward<ErrorMessageT>(value);
99 }
100 template <typename ErrorMessageT = Aws::String>
101 DescribeJobRunResult& WithErrorMessage(ErrorMessageT&& value) {
102 SetErrorMessage(std::forward<ErrorMessageT>(value));
103 return *this;
104 }
106
108
112 inline int GetExecutionTime() const { return m_executionTime; }
113 inline void SetExecutionTime(int value) {
114 m_executionTimeHasBeenSet = true;
115 m_executionTime = value;
116 }
118 SetExecutionTime(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetJobName() const { return m_jobName; }
128 template <typename JobNameT = Aws::String>
129 void SetJobName(JobNameT&& value) {
130 m_jobNameHasBeenSet = true;
131 m_jobName = std::forward<JobNameT>(value);
132 }
133 template <typename JobNameT = Aws::String>
135 SetJobName(std::forward<JobNameT>(value));
136 return *this;
137 }
139
141
146 inline const ProfileConfiguration& GetProfileConfiguration() const { return m_profileConfiguration; }
147 template <typename ProfileConfigurationT = ProfileConfiguration>
148 void SetProfileConfiguration(ProfileConfigurationT&& value) {
149 m_profileConfigurationHasBeenSet = true;
150 m_profileConfiguration = std::forward<ProfileConfigurationT>(value);
151 }
152 template <typename ProfileConfigurationT = ProfileConfiguration>
153 DescribeJobRunResult& WithProfileConfiguration(ProfileConfigurationT&& value) {
154 SetProfileConfiguration(std::forward<ProfileConfigurationT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<ValidationConfiguration>& GetValidationConfigurations() const { return m_validationConfigurations; }
164 template <typename ValidationConfigurationsT = Aws::Vector<ValidationConfiguration>>
165 void SetValidationConfigurations(ValidationConfigurationsT&& value) {
166 m_validationConfigurationsHasBeenSet = true;
167 m_validationConfigurations = std::forward<ValidationConfigurationsT>(value);
168 }
169 template <typename ValidationConfigurationsT = Aws::Vector<ValidationConfiguration>>
170 DescribeJobRunResult& WithValidationConfigurations(ValidationConfigurationsT&& value) {
171 SetValidationConfigurations(std::forward<ValidationConfigurationsT>(value));
172 return *this;
173 }
174 template <typename ValidationConfigurationsT = ValidationConfiguration>
175 DescribeJobRunResult& AddValidationConfigurations(ValidationConfigurationsT&& value) {
176 m_validationConfigurationsHasBeenSet = true;
177 m_validationConfigurations.emplace_back(std::forward<ValidationConfigurationsT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetRunId() const { return m_runId; }
187 template <typename RunIdT = Aws::String>
188 void SetRunId(RunIdT&& value) {
189 m_runIdHasBeenSet = true;
190 m_runId = std::forward<RunIdT>(value);
191 }
192 template <typename RunIdT = Aws::String>
194 SetRunId(std::forward<RunIdT>(value));
195 return *this;
196 }
198
200
203 inline JobRunState GetState() const { return m_state; }
204 inline void SetState(JobRunState value) {
205 m_stateHasBeenSet = true;
206 m_state = value;
207 }
209 SetState(value);
210 return *this;
211 }
213
215
218 inline LogSubscription GetLogSubscription() const { return m_logSubscription; }
220 m_logSubscriptionHasBeenSet = true;
221 m_logSubscription = value;
222 }
224 SetLogSubscription(value);
225 return *this;
226 }
228
230
234 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
235 template <typename LogGroupNameT = Aws::String>
236 void SetLogGroupName(LogGroupNameT&& value) {
237 m_logGroupNameHasBeenSet = true;
238 m_logGroupName = std::forward<LogGroupNameT>(value);
239 }
240 template <typename LogGroupNameT = Aws::String>
241 DescribeJobRunResult& WithLogGroupName(LogGroupNameT&& value) {
242 SetLogGroupName(std::forward<LogGroupNameT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::Vector<Output>& GetOutputs() const { return m_outputs; }
252 template <typename OutputsT = Aws::Vector<Output>>
253 void SetOutputs(OutputsT&& value) {
254 m_outputsHasBeenSet = true;
255 m_outputs = std::forward<OutputsT>(value);
256 }
257 template <typename OutputsT = Aws::Vector<Output>>
259 SetOutputs(std::forward<OutputsT>(value));
260 return *this;
261 }
262 template <typename OutputsT = Output>
263 DescribeJobRunResult& AddOutputs(OutputsT&& value) {
264 m_outputsHasBeenSet = true;
265 m_outputs.emplace_back(std::forward<OutputsT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::Vector<DataCatalogOutput>& GetDataCatalogOutputs() const { return m_dataCatalogOutputs; }
276 template <typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
277 void SetDataCatalogOutputs(DataCatalogOutputsT&& value) {
278 m_dataCatalogOutputsHasBeenSet = true;
279 m_dataCatalogOutputs = std::forward<DataCatalogOutputsT>(value);
280 }
281 template <typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
282 DescribeJobRunResult& WithDataCatalogOutputs(DataCatalogOutputsT&& value) {
283 SetDataCatalogOutputs(std::forward<DataCatalogOutputsT>(value));
284 return *this;
285 }
286 template <typename DataCatalogOutputsT = DataCatalogOutput>
287 DescribeJobRunResult& AddDataCatalogOutputs(DataCatalogOutputsT&& value) {
288 m_dataCatalogOutputsHasBeenSet = true;
289 m_dataCatalogOutputs.emplace_back(std::forward<DataCatalogOutputsT>(value));
290 return *this;
291 }
293
295
299 inline const Aws::Vector<DatabaseOutput>& GetDatabaseOutputs() const { return m_databaseOutputs; }
300 template <typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
301 void SetDatabaseOutputs(DatabaseOutputsT&& value) {
302 m_databaseOutputsHasBeenSet = true;
303 m_databaseOutputs = std::forward<DatabaseOutputsT>(value);
304 }
305 template <typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
306 DescribeJobRunResult& WithDatabaseOutputs(DatabaseOutputsT&& value) {
307 SetDatabaseOutputs(std::forward<DatabaseOutputsT>(value));
308 return *this;
309 }
310 template <typename DatabaseOutputsT = DatabaseOutput>
311 DescribeJobRunResult& AddDatabaseOutputs(DatabaseOutputsT&& value) {
312 m_databaseOutputsHasBeenSet = true;
313 m_databaseOutputs.emplace_back(std::forward<DatabaseOutputsT>(value));
314 return *this;
315 }
317
319
320 inline const RecipeReference& GetRecipeReference() const { return m_recipeReference; }
321 template <typename RecipeReferenceT = RecipeReference>
322 void SetRecipeReference(RecipeReferenceT&& value) {
323 m_recipeReferenceHasBeenSet = true;
324 m_recipeReference = std::forward<RecipeReferenceT>(value);
325 }
326 template <typename RecipeReferenceT = RecipeReference>
327 DescribeJobRunResult& WithRecipeReference(RecipeReferenceT&& value) {
328 SetRecipeReference(std::forward<RecipeReferenceT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
338 template <typename StartedByT = Aws::String>
339 void SetStartedBy(StartedByT&& value) {
340 m_startedByHasBeenSet = true;
341 m_startedBy = std::forward<StartedByT>(value);
342 }
343 template <typename StartedByT = Aws::String>
344 DescribeJobRunResult& WithStartedBy(StartedByT&& value) {
345 SetStartedBy(std::forward<StartedByT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
355 template <typename StartedOnT = Aws::Utils::DateTime>
356 void SetStartedOn(StartedOnT&& value) {
357 m_startedOnHasBeenSet = true;
358 m_startedOn = std::forward<StartedOnT>(value);
359 }
360 template <typename StartedOnT = Aws::Utils::DateTime>
361 DescribeJobRunResult& WithStartedOn(StartedOnT&& value) {
362 SetStartedOn(std::forward<StartedOnT>(value));
363 return *this;
364 }
366
368
374 inline const JobSample& GetJobSample() const { return m_jobSample; }
375 template <typename JobSampleT = JobSample>
376 void SetJobSample(JobSampleT&& value) {
377 m_jobSampleHasBeenSet = true;
378 m_jobSample = std::forward<JobSampleT>(value);
379 }
380 template <typename JobSampleT = JobSample>
381 DescribeJobRunResult& WithJobSample(JobSampleT&& value) {
382 SetJobSample(std::forward<JobSampleT>(value));
383 return *this;
384 }
386
388
389 inline const Aws::String& GetRequestId() const { return m_requestId; }
390 template <typename RequestIdT = Aws::String>
391 void SetRequestId(RequestIdT&& value) {
392 m_requestIdHasBeenSet = true;
393 m_requestId = std::forward<RequestIdT>(value);
394 }
395 template <typename RequestIdT = Aws::String>
396 DescribeJobRunResult& WithRequestId(RequestIdT&& value) {
397 SetRequestId(std::forward<RequestIdT>(value));
398 return *this;
399 }
401 private:
402 int m_attempt{0};
403
404 Aws::Utils::DateTime m_completedOn{};
405
406 Aws::String m_datasetName;
407
408 Aws::String m_errorMessage;
409
410 int m_executionTime{0};
411
412 Aws::String m_jobName;
413
414 ProfileConfiguration m_profileConfiguration;
415
416 Aws::Vector<ValidationConfiguration> m_validationConfigurations;
417
418 Aws::String m_runId;
419
421
422 LogSubscription m_logSubscription{LogSubscription::NOT_SET};
423
424 Aws::String m_logGroupName;
425
426 Aws::Vector<Output> m_outputs;
427
428 Aws::Vector<DataCatalogOutput> m_dataCatalogOutputs;
429
430 Aws::Vector<DatabaseOutput> m_databaseOutputs;
431
432 RecipeReference m_recipeReference;
433
434 Aws::String m_startedBy;
435
436 Aws::Utils::DateTime m_startedOn{};
437
438 JobSample m_jobSample;
439
440 Aws::String m_requestId;
441 bool m_attemptHasBeenSet = false;
442 bool m_completedOnHasBeenSet = false;
443 bool m_datasetNameHasBeenSet = false;
444 bool m_errorMessageHasBeenSet = false;
445 bool m_executionTimeHasBeenSet = false;
446 bool m_jobNameHasBeenSet = false;
447 bool m_profileConfigurationHasBeenSet = false;
448 bool m_validationConfigurationsHasBeenSet = false;
449 bool m_runIdHasBeenSet = false;
450 bool m_stateHasBeenSet = false;
451 bool m_logSubscriptionHasBeenSet = false;
452 bool m_logGroupNameHasBeenSet = false;
453 bool m_outputsHasBeenSet = false;
454 bool m_dataCatalogOutputsHasBeenSet = false;
455 bool m_databaseOutputsHasBeenSet = false;
456 bool m_recipeReferenceHasBeenSet = false;
457 bool m_startedByHasBeenSet = false;
458 bool m_startedOnHasBeenSet = false;
459 bool m_jobSampleHasBeenSet = false;
460 bool m_requestIdHasBeenSet = false;
461};
462
463} // namespace Model
464} // namespace GlueDataBrew
465} // 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)
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