AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLabelingJobName(const Aws::String& value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName = value; }
55 inline void SetLabelingJobName(Aws::String&& value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName = std::move(value); }
56 inline void SetLabelingJobName(const char* value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName.assign(value); }
57 inline CreateLabelingJobRequest& WithLabelingJobName(const Aws::String& value) { SetLabelingJobName(value); return *this;}
58 inline CreateLabelingJobRequest& WithLabelingJobName(Aws::String&& value) { SetLabelingJobName(std::move(value)); return *this;}
59 inline CreateLabelingJobRequest& WithLabelingJobName(const char* value) { SetLabelingJobName(value); return *this;}
61
63
97 inline const Aws::String& GetLabelAttributeName() const{ return m_labelAttributeName; }
98 inline bool LabelAttributeNameHasBeenSet() const { return m_labelAttributeNameHasBeenSet; }
99 inline void SetLabelAttributeName(const Aws::String& value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName = value; }
100 inline void SetLabelAttributeName(Aws::String&& value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName = std::move(value); }
101 inline void SetLabelAttributeName(const char* value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName.assign(value); }
103 inline CreateLabelingJobRequest& WithLabelAttributeName(Aws::String&& value) { SetLabelAttributeName(std::move(value)); return *this;}
104 inline CreateLabelingJobRequest& WithLabelAttributeName(const char* value) { SetLabelAttributeName(value); return *this;}
106
108
125 inline const LabelingJobInputConfig& GetInputConfig() const{ return m_inputConfig; }
126 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
127 inline void SetInputConfig(const LabelingJobInputConfig& value) { m_inputConfigHasBeenSet = true; m_inputConfig = value; }
128 inline void SetInputConfig(LabelingJobInputConfig&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::move(value); }
130 inline CreateLabelingJobRequest& WithInputConfig(LabelingJobInputConfig&& value) { SetInputConfig(std::move(value)); return *this;}
132
134
138 inline const LabelingJobOutputConfig& GetOutputConfig() const{ return m_outputConfig; }
139 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
140 inline void SetOutputConfig(const LabelingJobOutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
141 inline void SetOutputConfig(LabelingJobOutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
143 inline CreateLabelingJobRequest& WithOutputConfig(LabelingJobOutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
145
147
153 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
154 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
155 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
156 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
157 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
158 inline CreateLabelingJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
159 inline CreateLabelingJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
160 inline CreateLabelingJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
162
164
202 inline const Aws::String& GetLabelCategoryConfigS3Uri() const{ return m_labelCategoryConfigS3Uri; }
203 inline bool LabelCategoryConfigS3UriHasBeenSet() const { return m_labelCategoryConfigS3UriHasBeenSet; }
204 inline void SetLabelCategoryConfigS3Uri(const Aws::String& value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri = value; }
205 inline void SetLabelCategoryConfigS3Uri(Aws::String&& value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri = std::move(value); }
206 inline void SetLabelCategoryConfigS3Uri(const char* value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri.assign(value); }
211
213
218 inline const LabelingJobStoppingConditions& GetStoppingConditions() const{ return m_stoppingConditions; }
219 inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
220 inline void SetStoppingConditions(const LabelingJobStoppingConditions& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = value; }
221 inline void SetStoppingConditions(LabelingJobStoppingConditions&& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = std::move(value); }
225
227
230 inline const LabelingJobAlgorithmsConfig& GetLabelingJobAlgorithmsConfig() const{ return m_labelingJobAlgorithmsConfig; }
231 inline bool LabelingJobAlgorithmsConfigHasBeenSet() const { return m_labelingJobAlgorithmsConfigHasBeenSet; }
232 inline void SetLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig& value) { m_labelingJobAlgorithmsConfigHasBeenSet = true; m_labelingJobAlgorithmsConfig = value; }
233 inline void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig&& value) { m_labelingJobAlgorithmsConfigHasBeenSet = true; m_labelingJobAlgorithmsConfig = std::move(value); }
237
239
243 inline const HumanTaskConfig& GetHumanTaskConfig() const{ return m_humanTaskConfig; }
244 inline bool HumanTaskConfigHasBeenSet() const { return m_humanTaskConfigHasBeenSet; }
245 inline void SetHumanTaskConfig(const HumanTaskConfig& value) { m_humanTaskConfigHasBeenSet = true; m_humanTaskConfig = value; }
246 inline void SetHumanTaskConfig(HumanTaskConfig&& value) { m_humanTaskConfigHasBeenSet = true; m_humanTaskConfig = std::move(value); }
248 inline CreateLabelingJobRequest& WithHumanTaskConfig(HumanTaskConfig&& value) { SetHumanTaskConfig(std::move(value)); return *this;}
250
252
258 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
259 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
260 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
261 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
262 inline CreateLabelingJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
263 inline CreateLabelingJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
264 inline CreateLabelingJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
265 inline CreateLabelingJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
267 private:
268
269 Aws::String m_labelingJobName;
270 bool m_labelingJobNameHasBeenSet = false;
271
272 Aws::String m_labelAttributeName;
273 bool m_labelAttributeNameHasBeenSet = false;
274
275 LabelingJobInputConfig m_inputConfig;
276 bool m_inputConfigHasBeenSet = false;
277
278 LabelingJobOutputConfig m_outputConfig;
279 bool m_outputConfigHasBeenSet = false;
280
281 Aws::String m_roleArn;
282 bool m_roleArnHasBeenSet = false;
283
284 Aws::String m_labelCategoryConfigS3Uri;
285 bool m_labelCategoryConfigS3UriHasBeenSet = false;
286
287 LabelingJobStoppingConditions m_stoppingConditions;
288 bool m_stoppingConditionsHasBeenSet = false;
289
290 LabelingJobAlgorithmsConfig m_labelingJobAlgorithmsConfig;
291 bool m_labelingJobAlgorithmsConfigHasBeenSet = false;
292
293 HumanTaskConfig m_humanTaskConfig;
294 bool m_humanTaskConfigHasBeenSet = false;
295
296 Aws::Vector<Tag> m_tags;
297 bool m_tagsHasBeenSet = false;
298 };
299
300} // namespace Model
301} // namespace SageMaker
302} // namespace Aws
CreateLabelingJobRequest & WithLabelingJobName(const Aws::String &value)
CreateLabelingJobRequest & WithInputConfig(const LabelingJobInputConfig &value)
const LabelingJobInputConfig & GetInputConfig() const
void SetInputConfig(LabelingJobInputConfig &&value)
virtual const char * GetServiceRequestName() const override
void SetStoppingConditions(LabelingJobStoppingConditions &&value)
CreateLabelingJobRequest & WithTags(Aws::Vector< Tag > &&value)
const LabelingJobStoppingConditions & GetStoppingConditions() const
CreateLabelingJobRequest & WithHumanTaskConfig(const HumanTaskConfig &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateLabelingJobRequest & WithStoppingConditions(LabelingJobStoppingConditions &&value)
CreateLabelingJobRequest & AddTags(Tag &&value)
CreateLabelingJobRequest & WithLabelAttributeName(const Aws::String &value)
CreateLabelingJobRequest & WithHumanTaskConfig(HumanTaskConfig &&value)
CreateLabelingJobRequest & WithRoleArn(const char *value)
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLabelingJobRequest & WithOutputConfig(LabelingJobOutputConfig &&value)
void SetOutputConfig(LabelingJobOutputConfig &&value)
void SetInputConfig(const LabelingJobInputConfig &value)
void SetStoppingConditions(const LabelingJobStoppingConditions &value)
const LabelingJobAlgorithmsConfig & GetLabelingJobAlgorithmsConfig() const
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(const Aws::String &value)
CreateLabelingJobRequest & WithLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig &value)
CreateLabelingJobRequest & WithRoleArn(Aws::String &&value)
CreateLabelingJobRequest & WithOutputConfig(const LabelingJobOutputConfig &value)
CreateLabelingJobRequest & WithRoleArn(const Aws::String &value)
void SetOutputConfig(const LabelingJobOutputConfig &value)
CreateLabelingJobRequest & WithStoppingConditions(const LabelingJobStoppingConditions &value)
CreateLabelingJobRequest & WithLabelAttributeName(const char *value)
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(const char *value)
CreateLabelingJobRequest & WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig &&value)
void SetLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig &value)
CreateLabelingJobRequest & AddTags(const Tag &value)
CreateLabelingJobRequest & WithLabelingJobName(const char *value)
void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig &&value)
CreateLabelingJobRequest & WithInputConfig(LabelingJobInputConfig &&value)
CreateLabelingJobRequest & WithLabelingJobName(Aws::String &&value)
const LabelingJobOutputConfig & GetOutputConfig() const
CreateLabelingJobRequest & WithLabelAttributeName(Aws::String &&value)
CreateLabelingJobRequest & WithTags(const Aws::Vector< Tag > &value)
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