AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateLabelingJobRequest.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/AWSString.h>
10#include <aws/sagemaker/model/LabelingJobInputConfig.h>
11#include <aws/sagemaker/model/LabelingJobOutputConfig.h>
12#include <aws/sagemaker/model/LabelingJobStoppingConditions.h>
13#include <aws/sagemaker/model/LabelingJobAlgorithmsConfig.h>
14#include <aws/sagemaker/model/HumanTaskConfig.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/sagemaker/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SageMaker
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SAGEMAKER_API CreateLabelingJobRequest() = 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 "CreateLabelingJob"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
43
45
52 inline const Aws::String& GetLabelingJobName() const { return m_labelingJobName; }
53 inline bool LabelingJobNameHasBeenSet() const { return m_labelingJobNameHasBeenSet; }
54 template<typename LabelingJobNameT = Aws::String>
55 void SetLabelingJobName(LabelingJobNameT&& value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName = std::forward<LabelingJobNameT>(value); }
56 template<typename LabelingJobNameT = Aws::String>
57 CreateLabelingJobRequest& WithLabelingJobName(LabelingJobNameT&& value) { SetLabelingJobName(std::forward<LabelingJobNameT>(value)); return *this;}
59
61
95 inline const Aws::String& GetLabelAttributeName() const { return m_labelAttributeName; }
96 inline bool LabelAttributeNameHasBeenSet() const { return m_labelAttributeNameHasBeenSet; }
97 template<typename LabelAttributeNameT = Aws::String>
98 void SetLabelAttributeName(LabelAttributeNameT&& value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName = std::forward<LabelAttributeNameT>(value); }
99 template<typename LabelAttributeNameT = Aws::String>
100 CreateLabelingJobRequest& WithLabelAttributeName(LabelAttributeNameT&& value) { SetLabelAttributeName(std::forward<LabelAttributeNameT>(value)); return *this;}
102
104
121 inline const LabelingJobInputConfig& GetInputConfig() const { return m_inputConfig; }
122 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
123 template<typename InputConfigT = LabelingJobInputConfig>
124 void SetInputConfig(InputConfigT&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::forward<InputConfigT>(value); }
125 template<typename InputConfigT = LabelingJobInputConfig>
126 CreateLabelingJobRequest& WithInputConfig(InputConfigT&& value) { SetInputConfig(std::forward<InputConfigT>(value)); return *this;}
128
130
134 inline const LabelingJobOutputConfig& GetOutputConfig() const { return m_outputConfig; }
135 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
136 template<typename OutputConfigT = LabelingJobOutputConfig>
137 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
138 template<typename OutputConfigT = LabelingJobOutputConfig>
139 CreateLabelingJobRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
141
143
149 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
150 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
151 template<typename RoleArnT = Aws::String>
152 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
153 template<typename RoleArnT = Aws::String>
154 CreateLabelingJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
156
158
196 inline const Aws::String& GetLabelCategoryConfigS3Uri() const { return m_labelCategoryConfigS3Uri; }
197 inline bool LabelCategoryConfigS3UriHasBeenSet() const { return m_labelCategoryConfigS3UriHasBeenSet; }
198 template<typename LabelCategoryConfigS3UriT = Aws::String>
199 void SetLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT&& value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri = std::forward<LabelCategoryConfigS3UriT>(value); }
200 template<typename LabelCategoryConfigS3UriT = Aws::String>
201 CreateLabelingJobRequest& WithLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT&& value) { SetLabelCategoryConfigS3Uri(std::forward<LabelCategoryConfigS3UriT>(value)); return *this;}
203
205
210 inline const LabelingJobStoppingConditions& GetStoppingConditions() const { return m_stoppingConditions; }
211 inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
212 template<typename StoppingConditionsT = LabelingJobStoppingConditions>
213 void SetStoppingConditions(StoppingConditionsT&& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = std::forward<StoppingConditionsT>(value); }
214 template<typename StoppingConditionsT = LabelingJobStoppingConditions>
215 CreateLabelingJobRequest& WithStoppingConditions(StoppingConditionsT&& value) { SetStoppingConditions(std::forward<StoppingConditionsT>(value)); return *this;}
217
219
222 inline const LabelingJobAlgorithmsConfig& GetLabelingJobAlgorithmsConfig() const { return m_labelingJobAlgorithmsConfig; }
223 inline bool LabelingJobAlgorithmsConfigHasBeenSet() const { return m_labelingJobAlgorithmsConfigHasBeenSet; }
224 template<typename LabelingJobAlgorithmsConfigT = LabelingJobAlgorithmsConfig>
225 void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT&& value) { m_labelingJobAlgorithmsConfigHasBeenSet = true; m_labelingJobAlgorithmsConfig = std::forward<LabelingJobAlgorithmsConfigT>(value); }
226 template<typename LabelingJobAlgorithmsConfigT = LabelingJobAlgorithmsConfig>
227 CreateLabelingJobRequest& WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT&& value) { SetLabelingJobAlgorithmsConfig(std::forward<LabelingJobAlgorithmsConfigT>(value)); return *this;}
229
231
235 inline const HumanTaskConfig& GetHumanTaskConfig() const { return m_humanTaskConfig; }
236 inline bool HumanTaskConfigHasBeenSet() const { return m_humanTaskConfigHasBeenSet; }
237 template<typename HumanTaskConfigT = HumanTaskConfig>
238 void SetHumanTaskConfig(HumanTaskConfigT&& value) { m_humanTaskConfigHasBeenSet = true; m_humanTaskConfig = std::forward<HumanTaskConfigT>(value); }
239 template<typename HumanTaskConfigT = HumanTaskConfig>
240 CreateLabelingJobRequest& WithHumanTaskConfig(HumanTaskConfigT&& value) { SetHumanTaskConfig(std::forward<HumanTaskConfigT>(value)); return *this;}
242
244
250 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 template<typename TagsT = Aws::Vector<Tag>>
253 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
254 template<typename TagsT = Aws::Vector<Tag>>
255 CreateLabelingJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
256 template<typename TagsT = Tag>
257 CreateLabelingJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
259 private:
260
261 Aws::String m_labelingJobName;
262 bool m_labelingJobNameHasBeenSet = false;
263
264 Aws::String m_labelAttributeName;
265 bool m_labelAttributeNameHasBeenSet = false;
266
267 LabelingJobInputConfig m_inputConfig;
268 bool m_inputConfigHasBeenSet = false;
269
270 LabelingJobOutputConfig m_outputConfig;
271 bool m_outputConfigHasBeenSet = false;
272
273 Aws::String m_roleArn;
274 bool m_roleArnHasBeenSet = false;
275
276 Aws::String m_labelCategoryConfigS3Uri;
277 bool m_labelCategoryConfigS3UriHasBeenSet = false;
278
279 LabelingJobStoppingConditions m_stoppingConditions;
280 bool m_stoppingConditionsHasBeenSet = false;
281
282 LabelingJobAlgorithmsConfig m_labelingJobAlgorithmsConfig;
283 bool m_labelingJobAlgorithmsConfigHasBeenSet = false;
284
285 HumanTaskConfig m_humanTaskConfig;
286 bool m_humanTaskConfigHasBeenSet = false;
287
288 Aws::Vector<Tag> m_tags;
289 bool m_tagsHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace SageMaker
294} // namespace Aws
const LabelingJobInputConfig & GetInputConfig() const
CreateLabelingJobRequest & WithHumanTaskConfig(HumanTaskConfigT &&value)
void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT &&value)
CreateLabelingJobRequest & WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateLabelingJobRequest & WithLabelAttributeName(LabelAttributeNameT &&value)
CreateLabelingJobRequest & WithTags(TagsT &&value)
const LabelingJobStoppingConditions & GetStoppingConditions() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateLabelingJobRequest & WithRoleArn(RoleArnT &&value)
void SetLabelAttributeName(LabelAttributeNameT &&value)
CreateLabelingJobRequest & WithOutputConfig(OutputConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLabelingJobRequest & WithInputConfig(InputConfigT &&value)
const LabelingJobAlgorithmsConfig & GetLabelingJobAlgorithmsConfig() const
void SetLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT &&value)
CreateLabelingJobRequest & WithLabelingJobName(LabelingJobNameT &&value)
CreateLabelingJobRequest & WithStoppingConditions(StoppingConditionsT &&value)
CreateLabelingJobRequest & AddTags(TagsT &&value)
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT &&value)
const LabelingJobOutputConfig & GetOutputConfig() const
AWS_SAGEMAKER_API CreateLabelingJobRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector