AWS SDK for C++  1.8.71
AWS SDK for C++
CreateLabelingJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace SageMaker
22 {
23 namespace Model
24 {
25 
29  {
30  public:
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::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
48  inline const Aws::String& GetLabelingJobName() const{ return m_labelingJobName; }
49 
54  inline bool LabelingJobNameHasBeenSet() const { return m_labelingJobNameHasBeenSet; }
55 
60  inline void SetLabelingJobName(const Aws::String& value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName = value; }
61 
66  inline void SetLabelingJobName(Aws::String&& value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName = std::move(value); }
67 
72  inline void SetLabelingJobName(const char* value) { m_labelingJobNameHasBeenSet = true; m_labelingJobName.assign(value); }
73 
78  inline CreateLabelingJobRequest& WithLabelingJobName(const Aws::String& value) { SetLabelingJobName(value); return *this;}
79 
84  inline CreateLabelingJobRequest& WithLabelingJobName(Aws::String&& value) { SetLabelingJobName(std::move(value)); return *this;}
85 
90  inline CreateLabelingJobRequest& WithLabelingJobName(const char* value) { SetLabelingJobName(value); return *this;}
91 
92 
101  inline const Aws::String& GetLabelAttributeName() const{ return m_labelAttributeName; }
102 
111  inline bool LabelAttributeNameHasBeenSet() const { return m_labelAttributeNameHasBeenSet; }
112 
121  inline void SetLabelAttributeName(const Aws::String& value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName = value; }
122 
131  inline void SetLabelAttributeName(Aws::String&& value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName = std::move(value); }
132 
141  inline void SetLabelAttributeName(const char* value) { m_labelAttributeNameHasBeenSet = true; m_labelAttributeName.assign(value); }
142 
151  inline CreateLabelingJobRequest& WithLabelAttributeName(const Aws::String& value) { SetLabelAttributeName(value); return *this;}
152 
161  inline CreateLabelingJobRequest& WithLabelAttributeName(Aws::String&& value) { SetLabelAttributeName(std::move(value)); return *this;}
162 
171  inline CreateLabelingJobRequest& WithLabelAttributeName(const char* value) { SetLabelAttributeName(value); return *this;}
172 
173 
179  inline const LabelingJobInputConfig& GetInputConfig() const{ return m_inputConfig; }
180 
186  inline bool InputConfigHasBeenSet() const { return m_inputConfigHasBeenSet; }
187 
193  inline void SetInputConfig(const LabelingJobInputConfig& value) { m_inputConfigHasBeenSet = true; m_inputConfig = value; }
194 
200  inline void SetInputConfig(LabelingJobInputConfig&& value) { m_inputConfigHasBeenSet = true; m_inputConfig = std::move(value); }
201 
207  inline CreateLabelingJobRequest& WithInputConfig(const LabelingJobInputConfig& value) { SetInputConfig(value); return *this;}
208 
214  inline CreateLabelingJobRequest& WithInputConfig(LabelingJobInputConfig&& value) { SetInputConfig(std::move(value)); return *this;}
215 
216 
221  inline const LabelingJobOutputConfig& GetOutputConfig() const{ return m_outputConfig; }
222 
227  inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
228 
233  inline void SetOutputConfig(const LabelingJobOutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
234 
239  inline void SetOutputConfig(LabelingJobOutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
240 
245  inline CreateLabelingJobRequest& WithOutputConfig(const LabelingJobOutputConfig& value) { SetOutputConfig(value); return *this;}
246 
251  inline CreateLabelingJobRequest& WithOutputConfig(LabelingJobOutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
252 
253 
260  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
261 
268  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
269 
276  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
277 
284  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
285 
292  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
293 
300  inline CreateLabelingJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
301 
308  inline CreateLabelingJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
309 
316  inline CreateLabelingJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
317 
318 
339  inline const Aws::String& GetLabelCategoryConfigS3Uri() const{ return m_labelCategoryConfigS3Uri; }
340 
361  inline bool LabelCategoryConfigS3UriHasBeenSet() const { return m_labelCategoryConfigS3UriHasBeenSet; }
362 
383  inline void SetLabelCategoryConfigS3Uri(const Aws::String& value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri = value; }
384 
405  inline void SetLabelCategoryConfigS3Uri(Aws::String&& value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri = std::move(value); }
406 
427  inline void SetLabelCategoryConfigS3Uri(const char* value) { m_labelCategoryConfigS3UriHasBeenSet = true; m_labelCategoryConfigS3Uri.assign(value); }
428 
449  inline CreateLabelingJobRequest& WithLabelCategoryConfigS3Uri(const Aws::String& value) { SetLabelCategoryConfigS3Uri(value); return *this;}
450 
471  inline CreateLabelingJobRequest& WithLabelCategoryConfigS3Uri(Aws::String&& value) { SetLabelCategoryConfigS3Uri(std::move(value)); return *this;}
472 
493  inline CreateLabelingJobRequest& WithLabelCategoryConfigS3Uri(const char* value) { SetLabelCategoryConfigS3Uri(value); return *this;}
494 
495 
501  inline const LabelingJobStoppingConditions& GetStoppingConditions() const{ return m_stoppingConditions; }
502 
508  inline bool StoppingConditionsHasBeenSet() const { return m_stoppingConditionsHasBeenSet; }
509 
515  inline void SetStoppingConditions(const LabelingJobStoppingConditions& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = value; }
516 
522  inline void SetStoppingConditions(LabelingJobStoppingConditions&& value) { m_stoppingConditionsHasBeenSet = true; m_stoppingConditions = std::move(value); }
523 
529  inline CreateLabelingJobRequest& WithStoppingConditions(const LabelingJobStoppingConditions& value) { SetStoppingConditions(value); return *this;}
530 
536  inline CreateLabelingJobRequest& WithStoppingConditions(LabelingJobStoppingConditions&& value) { SetStoppingConditions(std::move(value)); return *this;}
537 
538 
542  inline const LabelingJobAlgorithmsConfig& GetLabelingJobAlgorithmsConfig() const{ return m_labelingJobAlgorithmsConfig; }
543 
547  inline bool LabelingJobAlgorithmsConfigHasBeenSet() const { return m_labelingJobAlgorithmsConfigHasBeenSet; }
548 
552  inline void SetLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig& value) { m_labelingJobAlgorithmsConfigHasBeenSet = true; m_labelingJobAlgorithmsConfig = value; }
553 
557  inline void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig&& value) { m_labelingJobAlgorithmsConfigHasBeenSet = true; m_labelingJobAlgorithmsConfig = std::move(value); }
558 
562  inline CreateLabelingJobRequest& WithLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig& value) { SetLabelingJobAlgorithmsConfig(value); return *this;}
563 
567  inline CreateLabelingJobRequest& WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig&& value) { SetLabelingJobAlgorithmsConfig(std::move(value)); return *this;}
568 
569 
574  inline const HumanTaskConfig& GetHumanTaskConfig() const{ return m_humanTaskConfig; }
575 
580  inline bool HumanTaskConfigHasBeenSet() const { return m_humanTaskConfigHasBeenSet; }
581 
586  inline void SetHumanTaskConfig(const HumanTaskConfig& value) { m_humanTaskConfigHasBeenSet = true; m_humanTaskConfig = value; }
587 
592  inline void SetHumanTaskConfig(HumanTaskConfig&& value) { m_humanTaskConfigHasBeenSet = true; m_humanTaskConfig = std::move(value); }
593 
598  inline CreateLabelingJobRequest& WithHumanTaskConfig(const HumanTaskConfig& value) { SetHumanTaskConfig(value); return *this;}
599 
604  inline CreateLabelingJobRequest& WithHumanTaskConfig(HumanTaskConfig&& value) { SetHumanTaskConfig(std::move(value)); return *this;}
605 
606 
613  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
614 
621  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
622 
629  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
630 
637  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
638 
645  inline CreateLabelingJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
646 
653  inline CreateLabelingJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
654 
661  inline CreateLabelingJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
662 
669  inline CreateLabelingJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
670 
671  private:
672 
673  Aws::String m_labelingJobName;
674  bool m_labelingJobNameHasBeenSet;
675 
676  Aws::String m_labelAttributeName;
677  bool m_labelAttributeNameHasBeenSet;
678 
679  LabelingJobInputConfig m_inputConfig;
680  bool m_inputConfigHasBeenSet;
681 
682  LabelingJobOutputConfig m_outputConfig;
683  bool m_outputConfigHasBeenSet;
684 
685  Aws::String m_roleArn;
686  bool m_roleArnHasBeenSet;
687 
688  Aws::String m_labelCategoryConfigS3Uri;
689  bool m_labelCategoryConfigS3UriHasBeenSet;
690 
691  LabelingJobStoppingConditions m_stoppingConditions;
692  bool m_stoppingConditionsHasBeenSet;
693 
694  LabelingJobAlgorithmsConfig m_labelingJobAlgorithmsConfig;
695  bool m_labelingJobAlgorithmsConfigHasBeenSet;
696 
697  HumanTaskConfig m_humanTaskConfig;
698  bool m_humanTaskConfigHasBeenSet;
699 
700  Aws::Vector<Tag> m_tags;
701  bool m_tagsHasBeenSet;
702  };
703 
704 } // namespace Model
705 } // namespace SageMaker
706 } // namespace Aws
#define AWS_SAGEMAKER_API
void SetInputConfig(const LabelingJobInputConfig &value)
CreateLabelingJobRequest & WithHumanTaskConfig(HumanTaskConfig &&value)
CreateLabelingJobRequest & WithOutputConfig(LabelingJobOutputConfig &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateLabelingJobRequest & WithHumanTaskConfig(const HumanTaskConfig &value)
CreateLabelingJobRequest & WithInputConfig(LabelingJobInputConfig &&value)
void SetStoppingConditions(const LabelingJobStoppingConditions &value)
CreateLabelingJobRequest & WithTags(const Aws::Vector< Tag > &value)
void SetLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig &value)
CreateLabelingJobRequest & WithLabelingJobName(const Aws::String &value)
CreateLabelingJobRequest & WithLabelAttributeName(const Aws::String &value)
CreateLabelingJobRequest & WithRoleArn(const Aws::String &value)
CreateLabelingJobRequest & WithStoppingConditions(const LabelingJobStoppingConditions &value)
void SetHumanTaskConfig(const HumanTaskConfig &value)
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(const char *value)
CreateLabelingJobRequest & WithLabelingJobName(const char *value)
CreateLabelingJobRequest & WithOutputConfig(const LabelingJobOutputConfig &value)
const LabelingJobStoppingConditions & GetStoppingConditions() const
void SetStoppingConditions(LabelingJobStoppingConditions &&value)
const LabelingJobAlgorithmsConfig & GetLabelingJobAlgorithmsConfig() const
CreateLabelingJobRequest & WithInputConfig(const LabelingJobInputConfig &value)
void SetInputConfig(LabelingJobInputConfig &&value)
void SetOutputConfig(LabelingJobOutputConfig &&value)
void SetLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig &&value)
const LabelingJobInputConfig & GetInputConfig() const
const LabelingJobOutputConfig & GetOutputConfig() const
CreateLabelingJobRequest & WithLabelAttributeName(Aws::String &&value)
CreateLabelingJobRequest & WithLabelingJobAlgorithmsConfig(LabelingJobAlgorithmsConfig &&value)
CreateLabelingJobRequest & WithLabelAttributeName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(Aws::String &&value)
CreateLabelingJobRequest & WithLabelCategoryConfigS3Uri(const Aws::String &value)
CreateLabelingJobRequest & WithStoppingConditions(LabelingJobStoppingConditions &&value)
CreateLabelingJobRequest & WithLabelingJobName(Aws::String &&value)
CreateLabelingJobRequest & WithTags(Aws::Vector< Tag > &&value)
CreateLabelingJobRequest & WithRoleArn(const char *value)
CreateLabelingJobRequest & AddTags(const Tag &value)
void SetOutputConfig(const LabelingJobOutputConfig &value)
CreateLabelingJobRequest & WithLabelingJobAlgorithmsConfig(const LabelingJobAlgorithmsConfig &value)
virtual const char * GetServiceRequestName() const override
CreateLabelingJobRequest & WithRoleArn(Aws::String &&value)
CreateLabelingJobRequest & AddTags(Tag &&value)