AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateLabelingJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/HumanTaskConfig.h>
12#include <aws/sagemaker/model/LabelingJobAlgorithmsConfig.h>
13#include <aws/sagemaker/model/LabelingJobInputConfig.h>
14#include <aws/sagemaker/model/LabelingJobOutputConfig.h>
15#include <aws/sagemaker/model/LabelingJobStoppingConditions.h>
16#include <aws/sagemaker/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SageMaker {
22namespace Model {
23
27 public:
28 AWS_SAGEMAKER_API CreateLabelingJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateLabelingJob"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
41
48 inline const Aws::String& GetLabelingJobName() const { return m_labelingJobName; }
49 inline bool LabelingJobNameHasBeenSet() const { return m_labelingJobNameHasBeenSet; }
50 template <typename LabelingJobNameT = Aws::String>
51 void SetLabelingJobName(LabelingJobNameT&& value) {
52 m_labelingJobNameHasBeenSet = true;
53 m_labelingJobName = std::forward<LabelingJobNameT>(value);
54 }
55 template <typename LabelingJobNameT = Aws::String>
56 CreateLabelingJobRequest& WithLabelingJobName(LabelingJobNameT&& value) {
57 SetLabelingJobName(std::forward<LabelingJobNameT>(value));
58 return *this;
59 }
61
63
97 inline const Aws::String& GetLabelAttributeName() const { return m_labelAttributeName; }
98 inline bool LabelAttributeNameHasBeenSet() const { return m_labelAttributeNameHasBeenSet; }
99 template <typename LabelAttributeNameT = Aws::String>
100 void SetLabelAttributeName(LabelAttributeNameT&& value) {
101 m_labelAttributeNameHasBeenSet = true;
102 m_labelAttributeName = std::forward<LabelAttributeNameT>(value);
103 }
104 template <typename LabelAttributeNameT = Aws::String>
105 CreateLabelingJobRequest& WithLabelAttributeName(LabelAttributeNameT&& value) {
106 SetLabelAttributeName(std::forward<LabelAttributeNameT>(value));
107 return *this;
108 }
110
112
129 inline const LabelingJobInputConfig& GetInputConfig() const { return m_inputConfig; }
130 inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
131 template <typename InputConfigT = LabelingJobInputConfig>
132 void SetInputConfig(InputConfigT&& value) {
133 m_inputConfigHasBeenSet = true;
134 m_inputConfig = std::forward<InputConfigT>(value);
135 }
136 template <typename InputConfigT = LabelingJobInputConfig>
138 SetInputConfig(std::forward<InputConfigT>(value));
139 return *this;
140 }
142
144
148 inline const LabelingJobOutputConfig& GetOutputConfig() const { return m_outputConfig; }
149 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
150 template <typename OutputConfigT = LabelingJobOutputConfig>
151 void SetOutputConfig(OutputConfigT&& value) {
152 m_outputConfigHasBeenSet = true;
153 m_outputConfig = std::forward<OutputConfigT>(value);
154 }
155 template <typename OutputConfigT = LabelingJobOutputConfig>
157 SetOutputConfig(std::forward<OutputConfigT>(value));
158 return *this;
159 }
161
163
169 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
170 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
171 template <typename RoleArnT = Aws::String>
172 void SetRoleArn(RoleArnT&& value) {
173 m_roleArnHasBeenSet = true;
174 m_roleArn = std::forward<RoleArnT>(value);
175 }
176 template <typename RoleArnT = Aws::String>
178 SetRoleArn(std::forward<RoleArnT>(value));
179 return *this;
180 }
182
184
222 inline const Aws::String& GetLabelCategoryConfigS3Uri() const { return m_labelCategoryConfigS3Uri; }
223 inline bool LabelCategoryConfigS3UriHasBeenSet() const { return m_labelCategoryConfigS3UriHasBeenSet; }
224 template <typename LabelCategoryConfigS3UriT = Aws::String>
225 void SetLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT&& value) {
226 m_labelCategoryConfigS3UriHasBeenSet = true;
227 m_labelCategoryConfigS3Uri = std::forward<LabelCategoryConfigS3UriT>(value);
228 }
229 template <typename LabelCategoryConfigS3UriT = Aws::String>
230 CreateLabelingJobRequest& WithLabelCategoryConfigS3Uri(LabelCategoryConfigS3UriT&& value) {
231 SetLabelCategoryConfigS3Uri(std::forward<LabelCategoryConfigS3UriT>(value));
232 return *this;
233 }
235
237
242 inline const LabelingJobStoppingConditions& GetStoppingConditions() const { return m_stoppingConditions; }
243 inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
244 template <typename StoppingConditionsT = LabelingJobStoppingConditions>
245 void SetStoppingConditions(StoppingConditionsT&& value) {
246 m_stoppingConditionsHasBeenSet = true;
247 m_stoppingConditions = std::forward<StoppingConditionsT>(value);
248 }
249 template <typename StoppingConditionsT = LabelingJobStoppingConditions>
250 CreateLabelingJobRequest& WithStoppingConditions(StoppingConditionsT&& value) {
251 SetStoppingConditions(std::forward<StoppingConditionsT>(value));
252 return *this;
253 }
255
257
260 inline const LabelingJobAlgorithmsConfig& GetLabelingJobAlgorithmsConfig() const { return m_labelingJobAlgorithmsConfig; }
261 inline bool LabelingJobAlgorithmsConfigHasBeenSet() const { return m_labelingJobAlgorithmsConfigHasBeenSet; }
262 template <typename LabelingJobAlgorithmsConfigT = LabelingJobAlgorithmsConfig>
263 void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT&& value) {
264 m_labelingJobAlgorithmsConfigHasBeenSet = true;
265 m_labelingJobAlgorithmsConfig = std::forward<LabelingJobAlgorithmsConfigT>(value);
266 }
267 template <typename LabelingJobAlgorithmsConfigT = LabelingJobAlgorithmsConfig>
268 CreateLabelingJobRequest& WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfigT&& value) {
269 SetLabelingJobAlgorithmsConfig(std::forward<LabelingJobAlgorithmsConfigT>(value));
270 return *this;
271 }
273
275
279 inline const HumanTaskConfig& GetHumanTaskConfig() const { return m_humanTaskConfig; }
280 inline bool HumanTaskConfigHasBeenSet() const { return m_humanTaskConfigHasBeenSet; }
281 template <typename HumanTaskConfigT = HumanTaskConfig>
282 void SetHumanTaskConfig(HumanTaskConfigT&& value) {
283 m_humanTaskConfigHasBeenSet = true;
284 m_humanTaskConfig = std::forward<HumanTaskConfigT>(value);
285 }
286 template <typename HumanTaskConfigT = HumanTaskConfig>
288 SetHumanTaskConfig(std::forward<HumanTaskConfigT>(value));
289 return *this;
290 }
292
294
300 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
301 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
302 template <typename TagsT = Aws::Vector<Tag>>
303 void SetTags(TagsT&& value) {
304 m_tagsHasBeenSet = true;
305 m_tags = std::forward<TagsT>(value);
306 }
307 template <typename TagsT = Aws::Vector<Tag>>
309 SetTags(std::forward<TagsT>(value));
310 return *this;
311 }
312 template <typename TagsT = Tag>
314 m_tagsHasBeenSet = true;
315 m_tags.emplace_back(std::forward<TagsT>(value));
316 return *this;
317 }
319 private:
320 Aws::String m_labelingJobName;
321
322 Aws::String m_labelAttributeName;
323
324 LabelingJobInputConfig m_inputConfig;
325
326 LabelingJobOutputConfig m_outputConfig;
327
328 Aws::String m_roleArn;
329
330 Aws::String m_labelCategoryConfigS3Uri;
331
332 LabelingJobStoppingConditions m_stoppingConditions;
333
334 LabelingJobAlgorithmsConfig m_labelingJobAlgorithmsConfig;
335
336 HumanTaskConfig m_humanTaskConfig;
337
338 Aws::Vector<Tag> m_tags;
339 bool m_labelingJobNameHasBeenSet = false;
340 bool m_labelAttributeNameHasBeenSet = false;
341 bool m_inputConfigHasBeenSet = false;
342 bool m_outputConfigHasBeenSet = false;
343 bool m_roleArnHasBeenSet = false;
344 bool m_labelCategoryConfigS3UriHasBeenSet = false;
345 bool m_stoppingConditionsHasBeenSet = false;
346 bool m_labelingJobAlgorithmsConfigHasBeenSet = false;
347 bool m_humanTaskConfigHasBeenSet = false;
348 bool m_tagsHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace SageMaker
353} // 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)
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