AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProcessingJobRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/ProcessingOutputConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/sagemaker/model/ProcessingResources.h>
13#include <aws/sagemaker/model/ProcessingStoppingCondition.h>
14#include <aws/sagemaker/model/AppSpecification.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/sagemaker/model/NetworkConfig.h>
17#include <aws/sagemaker/model/ExperimentConfig.h>
18#include <aws/sagemaker/model/ProcessingInput.h>
19#include <aws/sagemaker/model/Tag.h>
20#include <utility>
21
22namespace Aws
23{
24namespace SageMaker
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_SAGEMAKER_API CreateProcessingJobRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateProcessingJob"; }
41
42 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
43
45
46
48
52 inline const Aws::Vector<ProcessingInput>& GetProcessingInputs() const { return m_processingInputs; }
53 inline bool ProcessingInputsHasBeenSet() const { return m_processingInputsHasBeenSet; }
54 template<typename ProcessingInputsT = Aws::Vector<ProcessingInput>>
55 void SetProcessingInputs(ProcessingInputsT&& value) { m_processingInputsHasBeenSet = true; m_processingInputs = std::forward<ProcessingInputsT>(value); }
56 template<typename ProcessingInputsT = Aws::Vector<ProcessingInput>>
57 CreateProcessingJobRequest& WithProcessingInputs(ProcessingInputsT&& value) { SetProcessingInputs(std::forward<ProcessingInputsT>(value)); return *this;}
58 template<typename ProcessingInputsT = ProcessingInput>
59 CreateProcessingJobRequest& AddProcessingInputs(ProcessingInputsT&& value) { m_processingInputsHasBeenSet = true; m_processingInputs.emplace_back(std::forward<ProcessingInputsT>(value)); return *this; }
61
63
66 inline const ProcessingOutputConfig& GetProcessingOutputConfig() const { return m_processingOutputConfig; }
67 inline bool ProcessingOutputConfigHasBeenSet() const { return m_processingOutputConfigHasBeenSet; }
68 template<typename ProcessingOutputConfigT = ProcessingOutputConfig>
69 void SetProcessingOutputConfig(ProcessingOutputConfigT&& value) { m_processingOutputConfigHasBeenSet = true; m_processingOutputConfig = std::forward<ProcessingOutputConfigT>(value); }
70 template<typename ProcessingOutputConfigT = ProcessingOutputConfig>
71 CreateProcessingJobRequest& WithProcessingOutputConfig(ProcessingOutputConfigT&& value) { SetProcessingOutputConfig(std::forward<ProcessingOutputConfigT>(value)); return *this;}
73
75
79 inline const Aws::String& GetProcessingJobName() const { return m_processingJobName; }
80 inline bool ProcessingJobNameHasBeenSet() const { return m_processingJobNameHasBeenSet; }
81 template<typename ProcessingJobNameT = Aws::String>
82 void SetProcessingJobName(ProcessingJobNameT&& value) { m_processingJobNameHasBeenSet = true; m_processingJobName = std::forward<ProcessingJobNameT>(value); }
83 template<typename ProcessingJobNameT = Aws::String>
84 CreateProcessingJobRequest& WithProcessingJobName(ProcessingJobNameT&& value) { SetProcessingJobName(std::forward<ProcessingJobNameT>(value)); return *this;}
86
88
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 CreateProcessingJobRequest& WithProcessingResources(ProcessingResourcesT&& value) { SetProcessingResources(std::forward<ProcessingResourcesT>(value)); return *this;}
100
102
105 inline const ProcessingStoppingCondition& GetStoppingCondition() const { return m_stoppingCondition; }
106 inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; }
107 template<typename StoppingConditionT = ProcessingStoppingCondition>
108 void SetStoppingCondition(StoppingConditionT&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::forward<StoppingConditionT>(value); }
109 template<typename StoppingConditionT = ProcessingStoppingCondition>
110 CreateProcessingJobRequest& WithStoppingCondition(StoppingConditionT&& value) { SetStoppingCondition(std::forward<StoppingConditionT>(value)); return *this;}
112
114
117 inline const AppSpecification& GetAppSpecification() const { return m_appSpecification; }
118 inline bool AppSpecificationHasBeenSet() const { return m_appSpecificationHasBeenSet; }
119 template<typename AppSpecificationT = AppSpecification>
120 void SetAppSpecification(AppSpecificationT&& value) { m_appSpecificationHasBeenSet = true; m_appSpecification = std::forward<AppSpecificationT>(value); }
121 template<typename AppSpecificationT = AppSpecification>
122 CreateProcessingJobRequest& WithAppSpecification(AppSpecificationT&& value) { SetAppSpecification(std::forward<AppSpecificationT>(value)); return *this;}
124
126
135 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
136 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
137 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
138 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
139 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
140 CreateProcessingJobRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
141 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
142 CreateProcessingJobRequest& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
143 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
144 }
146
148
153 inline const NetworkConfig& GetNetworkConfig() const { return m_networkConfig; }
154 inline bool NetworkConfigHasBeenSet() const { return m_networkConfigHasBeenSet; }
155 template<typename NetworkConfigT = NetworkConfig>
156 void SetNetworkConfig(NetworkConfigT&& value) { m_networkConfigHasBeenSet = true; m_networkConfig = std::forward<NetworkConfigT>(value); }
157 template<typename NetworkConfigT = NetworkConfig>
158 CreateProcessingJobRequest& WithNetworkConfig(NetworkConfigT&& value) { SetNetworkConfig(std::forward<NetworkConfigT>(value)); return *this;}
160
162
166 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
167 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
168 template<typename RoleArnT = Aws::String>
169 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
170 template<typename RoleArnT = Aws::String>
171 CreateProcessingJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
173
175
186 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template<typename TagsT = Aws::Vector<Tag>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
190 template<typename TagsT = Aws::Vector<Tag>>
191 CreateProcessingJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
192 template<typename TagsT = Tag>
193 CreateProcessingJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
195
197
198 inline const ExperimentConfig& GetExperimentConfig() const { return m_experimentConfig; }
199 inline bool ExperimentConfigHasBeenSet() const { return m_experimentConfigHasBeenSet; }
200 template<typename ExperimentConfigT = ExperimentConfig>
201 void SetExperimentConfig(ExperimentConfigT&& value) { m_experimentConfigHasBeenSet = true; m_experimentConfig = std::forward<ExperimentConfigT>(value); }
202 template<typename ExperimentConfigT = ExperimentConfig>
203 CreateProcessingJobRequest& WithExperimentConfig(ExperimentConfigT&& value) { SetExperimentConfig(std::forward<ExperimentConfigT>(value)); return *this;}
205 private:
206
207 Aws::Vector<ProcessingInput> m_processingInputs;
208 bool m_processingInputsHasBeenSet = false;
209
210 ProcessingOutputConfig m_processingOutputConfig;
211 bool m_processingOutputConfigHasBeenSet = false;
212
213 Aws::String m_processingJobName;
214 bool m_processingJobNameHasBeenSet = false;
215
216 ProcessingResources m_processingResources;
217 bool m_processingResourcesHasBeenSet = false;
218
219 ProcessingStoppingCondition m_stoppingCondition;
220 bool m_stoppingConditionHasBeenSet = false;
221
222 AppSpecification m_appSpecification;
223 bool m_appSpecificationHasBeenSet = false;
224
226 bool m_environmentHasBeenSet = false;
227
228 NetworkConfig m_networkConfig;
229 bool m_networkConfigHasBeenSet = false;
230
231 Aws::String m_roleArn;
232 bool m_roleArnHasBeenSet = false;
233
234 Aws::Vector<Tag> m_tags;
235 bool m_tagsHasBeenSet = false;
236
237 ExperimentConfig m_experimentConfig;
238 bool m_experimentConfigHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace SageMaker
243} // 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