AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateProcessingJobRequest.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/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/AppSpecification.h>
13#include <aws/sagemaker/model/ExperimentConfig.h>
14#include <aws/sagemaker/model/NetworkConfig.h>
15#include <aws/sagemaker/model/ProcessingInput.h>
16#include <aws/sagemaker/model/ProcessingOutputConfig.h>
17#include <aws/sagemaker/model/ProcessingResources.h>
18#include <aws/sagemaker/model/ProcessingStoppingCondition.h>
19#include <aws/sagemaker/model/Tag.h>
20
21#include <utility>
22
23namespace Aws {
24namespace SageMaker {
25namespace Model {
26
30 public:
31 AWS_SAGEMAKER_API CreateProcessingJobRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateProcessingJob"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
44
48 inline const Aws::Vector<ProcessingInput>& GetProcessingInputs() const { return m_processingInputs; }
49 inline bool ProcessingInputsHasBeenSet() const { return m_processingInputsHasBeenSet; }
50 template <typename ProcessingInputsT = Aws::Vector<ProcessingInput>>
51 void SetProcessingInputs(ProcessingInputsT&& value) {
52 m_processingInputsHasBeenSet = true;
53 m_processingInputs = std::forward<ProcessingInputsT>(value);
54 }
55 template <typename ProcessingInputsT = Aws::Vector<ProcessingInput>>
57 SetProcessingInputs(std::forward<ProcessingInputsT>(value));
58 return *this;
59 }
60 template <typename ProcessingInputsT = ProcessingInput>
61 CreateProcessingJobRequest& AddProcessingInputs(ProcessingInputsT&& value) {
62 m_processingInputsHasBeenSet = true;
63 m_processingInputs.emplace_back(std::forward<ProcessingInputsT>(value));
64 return *this;
65 }
67
69
72 inline const ProcessingOutputConfig& GetProcessingOutputConfig() const { return m_processingOutputConfig; }
73 inline bool ProcessingOutputConfigHasBeenSet() const { return m_processingOutputConfigHasBeenSet; }
74 template <typename ProcessingOutputConfigT = ProcessingOutputConfig>
75 void SetProcessingOutputConfig(ProcessingOutputConfigT&& value) {
76 m_processingOutputConfigHasBeenSet = true;
77 m_processingOutputConfig = std::forward<ProcessingOutputConfigT>(value);
78 }
79 template <typename ProcessingOutputConfigT = ProcessingOutputConfig>
80 CreateProcessingJobRequest& WithProcessingOutputConfig(ProcessingOutputConfigT&& value) {
81 SetProcessingOutputConfig(std::forward<ProcessingOutputConfigT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetProcessingJobName() const { return m_processingJobName; }
92 inline bool ProcessingJobNameHasBeenSet() const { return m_processingJobNameHasBeenSet; }
93 template <typename ProcessingJobNameT = Aws::String>
94 void SetProcessingJobName(ProcessingJobNameT&& value) {
95 m_processingJobNameHasBeenSet = true;
96 m_processingJobName = std::forward<ProcessingJobNameT>(value);
97 }
98 template <typename ProcessingJobNameT = Aws::String>
100 SetProcessingJobName(std::forward<ProcessingJobNameT>(value));
101 return *this;
102 }
104
106
111 inline const ProcessingResources& GetProcessingResources() const { return m_processingResources; }
112 inline bool ProcessingResourcesHasBeenSet() const { return m_processingResourcesHasBeenSet; }
113 template <typename ProcessingResourcesT = ProcessingResources>
114 void SetProcessingResources(ProcessingResourcesT&& value) {
115 m_processingResourcesHasBeenSet = true;
116 m_processingResources = std::forward<ProcessingResourcesT>(value);
117 }
118 template <typename ProcessingResourcesT = ProcessingResources>
120 SetProcessingResources(std::forward<ProcessingResourcesT>(value));
121 return *this;
122 }
124
126
129 inline const ProcessingStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
130 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
131 template <typename StoppingConditionT = ProcessingStoppingCondition>
132 void SetStoppingCondition(StoppingConditionT&& value) {
133 m_stoppingConditionHasBeenSet = true;
134 m_stoppingCondition = std::forward<StoppingConditionT>(value);
135 }
136 template <typename StoppingConditionT = ProcessingStoppingCondition>
138 SetStoppingCondition(std::forward<StoppingConditionT>(value));
139 return *this;
140 }
142
144
147 inline const AppSpecification& GetAppSpecification() const { return m_appSpecification; }
148 inline bool AppSpecificationHasBeenSet() const { return m_appSpecificationHasBeenSet; }
149 template <typename AppSpecificationT = AppSpecification>
150 void SetAppSpecification(AppSpecificationT&& value) {
151 m_appSpecificationHasBeenSet = true;
152 m_appSpecification = std::forward<AppSpecificationT>(value);
153 }
154 template <typename AppSpecificationT = AppSpecification>
156 SetAppSpecification(std::forward<AppSpecificationT>(value));
157 return *this;
158 }
160
162
171 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
172 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
173 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
174 void SetEnvironment(EnvironmentT&& value) {
175 m_environmentHasBeenSet = true;
176 m_environment = std::forward<EnvironmentT>(value);
177 }
178 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
180 SetEnvironment(std::forward<EnvironmentT>(value));
181 return *this;
182 }
183 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
184 CreateProcessingJobRequest& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
185 m_environmentHasBeenSet = true;
186 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
187 return *this;
188 }
190
192
197 inline const NetworkConfig& GetNetworkConfig() const { return m_networkConfig; }
198 inline bool NetworkConfigHasBeenSet() const { return m_networkConfigHasBeenSet; }
199 template <typename NetworkConfigT = NetworkConfig>
200 void SetNetworkConfig(NetworkConfigT&& value) {
201 m_networkConfigHasBeenSet = true;
202 m_networkConfig = std::forward<NetworkConfigT>(value);
203 }
204 template <typename NetworkConfigT = NetworkConfig>
206 SetNetworkConfig(std::forward<NetworkConfigT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
217 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
218 template <typename RoleArnT = Aws::String>
219 void SetRoleArn(RoleArnT&& value) {
220 m_roleArnHasBeenSet = true;
221 m_roleArn = std::forward<RoleArnT>(value);
222 }
223 template <typename RoleArnT = Aws::String>
225 SetRoleArn(std::forward<RoleArnT>(value));
226 return *this;
227 }
229
231
242 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
243 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
244 template <typename TagsT = Aws::Vector<Tag>>
245 void SetTags(TagsT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags = std::forward<TagsT>(value);
248 }
249 template <typename TagsT = Aws::Vector<Tag>>
251 SetTags(std::forward<TagsT>(value));
252 return *this;
253 }
254 template <typename TagsT = Tag>
256 m_tagsHasBeenSet = true;
257 m_tags.emplace_back(std::forward<TagsT>(value));
258 return *this;
259 }
261
263
264 inline const ExperimentConfig& GetExperimentConfig() const { return m_experimentConfig; }
265 inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; }
266 template <typename ExperimentConfigT = ExperimentConfig>
267 void SetExperimentConfig(ExperimentConfigT&& value) {
268 m_experimentConfigHasBeenSet = true;
269 m_experimentConfig = std::forward<ExperimentConfigT>(value);
270 }
271 template <typename ExperimentConfigT = ExperimentConfig>
273 SetExperimentConfig(std::forward<ExperimentConfigT>(value));
274 return *this;
275 }
277 private:
278 Aws::Vector<ProcessingInput> m_processingInputs;
279
280 ProcessingOutputConfig m_processingOutputConfig;
281
282 Aws::String m_processingJobName;
283
284 ProcessingResources m_processingResources;
285
286 ProcessingStoppingCondition m_stoppingCondition;
287
288 AppSpecification m_appSpecification;
289
291
292 NetworkConfig m_networkConfig;
293
294 Aws::String m_roleArn;
295
296 Aws::Vector<Tag> m_tags;
297
298 ExperimentConfig m_experimentConfig;
299 bool m_processingInputsHasBeenSet = false;
300 bool m_processingOutputConfigHasBeenSet = false;
301 bool m_processingJobNameHasBeenSet = false;
302 bool m_processingResourcesHasBeenSet = false;
303 bool m_stoppingConditionHasBeenSet = false;
304 bool m_appSpecificationHasBeenSet = false;
305 bool m_environmentHasBeenSet = false;
306 bool m_networkConfigHasBeenSet = false;
307 bool m_roleArnHasBeenSet = false;
308 bool m_tagsHasBeenSet = false;
309 bool m_experimentConfigHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace SageMaker
314} // namespace Aws
CreateProcessingJobRequest & WithAppSpecification(AppSpecificationT &&value)
CreateProcessingJobRequest & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API CreateProcessingJobRequest()=default
CreateProcessingJobRequest & WithEnvironment(EnvironmentT &&value)
virtual const char * GetServiceRequestName() const override
void SetProcessingOutputConfig(ProcessingOutputConfigT &&value)
CreateProcessingJobRequest & AddProcessingInputs(ProcessingInputsT &&value)
CreateProcessingJobRequest & WithNetworkConfig(NetworkConfigT &&value)
CreateProcessingJobRequest & WithProcessingResources(ProcessingResourcesT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProcessingJobRequest & WithTags(TagsT &&value)
CreateProcessingJobRequest & WithProcessingOutputConfig(ProcessingOutputConfigT &&value)
CreateProcessingJobRequest & AddTags(TagsT &&value)
const Aws::Vector< ProcessingInput > & GetProcessingInputs() const
const ProcessingStoppingCondition & GetStoppingCondition() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
CreateProcessingJobRequest & WithRoleArn(RoleArnT &&value)
CreateProcessingJobRequest & WithExperimentConfig(ExperimentConfigT &&value)
CreateProcessingJobRequest & WithProcessingInputs(ProcessingInputsT &&value)
const ProcessingOutputConfig & GetProcessingOutputConfig() const
CreateProcessingJobRequest & WithProcessingJobName(ProcessingJobNameT &&value)
CreateProcessingJobRequest & WithStoppingCondition(StoppingConditionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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