AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobRun.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/databrew/model/JobRunState.h>
11#include <aws/databrew/model/LogSubscription.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/databrew/model/RecipeReference.h>
14#include <aws/databrew/model/JobSample.h>
15#include <aws/databrew/model/Output.h>
16#include <aws/databrew/model/DataCatalogOutput.h>
17#include <aws/databrew/model/DatabaseOutput.h>
18#include <aws/databrew/model/ValidationConfiguration.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace GlueDataBrew
32{
33namespace Model
34{
35
41 class JobRun
42 {
43 public:
44 AWS_GLUEDATABREW_API JobRun() = default;
45 AWS_GLUEDATABREW_API JobRun(Aws::Utils::Json::JsonView jsonValue);
46 AWS_GLUEDATABREW_API JobRun& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline int GetAttempt() const { return m_attempt; }
55 inline bool AttemptHasBeenSet() const { return m_attemptHasBeenSet; }
56 inline void SetAttempt(int value) { m_attemptHasBeenSet = true; m_attempt = value; }
57 inline JobRun& WithAttempt(int value) { SetAttempt(value); return *this;}
59
61
64 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
65 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
66 template<typename CompletedOnT = Aws::Utils::DateTime>
67 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
68 template<typename CompletedOnT = Aws::Utils::DateTime>
69 JobRun& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
77 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
78 template<typename DatasetNameT = Aws::String>
79 void SetDatasetName(DatasetNameT&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::forward<DatasetNameT>(value); }
80 template<typename DatasetNameT = Aws::String>
81 JobRun& WithDatasetName(DatasetNameT&& value) { SetDatasetName(std::forward<DatasetNameT>(value)); return *this;}
83
85
89 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
90 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
91 template<typename ErrorMessageT = Aws::String>
92 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
93 template<typename ErrorMessageT = Aws::String>
94 JobRun& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
96
98
102 inline int GetExecutionTime() const { return m_executionTime; }
103 inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
104 inline void SetExecutionTime(int value) { m_executionTimeHasBeenSet = true; m_executionTime = value; }
105 inline JobRun& WithExecutionTime(int value) { SetExecutionTime(value); return *this;}
107
109
112 inline const Aws::String& GetJobName() const { return m_jobName; }
113 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
114 template<typename JobNameT = Aws::String>
115 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
116 template<typename JobNameT = Aws::String>
117 JobRun& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
119
121
124 inline const Aws::String& GetRunId() const { return m_runId; }
125 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
126 template<typename RunIdT = Aws::String>
127 void SetRunId(RunIdT&& value) { m_runIdHasBeenSet = true; m_runId = std::forward<RunIdT>(value); }
128 template<typename RunIdT = Aws::String>
129 JobRun& WithRunId(RunIdT&& value) { SetRunId(std::forward<RunIdT>(value)); return *this;}
131
133
136 inline JobRunState GetState() const { return m_state; }
137 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
138 inline void SetState(JobRunState value) { m_stateHasBeenSet = true; m_state = value; }
139 inline JobRun& WithState(JobRunState value) { SetState(value); return *this;}
141
143
146 inline LogSubscription GetLogSubscription() const { return m_logSubscription; }
147 inline bool LogSubscriptionHasBeenSet() const { return m_logSubscriptionHasBeenSet; }
148 inline void SetLogSubscription(LogSubscription value) { m_logSubscriptionHasBeenSet = true; m_logSubscription = value; }
149 inline JobRun& WithLogSubscription(LogSubscription value) { SetLogSubscription(value); return *this;}
151
153
157 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
158 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
159 template<typename LogGroupNameT = Aws::String>
160 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
161 template<typename LogGroupNameT = Aws::String>
162 JobRun& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
164
166
169 inline const Aws::Vector<Output>& GetOutputs() const { return m_outputs; }
170 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
171 template<typename OutputsT = Aws::Vector<Output>>
172 void SetOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
173 template<typename OutputsT = Aws::Vector<Output>>
174 JobRun& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
175 template<typename OutputsT = Output>
176 JobRun& AddOutputs(OutputsT&& value) { m_outputsHasBeenSet = true; m_outputs.emplace_back(std::forward<OutputsT>(value)); return *this; }
178
180
184 inline const Aws::Vector<DataCatalogOutput>& GetDataCatalogOutputs() const { return m_dataCatalogOutputs; }
185 inline bool DataCatalogOutputsHasBeenSet() const { return m_dataCatalogOutputsHasBeenSet; }
186 template<typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
187 void SetDataCatalogOutputs(DataCatalogOutputsT&& value) { m_dataCatalogOutputsHasBeenSet = true; m_dataCatalogOutputs = std::forward<DataCatalogOutputsT>(value); }
188 template<typename DataCatalogOutputsT = Aws::Vector<DataCatalogOutput>>
189 JobRun& WithDataCatalogOutputs(DataCatalogOutputsT&& value) { SetDataCatalogOutputs(std::forward<DataCatalogOutputsT>(value)); return *this;}
190 template<typename DataCatalogOutputsT = DataCatalogOutput>
191 JobRun& AddDataCatalogOutputs(DataCatalogOutputsT&& value) { m_dataCatalogOutputsHasBeenSet = true; m_dataCatalogOutputs.emplace_back(std::forward<DataCatalogOutputsT>(value)); return *this; }
193
195
199 inline const Aws::Vector<DatabaseOutput>& GetDatabaseOutputs() const { return m_databaseOutputs; }
200 inline bool DatabaseOutputsHasBeenSet() const { return m_databaseOutputsHasBeenSet; }
201 template<typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
202 void SetDatabaseOutputs(DatabaseOutputsT&& value) { m_databaseOutputsHasBeenSet = true; m_databaseOutputs = std::forward<DatabaseOutputsT>(value); }
203 template<typename DatabaseOutputsT = Aws::Vector<DatabaseOutput>>
204 JobRun& WithDatabaseOutputs(DatabaseOutputsT&& value) { SetDatabaseOutputs(std::forward<DatabaseOutputsT>(value)); return *this;}
205 template<typename DatabaseOutputsT = DatabaseOutput>
206 JobRun& AddDatabaseOutputs(DatabaseOutputsT&& value) { m_databaseOutputsHasBeenSet = true; m_databaseOutputs.emplace_back(std::forward<DatabaseOutputsT>(value)); return *this; }
208
210
213 inline const RecipeReference& GetRecipeReference() const { return m_recipeReference; }
214 inline bool RecipeReferenceHasBeenSet() const { return m_recipeReferenceHasBeenSet; }
215 template<typename RecipeReferenceT = RecipeReference>
216 void SetRecipeReference(RecipeReferenceT&& value) { m_recipeReferenceHasBeenSet = true; m_recipeReference = std::forward<RecipeReferenceT>(value); }
217 template<typename RecipeReferenceT = RecipeReference>
218 JobRun& WithRecipeReference(RecipeReferenceT&& value) { SetRecipeReference(std::forward<RecipeReferenceT>(value)); return *this;}
220
222
225 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
226 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
227 template<typename StartedByT = Aws::String>
228 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet = true; m_startedBy = std::forward<StartedByT>(value); }
229 template<typename StartedByT = Aws::String>
230 JobRun& WithStartedBy(StartedByT&& value) { SetStartedBy(std::forward<StartedByT>(value)); return *this;}
232
234
237 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
238 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
239 template<typename StartedOnT = Aws::Utils::DateTime>
240 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::forward<StartedOnT>(value); }
241 template<typename StartedOnT = Aws::Utils::DateTime>
242 JobRun& WithStartedOn(StartedOnT&& value) { SetStartedOn(std::forward<StartedOnT>(value)); return *this;}
244
246
252 inline const JobSample& GetJobSample() const { return m_jobSample; }
253 inline bool JobSampleHasBeenSet() const { return m_jobSampleHasBeenSet; }
254 template<typename JobSampleT = JobSample>
255 void SetJobSample(JobSampleT&& value) { m_jobSampleHasBeenSet = true; m_jobSample = std::forward<JobSampleT>(value); }
256 template<typename JobSampleT = JobSample>
257 JobRun& WithJobSample(JobSampleT&& value) { SetJobSample(std::forward<JobSampleT>(value)); return *this;}
259
261
265 inline const Aws::Vector<ValidationConfiguration>& GetValidationConfigurations() const { return m_validationConfigurations; }
266 inline bool ValidationConfigurationsHasBeenSet() const { return m_validationConfigurationsHasBeenSet; }
267 template<typename ValidationConfigurationsT = Aws::Vector<ValidationConfiguration>>
268 void SetValidationConfigurations(ValidationConfigurationsT&& value) { m_validationConfigurationsHasBeenSet = true; m_validationConfigurations = std::forward<ValidationConfigurationsT>(value); }
269 template<typename ValidationConfigurationsT = Aws::Vector<ValidationConfiguration>>
270 JobRun& WithValidationConfigurations(ValidationConfigurationsT&& value) { SetValidationConfigurations(std::forward<ValidationConfigurationsT>(value)); return *this;}
271 template<typename ValidationConfigurationsT = ValidationConfiguration>
272 JobRun& AddValidationConfigurations(ValidationConfigurationsT&& value) { m_validationConfigurationsHasBeenSet = true; m_validationConfigurations.emplace_back(std::forward<ValidationConfigurationsT>(value)); return *this; }
274 private:
275
276 int m_attempt{0};
277 bool m_attemptHasBeenSet = false;
278
279 Aws::Utils::DateTime m_completedOn{};
280 bool m_completedOnHasBeenSet = false;
281
282 Aws::String m_datasetName;
283 bool m_datasetNameHasBeenSet = false;
284
285 Aws::String m_errorMessage;
286 bool m_errorMessageHasBeenSet = false;
287
288 int m_executionTime{0};
289 bool m_executionTimeHasBeenSet = false;
290
291 Aws::String m_jobName;
292 bool m_jobNameHasBeenSet = false;
293
294 Aws::String m_runId;
295 bool m_runIdHasBeenSet = false;
296
298 bool m_stateHasBeenSet = false;
299
300 LogSubscription m_logSubscription{LogSubscription::NOT_SET};
301 bool m_logSubscriptionHasBeenSet = false;
302
303 Aws::String m_logGroupName;
304 bool m_logGroupNameHasBeenSet = false;
305
306 Aws::Vector<Output> m_outputs;
307 bool m_outputsHasBeenSet = false;
308
309 Aws::Vector<DataCatalogOutput> m_dataCatalogOutputs;
310 bool m_dataCatalogOutputsHasBeenSet = false;
311
312 Aws::Vector<DatabaseOutput> m_databaseOutputs;
313 bool m_databaseOutputsHasBeenSet = false;
314
315 RecipeReference m_recipeReference;
316 bool m_recipeReferenceHasBeenSet = false;
317
318 Aws::String m_startedBy;
319 bool m_startedByHasBeenSet = false;
320
321 Aws::Utils::DateTime m_startedOn{};
322 bool m_startedOnHasBeenSet = false;
323
324 JobSample m_jobSample;
325 bool m_jobSampleHasBeenSet = false;
326
327 Aws::Vector<ValidationConfiguration> m_validationConfigurations;
328 bool m_validationConfigurationsHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace GlueDataBrew
333} // namespace Aws
void SetJobName(JobNameT &&value)
Definition JobRun.h:115
void SetCompletedOn(CompletedOnT &&value)
Definition JobRun.h:67
void SetStartedOn(StartedOnT &&value)
Definition JobRun.h:240
void SetExecutionTime(int value)
Definition JobRun.h:104
bool LogGroupNameHasBeenSet() const
Definition JobRun.h:158
JobRunState GetState() const
Definition JobRun.h:136
const RecipeReference & GetRecipeReference() const
Definition JobRun.h:213
JobRun & WithCompletedOn(CompletedOnT &&value)
Definition JobRun.h:69
void SetErrorMessage(ErrorMessageT &&value)
Definition JobRun.h:92
void SetAttempt(int value)
Definition JobRun.h:56
const Aws::Vector< ValidationConfiguration > & GetValidationConfigurations() const
Definition JobRun.h:265
AWS_GLUEDATABREW_API JobRun & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API JobRun(Aws::Utils::Json::JsonView jsonValue)
bool RecipeReferenceHasBeenSet() const
Definition JobRun.h:214
JobRun & WithOutputs(OutputsT &&value)
Definition JobRun.h:174
void SetValidationConfigurations(ValidationConfigurationsT &&value)
Definition JobRun.h:268
const Aws::Vector< DatabaseOutput > & GetDatabaseOutputs() const
Definition JobRun.h:199
bool ErrorMessageHasBeenSet() const
Definition JobRun.h:90
const Aws::Utils::DateTime & GetStartedOn() const
Definition JobRun.h:237
const Aws::String & GetStartedBy() const
Definition JobRun.h:225
JobRun & WithAttempt(int value)
Definition JobRun.h:57
JobRun & WithDataCatalogOutputs(DataCatalogOutputsT &&value)
Definition JobRun.h:189
JobRun & WithDatasetName(DatasetNameT &&value)
Definition JobRun.h:81
bool DataCatalogOutputsHasBeenSet() const
Definition JobRun.h:185
JobRun & WithLogSubscription(LogSubscription value)
Definition JobRun.h:149
bool ExecutionTimeHasBeenSet() const
Definition JobRun.h:103
void SetDatasetName(DatasetNameT &&value)
Definition JobRun.h:79
JobRun & WithDatabaseOutputs(DatabaseOutputsT &&value)
Definition JobRun.h:204
bool LogSubscriptionHasBeenSet() const
Definition JobRun.h:147
void SetDataCatalogOutputs(DataCatalogOutputsT &&value)
Definition JobRun.h:187
bool DatabaseOutputsHasBeenSet() const
Definition JobRun.h:200
void SetLogGroupName(LogGroupNameT &&value)
Definition JobRun.h:160
bool DatasetNameHasBeenSet() const
Definition JobRun.h:77
LogSubscription GetLogSubscription() const
Definition JobRun.h:146
const Aws::Vector< DataCatalogOutput > & GetDataCatalogOutputs() const
Definition JobRun.h:184
JobRun & WithJobName(JobNameT &&value)
Definition JobRun.h:117
JobRun & WithJobSample(JobSampleT &&value)
Definition JobRun.h:257
JobRun & AddValidationConfigurations(ValidationConfigurationsT &&value)
Definition JobRun.h:272
void SetOutputs(OutputsT &&value)
Definition JobRun.h:172
void SetRunId(RunIdT &&value)
Definition JobRun.h:127
JobRun & AddOutputs(OutputsT &&value)
Definition JobRun.h:176
bool CompletedOnHasBeenSet() const
Definition JobRun.h:65
JobRun & WithExecutionTime(int value)
Definition JobRun.h:105
JobRun & WithLogGroupName(LogGroupNameT &&value)
Definition JobRun.h:162
const Aws::String & GetDatasetName() const
Definition JobRun.h:76
AWS_GLUEDATABREW_API JobRun()=default
void SetDatabaseOutputs(DatabaseOutputsT &&value)
Definition JobRun.h:202
void SetJobSample(JobSampleT &&value)
Definition JobRun.h:255
void SetStartedBy(StartedByT &&value)
Definition JobRun.h:228
JobRun & WithStartedOn(StartedOnT &&value)
Definition JobRun.h:242
JobRun & AddDataCatalogOutputs(DataCatalogOutputsT &&value)
Definition JobRun.h:191
void SetRecipeReference(RecipeReferenceT &&value)
Definition JobRun.h:216
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
JobRun & WithStartedBy(StartedByT &&value)
Definition JobRun.h:230
const Aws::String & GetErrorMessage() const
Definition JobRun.h:89
JobRun & WithErrorMessage(ErrorMessageT &&value)
Definition JobRun.h:94
JobRun & WithState(JobRunState value)
Definition JobRun.h:139
bool ValidationConfigurationsHasBeenSet() const
Definition JobRun.h:266
JobRun & AddDatabaseOutputs(DatabaseOutputsT &&value)
Definition JobRun.h:206
const JobSample & GetJobSample() const
Definition JobRun.h:252
JobRun & WithRunId(RunIdT &&value)
Definition JobRun.h:129
void SetLogSubscription(LogSubscription value)
Definition JobRun.h:148
JobRun & WithRecipeReference(RecipeReferenceT &&value)
Definition JobRun.h:218
void SetState(JobRunState value)
Definition JobRun.h:138
const Aws::Vector< Output > & GetOutputs() const
Definition JobRun.h:169
JobRun & WithValidationConfigurations(ValidationConfigurationsT &&value)
Definition JobRun.h:270
const Aws::String & GetRunId() const
Definition JobRun.h:124
const Aws::String & GetLogGroupName() const
Definition JobRun.h:157
const Aws::Utils::DateTime & GetCompletedOn() const
Definition JobRun.h:64
const Aws::String & GetJobName() const
Definition JobRun.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue