AWS SDK for C++

AWS SDK for C++ Version 1.11.633

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
93 inline const Aws::String& GetLabelAttributeName() const { return m_labelAttributeName; }
94 inline bool LabelAttributeNameHasBeenSet() const { return m_labelAttributeNameHasBeenSet; }
95 template<typename LabelAttributeNameT = Aws::String>
96 void SetLabelAttributeName(LabelAttributeNameT&& value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName = std::forward<LabelAttributeNameT>(value); }
97 template<typename LabelAttributeNameT = Aws::String>
98 CreateLabelingJobRequest& WithLabelAttributeName(LabelAttributeNameT&& value) { SetLabelAttributeName(std::forward<LabelAttributeNameT>(value)); return *this;}
100
102
119 inline const LabelingJobInputConfig& GetInputConfig() const { return m_inputConfig; }
120 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
121 template<typename InputConfigT = LabelingJobInputConfig>
122 void SetInputConfig(InputConfigT&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::forward<InputConfigT>(value); }
123 template<typename InputConfigT = LabelingJobInputConfig>
124 CreateLabelingJobRequest& WithInputConfig(InputConfigT&& value) { SetInputConfig(std::forward<InputConfigT>(value)); return *this;}
126
128
132 inline const LabelingJobOutputConfig& GetOutputConfig() const { return m_outputConfig; }
133 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
134 template<typename OutputConfigT = LabelingJobOutputConfig>
135 void SetOutputConfig(OutputConfigT&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::forward<OutputConfigT>(value); }
136 template<typename OutputConfigT = LabelingJobOutputConfig>
137 CreateLabelingJobRequest& WithOutputConfig(OutputConfigT&& value) { SetOutputConfig(std::forward<OutputConfigT>(value)); return *this;}
139
141
147 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
148 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
149 template<typename RoleArnT = Aws::String>
150 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
151 template<typename RoleArnT = Aws::String>
152 CreateLabelingJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
154
156
194 inline const Aws::String& GetLabelCategoryConfigS3Uri() const { return m_labelCategoryConfigS3Uri; }
195 inline bool LabelCategoryConfigS3UriHasBeenSet() const { return m_labelCategoryConfigS3UriHasBeenSet; }
196 template<typename LabelCategoryConfigS3UriT = Aws::String>
197 void SetLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT&& value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri = std::forward<LabelCategoryConfigS3UriT>(value); }
198 template<typename LabelCategoryConfigS3UriT = Aws::String>
199 CreateLabelingJobRequest& WithLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT&& value) { SetLabelCategoryConfigS3Uri(std::forward<LabelCategoryConfigS3UriT>(value)); return *this;}
201
203
208 inline const LabelingJobStoppingConditions& GetStoppingConditions() const { return m_stoppingConditions; }
209 inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
210 template<typename StoppingConditionsT = LabelingJobStoppingConditions>
211 void SetStoppingConditions(StoppingConditionsT&& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = std::forward<StoppingConditionsT>(value); }
212 template<typename StoppingConditionsT = LabelingJobStoppingConditions>
213 CreateLabelingJobRequest& WithStoppingConditions(StoppingConditionsT&& value) { SetStoppingConditions(std::forward<StoppingConditionsT>(value)); return *this;}
215
217
220 inline const LabelingJobAlgorithmsConfig& GetLabelingJobAlgorithmsConfig() const { return m_labelingJobAlgorithmsConfig; }
221 inline bool LabelingJobAlgorithmsConfigHasBeenSet() const { return m_labelingJobAlgorithmsConfigHasBeenSet; }
222 template<typename LabelingJobAlgorithmsConfigT = LabelingJobAlgorithmsConfig>
223 void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT&& value) { m_labelingJobAlgorithmsConfigHasBeenSet = true; m_labelingJobAlgorithmsConfig = std::forward<LabelingJobAlgorithmsConfigT>(value); }
224 template<typename LabelingJobAlgorithmsConfigT = LabelingJobAlgorithmsConfig>
225 CreateLabelingJobRequest& WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT&& value) { SetLabelingJobAlgorithmsConfig(std::forward<LabelingJobAlgorithmsConfigT>(value)); return *this;}
227
229
233 inline const HumanTaskConfig& GetHumanTaskConfig() const { return m_humanTaskConfig; }
234 inline bool HumanTaskConfigHasBeenSet() const { return m_humanTaskConfigHasBeenSet; }
235 template<typename HumanTaskConfigT = HumanTaskConfig>
236 void SetHumanTaskConfig(HumanTaskConfigT&& value) { m_humanTaskConfigHasBeenSet = true; m_humanTaskConfig = std::forward<HumanTaskConfigT>(value); }
237 template<typename HumanTaskConfigT = HumanTaskConfig>
238 CreateLabelingJobRequest& WithHumanTaskConfig(HumanTaskConfigT&& value) { SetHumanTaskConfig(std::forward<HumanTaskConfigT>(value)); return *this;}
240
242
248 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
249 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
250 template<typename TagsT = Aws::Vector<Tag>>
251 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
252 template<typename TagsT = Aws::Vector<Tag>>
253 CreateLabelingJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
254 template<typename TagsT = Tag>
255 CreateLabelingJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
257 private:
258
259 Aws::String m_labelingJobName;
260 bool m_labelingJobNameHasBeenSet = false;
261
262 Aws::String m_labelAttributeName;
263 bool m_labelAttributeNameHasBeenSet = false;
264
265 LabelingJobInputConfig m_inputConfig;
266 bool m_inputConfigHasBeenSet = false;
267
268 LabelingJobOutputConfig m_outputConfig;
269 bool m_outputConfigHasBeenSet = false;
270
271 Aws::String m_roleArn;
272 bool m_roleArnHasBeenSet = false;
273
274 Aws::String m_labelCategoryConfigS3Uri;
275 bool m_labelCategoryConfigS3UriHasBeenSet = false;
276
277 LabelingJobStoppingConditions m_stoppingConditions;
278 bool m_stoppingConditionsHasBeenSet = false;
279
280 LabelingJobAlgorithmsConfig m_labelingJobAlgorithmsConfig;
281 bool m_labelingJobAlgorithmsConfigHasBeenSet = false;
282
283 HumanTaskConfig m_humanTaskConfig;
284 bool m_humanTaskConfigHasBeenSet = false;
285
286 Aws::Vector<Tag> m_tags;
287 bool m_tagsHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace SageMaker
292} // 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