AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProcessingJob.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/model/ProcessingOutputConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/sagemaker/model/ProcessingResources.h>
12#include <aws/sagemaker/model/ProcessingStoppingCondition.h>
13#include <aws/sagemaker/model/AppSpecification.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/sagemaker/model/NetworkConfig.h>
16#include <aws/sagemaker/model/ExperimentConfig.h>
17#include <aws/sagemaker/model/ProcessingJobStatus.h>
18#include <aws/core/utils/DateTime.h>
19#include <aws/sagemaker/model/ProcessingInput.h>
20#include <aws/sagemaker/model/Tag.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace SageMaker
34{
35namespace Model
36{
37
47 {
48 public:
49 AWS_SAGEMAKER_API ProcessingJob() = default;
50 AWS_SAGEMAKER_API ProcessingJob(Aws::Utils::Json::JsonView jsonValue);
51 AWS_SAGEMAKER_API ProcessingJob& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::Vector<ProcessingInput>& GetProcessingInputs() const { return m_processingInputs; }
60 inline bool ProcessingInputsHasBeenSet() const { return m_processingInputsHasBeenSet; }
61 template<typename ProcessingInputsT = Aws::Vector<ProcessingInput>>
62 void SetProcessingInputs(ProcessingInputsT&& value) { m_processingInputsHasBeenSet = true; m_processingInputs = std::forward<ProcessingInputsT>(value); }
63 template<typename ProcessingInputsT = Aws::Vector<ProcessingInput>>
64 ProcessingJob& WithProcessingInputs(ProcessingInputsT&& value) { SetProcessingInputs(std::forward<ProcessingInputsT>(value)); return *this;}
65 template<typename ProcessingInputsT = ProcessingInput>
66 ProcessingJob& AddProcessingInputs(ProcessingInputsT&& value) { m_processingInputsHasBeenSet = true; m_processingInputs.emplace_back(std::forward<ProcessingInputsT>(value)); return *this; }
68
70
71 inline const ProcessingOutputConfig& GetProcessingOutputConfig() const { return m_processingOutputConfig; }
72 inline bool ProcessingOutputConfigHasBeenSet() const { return m_processingOutputConfigHasBeenSet; }
73 template<typename ProcessingOutputConfigT = ProcessingOutputConfig>
74 void SetProcessingOutputConfig(ProcessingOutputConfigT&& value) { m_processingOutputConfigHasBeenSet = true; m_processingOutputConfig = std::forward<ProcessingOutputConfigT>(value); }
75 template<typename ProcessingOutputConfigT = ProcessingOutputConfig>
76 ProcessingJob& WithProcessingOutputConfig(ProcessingOutputConfigT&& value) { SetProcessingOutputConfig(std::forward<ProcessingOutputConfigT>(value)); return *this;}
78
80
83 inline const Aws::String& GetProcessingJobName() const { return m_processingJobName; }
84 inline bool ProcessingJobNameHasBeenSet() const { return m_processingJobNameHasBeenSet; }
85 template<typename ProcessingJobNameT = Aws::String>
86 void SetProcessingJobName(ProcessingJobNameT&& value) { m_processingJobNameHasBeenSet = true; m_processingJobName = std::forward<ProcessingJobNameT>(value); }
87 template<typename ProcessingJobNameT = Aws::String>
88 ProcessingJob& WithProcessingJobName(ProcessingJobNameT&& value) { SetProcessingJobName(std::forward<ProcessingJobNameT>(value)); return *this;}
90
92
93 inline const ProcessingResources& GetProcessingResources() const { return m_processingResources; }
94 inline bool ProcessingResourcesHasBeenSet() const { return m_processingResourcesHasBeenSet; }
95 template<typename ProcessingResourcesT = ProcessingResources>
96 void SetProcessingResources(ProcessingResourcesT&& value) { m_processingResourcesHasBeenSet = true; m_processingResources = std::forward<ProcessingResourcesT>(value); }
97 template<typename ProcessingResourcesT = ProcessingResources>
98 ProcessingJob& WithProcessingResources(ProcessingResourcesT&& value) { SetProcessingResources(std::forward<ProcessingResourcesT>(value)); return *this;}
100
102
103 inline const ProcessingStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
104 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
105 template<typename StoppingConditionT = ProcessingStoppingCondition>
106 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
107 template<typename StoppingConditionT = ProcessingStoppingCondition>
108 ProcessingJob& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
110
112
113 inline const AppSpecification& GetAppSpecification() const { return m_appSpecification; }
114 inline bool AppSpecificationHasBeenSet() const { return m_appSpecificationHasBeenSet; }
115 template<typename AppSpecificationT = AppSpecification>
116 void SetAppSpecification(AppSpecificationT&& value) { m_appSpecificationHasBeenSet = true; m_appSpecification = std::forward<AppSpecificationT>(value); }
117 template<typename AppSpecificationT = AppSpecification>
118 ProcessingJob& WithAppSpecification(AppSpecificationT&& value) { SetAppSpecification(std::forward<AppSpecificationT>(value)); return *this;}
120
122
125 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
126 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
127 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
128 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
129 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
130 ProcessingJob& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
131 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
132 ProcessingJob& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
133 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
134 }
136
138
139 inline const NetworkConfig& GetNetworkConfig() const { return m_networkConfig; }
140 inline bool NetworkConfigHasBeenSet() const { return m_networkConfigHasBeenSet; }
141 template<typename NetworkConfigT = NetworkConfig>
142 void SetNetworkConfig(NetworkConfigT&& value) { m_networkConfigHasBeenSet = true; m_networkConfig = std::forward<NetworkConfigT>(value); }
143 template<typename NetworkConfigT = NetworkConfig>
144 ProcessingJob& WithNetworkConfig(NetworkConfigT&& value) { SetNetworkConfig(std::forward<NetworkConfigT>(value)); return *this;}
146
148
151 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
152 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
153 template<typename RoleArnT = Aws::String>
154 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
155 template<typename RoleArnT = Aws::String>
156 ProcessingJob& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
158
160
161 inline const ExperimentConfig& GetExperimentConfig() const { return m_experimentConfig; }
162 inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; }
163 template<typename ExperimentConfigT = ExperimentConfig>
164 void SetExperimentConfig(ExperimentConfigT&& value) { m_experimentConfigHasBeenSet = true; m_experimentConfig = std::forward<ExperimentConfigT>(value); }
165 template<typename ExperimentConfigT = ExperimentConfig>
166 ProcessingJob& WithExperimentConfig(ExperimentConfigT&& value) { SetExperimentConfig(std::forward<ExperimentConfigT>(value)); return *this;}
168
170
173 inline const Aws::String& GetProcessingJobArn() const { return m_processingJobArn; }
174 inline bool ProcessingJobArnHasBeenSet() const { return m_processingJobArnHasBeenSet; }
175 template<typename ProcessingJobArnT = Aws::String>
176 void SetProcessingJobArn(ProcessingJobArnT&& value) { m_processingJobArnHasBeenSet = true; m_processingJobArn = std::forward<ProcessingJobArnT>(value); }
177 template<typename ProcessingJobArnT = Aws::String>
178 ProcessingJob& WithProcessingJobArn(ProcessingJobArnT&& value) { SetProcessingJobArn(std::forward<ProcessingJobArnT>(value)); return *this;}
180
182
185 inline ProcessingJobStatus GetProcessingJobStatus() const { return m_processingJobStatus; }
186 inline bool ProcessingJobStatusHasBeenSet() const { return m_processingJobStatusHasBeenSet; }
187 inline void SetProcessingJobStatus(ProcessingJobStatus value) { m_processingJobStatusHasBeenSet = true; m_processingJobStatus = value; }
190
192
196 inline const Aws::String& GetExitMessage() const { return m_exitMessage; }
197 inline bool ExitMessageHasBeenSet() const { return m_exitMessageHasBeenSet; }
198 template<typename ExitMessageT = Aws::String>
199 void SetExitMessage(ExitMessageT&& value) { m_exitMessageHasBeenSet = true; m_exitMessage = std::forward<ExitMessageT>(value); }
200 template<typename ExitMessageT = Aws::String>
201 ProcessingJob& WithExitMessage(ExitMessageT&& value) { SetExitMessage(std::forward<ExitMessageT>(value)); return *this;}
203
205
209 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
210 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
211 template<typename FailureReasonT = Aws::String>
212 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
213 template<typename FailureReasonT = Aws::String>
214 ProcessingJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
216
218
221 inline const Aws::Utils::DateTime& GetProcessingEndTime() const { return m_processingEndTime; }
222 inline bool ProcessingEndTimeHasBeenSet() const { return m_processingEndTimeHasBeenSet; }
223 template<typename ProcessingEndTimeT = Aws::Utils::DateTime>
224 void SetProcessingEndTime(ProcessingEndTimeT&& value) { m_processingEndTimeHasBeenSet = true; m_processingEndTime = std::forward<ProcessingEndTimeT>(value); }
225 template<typename ProcessingEndTimeT = Aws::Utils::DateTime>
226 ProcessingJob& WithProcessingEndTime(ProcessingEndTimeT&& value) { SetProcessingEndTime(std::forward<ProcessingEndTimeT>(value)); return *this;}
228
230
233 inline const Aws::Utils::DateTime& GetProcessingStartTime() const { return m_processingStartTime; }
234 inline bool ProcessingStartTimeHasBeenSet() const { return m_processingStartTimeHasBeenSet; }
235 template<typename ProcessingStartTimeT = Aws::Utils::DateTime>
236 void SetProcessingStartTime(ProcessingStartTimeT&& value) { m_processingStartTimeHasBeenSet = true; m_processingStartTime = std::forward<ProcessingStartTimeT>(value); }
237 template<typename ProcessingStartTimeT = Aws::Utils::DateTime>
238 ProcessingJob& WithProcessingStartTime(ProcessingStartTimeT&& value) { SetProcessingStartTime(std::forward<ProcessingStartTimeT>(value)); return *this;}
240
242
245 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
246 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
247 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
248 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
249 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
250 ProcessingJob& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
252
254
257 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
258 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
259 template<typename CreationTimeT = Aws::Utils::DateTime>
260 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
261 template<typename CreationTimeT = Aws::Utils::DateTime>
262 ProcessingJob& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
264
266
270 inline const Aws::String& GetMonitoringScheduleArn() const { return m_monitoringScheduleArn; }
271 inline bool MonitoringScheduleArnHasBeenSet() const { return m_monitoringScheduleArnHasBeenSet; }
272 template<typename MonitoringScheduleArnT = Aws::String>
273 void SetMonitoringScheduleArn(MonitoringScheduleArnT&& value) { m_monitoringScheduleArnHasBeenSet = true; m_monitoringScheduleArn = std::forward<MonitoringScheduleArnT>(value); }
274 template<typename MonitoringScheduleArnT = Aws::String>
275 ProcessingJob& WithMonitoringScheduleArn(MonitoringScheduleArnT&& value) { SetMonitoringScheduleArn(std::forward<MonitoringScheduleArnT>(value)); return *this;}
277
279
283 inline const Aws::String& GetAutoMLJobArn() const { return m_autoMLJobArn; }
284 inline bool AutoMLJobArnHasBeenSet() const { return m_autoMLJobArnHasBeenSet; }
285 template<typename AutoMLJobArnT = Aws::String>
286 void SetAutoMLJobArn(AutoMLJobArnT&& value) { m_autoMLJobArnHasBeenSet = true; m_autoMLJobArn = std::forward<AutoMLJobArnT>(value); }
287 template<typename AutoMLJobArnT = Aws::String>
288 ProcessingJob& WithAutoMLJobArn(AutoMLJobArnT&& value) { SetAutoMLJobArn(std::forward<AutoMLJobArnT>(value)); return *this;}
290
292
295 inline const Aws::String& GetTrainingJobArn() const { return m_trainingJobArn; }
296 inline bool TrainingJobArnHasBeenSet() const { return m_trainingJobArnHasBeenSet; }
297 template<typename TrainingJobArnT = Aws::String>
298 void SetTrainingJobArn(TrainingJobArnT&& value) { m_trainingJobArnHasBeenSet = true; m_trainingJobArn = std::forward<TrainingJobArnT>(value); }
299 template<typename TrainingJobArnT = Aws::String>
300 ProcessingJob& WithTrainingJobArn(TrainingJobArnT&& value) { SetTrainingJobArn(std::forward<TrainingJobArnT>(value)); return *this;}
302
304
310 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
311 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
312 template<typename TagsT = Aws::Vector<Tag>>
313 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
314 template<typename TagsT = Aws::Vector<Tag>>
315 ProcessingJob& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
316 template<typename TagsT = Tag>
317 ProcessingJob& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
319 private:
320
321 Aws::Vector<ProcessingInput> m_processingInputs;
322 bool m_processingInputsHasBeenSet = false;
323
324 ProcessingOutputConfig m_processingOutputConfig;
325 bool m_processingOutputConfigHasBeenSet = false;
326
327 Aws::String m_processingJobName;
328 bool m_processingJobNameHasBeenSet = false;
329
330 ProcessingResources m_processingResources;
331 bool m_processingResourcesHasBeenSet = false;
332
333 ProcessingStoppingCondition m_stoppingCondition;
334 bool m_stoppingConditionHasBeenSet = false;
335
336 AppSpecification m_appSpecification;
337 bool m_appSpecificationHasBeenSet = false;
338
340 bool m_environmentHasBeenSet = false;
341
342 NetworkConfig m_networkConfig;
343 bool m_networkConfigHasBeenSet = false;
344
345 Aws::String m_roleArn;
346 bool m_roleArnHasBeenSet = false;
347
348 ExperimentConfig m_experimentConfig;
349 bool m_experimentConfigHasBeenSet = false;
350
351 Aws::String m_processingJobArn;
352 bool m_processingJobArnHasBeenSet = false;
353
355 bool m_processingJobStatusHasBeenSet = false;
356
357 Aws::String m_exitMessage;
358 bool m_exitMessageHasBeenSet = false;
359
360 Aws::String m_failureReason;
361 bool m_failureReasonHasBeenSet = false;
362
363 Aws::Utils::DateTime m_processingEndTime{};
364 bool m_processingEndTimeHasBeenSet = false;
365
366 Aws::Utils::DateTime m_processingStartTime{};
367 bool m_processingStartTimeHasBeenSet = false;
368
369 Aws::Utils::DateTime m_lastModifiedTime{};
370 bool m_lastModifiedTimeHasBeenSet = false;
371
372 Aws::Utils::DateTime m_creationTime{};
373 bool m_creationTimeHasBeenSet = false;
374
375 Aws::String m_monitoringScheduleArn;
376 bool m_monitoringScheduleArnHasBeenSet = false;
377
378 Aws::String m_autoMLJobArn;
379 bool m_autoMLJobArnHasBeenSet = false;
380
381 Aws::String m_trainingJobArn;
382 bool m_trainingJobArnHasBeenSet = false;
383
384 Aws::Vector<Tag> m_tags;
385 bool m_tagsHasBeenSet = false;
386 };
387
388} // namespace Model
389} // namespace SageMaker
390} // namespace Aws
const Aws::Vector< ProcessingInput > & GetProcessingInputs() const
void SetAutoMLJobArn(AutoMLJobArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
void SetProcessingJobArn(ProcessingJobArnT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const ExperimentConfig & GetExperimentConfig() const
ProcessingJob & WithRoleArn(RoleArnT &&value)
ProcessingJob & WithAutoMLJobArn(AutoMLJobArnT &&value)
void SetCreationTime(CreationTimeT &&value)
ProcessingJob & AddProcessingInputs(ProcessingInputsT &&value)
ProcessingJob & WithTrainingJobArn(TrainingJobArnT &&value)
AWS_SAGEMAKER_API ProcessingJob & operator=(Aws::Utils::Json::JsonView jsonValue)
ProcessingJob & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetNetworkConfig(NetworkConfigT &&value)
void SetStoppingCondition(StoppingConditionT &&value)
void SetEnvironment(EnvironmentT &&value)
ProcessingJobStatus GetProcessingJobStatus() const
ProcessingJob & WithProcessingJobArn(ProcessingJobArnT &&value)
void SetProcessingEndTime(ProcessingEndTimeT &&value)
const AppSpecification & GetAppSpecification() const
ProcessingJob & WithTags(TagsT &&value)
void SetProcessingInputs(ProcessingInputsT &&value)
ProcessingJob & WithProcessingEndTime(ProcessingEndTimeT &&value)
const Aws::String & GetMonitoringScheduleArn() const
const ProcessingStoppingCondition & GetStoppingCondition() const
void SetProcessingStartTime(ProcessingStartTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ProcessingJob & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetRoleArn() const
void SetTrainingJobArn(TrainingJobArnT &&value)
const Aws::String & GetAutoMLJobArn() const
const ProcessingResources & GetProcessingResources() const
void SetProcessingJobStatus(ProcessingJobStatus value)
ProcessingJob & WithExperimentConfig(ExperimentConfigT &&value)
const Aws::String & GetProcessingJobName() const
const ProcessingOutputConfig & GetProcessingOutputConfig() const
ProcessingJob & WithStoppingCondition(StoppingConditionT &&value)
ProcessingJob & AddTags(TagsT &&value)
ProcessingJob & WithExitMessage(ExitMessageT &&value)
void SetProcessingResources(ProcessingResourcesT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetExperimentConfig(ExperimentConfigT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::DateTime & GetProcessingStartTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API ProcessingJob(Aws::Utils::Json::JsonView jsonValue)
ProcessingJob & WithProcessingJobName(ProcessingJobNameT &&value)
void SetProcessingOutputConfig(ProcessingOutputConfigT &&value)
void SetAppSpecification(AppSpecificationT &&value)
const Aws::String & GetTrainingJobArn() const
const Aws::String & GetProcessingJobArn() const
ProcessingJob & WithProcessingOutputConfig(ProcessingOutputConfigT &&value)
ProcessingJob & WithMonitoringScheduleArn(MonitoringScheduleArnT &&value)
ProcessingJob & WithProcessingJobStatus(ProcessingJobStatus value)
AWS_SAGEMAKER_API ProcessingJob()=default
ProcessingJob & WithNetworkConfig(NetworkConfigT &&value)
ProcessingJob & WithEnvironment(EnvironmentT &&value)
void SetMonitoringScheduleArn(MonitoringScheduleArnT &&value)
ProcessingJob & WithAppSpecification(AppSpecificationT &&value)
void SetFailureReason(FailureReasonT &&value)
ProcessingJob & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
ProcessingJob & WithProcessingStartTime(ProcessingStartTimeT &&value)
const Aws::Utils::DateTime & GetProcessingEndTime() const
void SetExitMessage(ExitMessageT &&value)
ProcessingJob & WithFailureReason(FailureReasonT &&value)
const Aws::String & GetExitMessage() const
const NetworkConfig & GetNetworkConfig() const
ProcessingJob & WithProcessingResources(ProcessingResourcesT &&value)
const Aws::String & GetFailureReason() const
void SetProcessingJobName(ProcessingJobNameT &&value)
ProcessingJob & WithProcessingInputs(ProcessingInputsT &&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
Aws::Utils::Json::JsonValue JsonValue