AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HumanTaskConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/UiConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/AnnotationConsolidationConfig.h>
12#include <aws/sagemaker/model/PublicWorkforceTaskPrice.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SAGEMAKER_API HumanTaskConfig();
40 AWS_SAGEMAKER_API HumanTaskConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetWorkteamArn() const{ return m_workteamArn; }
51 inline bool WorkteamArnHasBeenSet() const { return m_workteamArnHasBeenSet; }
52 inline void SetWorkteamArn(const Aws::String& value) { m_workteamArnHasBeenSet = true; m_workteamArn = value; }
53 inline void SetWorkteamArn(Aws::String&& value) { m_workteamArnHasBeenSet = true; m_workteamArn = std::move(value); }
54 inline void SetWorkteamArn(const char* value) { m_workteamArnHasBeenSet = true; m_workteamArn.assign(value); }
55 inline HumanTaskConfig& WithWorkteamArn(const Aws::String& value) { SetWorkteamArn(value); return *this;}
56 inline HumanTaskConfig& WithWorkteamArn(Aws::String&& value) { SetWorkteamArn(std::move(value)); return *this;}
57 inline HumanTaskConfig& WithWorkteamArn(const char* value) { SetWorkteamArn(value); return *this;}
59
61
65 inline const UiConfig& GetUiConfig() const{ return m_uiConfig; }
66 inline bool UiConfigHasBeenSet() const { return m_uiConfigHasBeenSet; }
67 inline void SetUiConfig(const UiConfig& value) { m_uiConfigHasBeenSet = true; m_uiConfig = value; }
68 inline void SetUiConfig(UiConfig&& value) { m_uiConfigHasBeenSet = true; m_uiConfig = std::move(value); }
69 inline HumanTaskConfig& WithUiConfig(const UiConfig& value) { SetUiConfig(value); return *this;}
70 inline HumanTaskConfig& WithUiConfig(UiConfig&& value) { SetUiConfig(std::move(value)); return *this;}
72
74
674 inline const Aws::String& GetPreHumanTaskLambdaArn() const{ return m_preHumanTaskLambdaArn; }
675 inline bool PreHumanTaskLambdaArnHasBeenSet() const { return m_preHumanTaskLambdaArnHasBeenSet; }
676 inline void SetPreHumanTaskLambdaArn(const Aws::String& value) { m_preHumanTaskLambdaArnHasBeenSet = true; m_preHumanTaskLambdaArn = value; }
677 inline void SetPreHumanTaskLambdaArn(Aws::String&& value) { m_preHumanTaskLambdaArnHasBeenSet = true; m_preHumanTaskLambdaArn = std::move(value); }
678 inline void SetPreHumanTaskLambdaArn(const char* value) { m_preHumanTaskLambdaArnHasBeenSet = true; m_preHumanTaskLambdaArn.assign(value); }
680 inline HumanTaskConfig& WithPreHumanTaskLambdaArn(Aws::String&& value) { SetPreHumanTaskLambdaArn(std::move(value)); return *this;}
681 inline HumanTaskConfig& WithPreHumanTaskLambdaArn(const char* value) { SetPreHumanTaskLambdaArn(value); return *this;}
683
685
689 inline const Aws::Vector<Aws::String>& GetTaskKeywords() const{ return m_taskKeywords; }
690 inline bool TaskKeywordsHasBeenSet() const { return m_taskKeywordsHasBeenSet; }
691 inline void SetTaskKeywords(const Aws::Vector<Aws::String>& value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords = value; }
692 inline void SetTaskKeywords(Aws::Vector<Aws::String>&& value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords = std::move(value); }
693 inline HumanTaskConfig& WithTaskKeywords(const Aws::Vector<Aws::String>& value) { SetTaskKeywords(value); return *this;}
694 inline HumanTaskConfig& WithTaskKeywords(Aws::Vector<Aws::String>&& value) { SetTaskKeywords(std::move(value)); return *this;}
695 inline HumanTaskConfig& AddTaskKeywords(const Aws::String& value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords.push_back(value); return *this; }
696 inline HumanTaskConfig& AddTaskKeywords(Aws::String&& value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords.push_back(std::move(value)); return *this; }
697 inline HumanTaskConfig& AddTaskKeywords(const char* value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords.push_back(value); return *this; }
699
701
704 inline const Aws::String& GetTaskTitle() const{ return m_taskTitle; }
705 inline bool TaskTitleHasBeenSet() const { return m_taskTitleHasBeenSet; }
706 inline void SetTaskTitle(const Aws::String& value) { m_taskTitleHasBeenSet = true; m_taskTitle = value; }
707 inline void SetTaskTitle(Aws::String&& value) { m_taskTitleHasBeenSet = true; m_taskTitle = std::move(value); }
708 inline void SetTaskTitle(const char* value) { m_taskTitleHasBeenSet = true; m_taskTitle.assign(value); }
709 inline HumanTaskConfig& WithTaskTitle(const Aws::String& value) { SetTaskTitle(value); return *this;}
710 inline HumanTaskConfig& WithTaskTitle(Aws::String&& value) { SetTaskTitle(std::move(value)); return *this;}
711 inline HumanTaskConfig& WithTaskTitle(const char* value) { SetTaskTitle(value); return *this;}
713
715
718 inline const Aws::String& GetTaskDescription() const{ return m_taskDescription; }
719 inline bool TaskDescriptionHasBeenSet() const { return m_taskDescriptionHasBeenSet; }
720 inline void SetTaskDescription(const Aws::String& value) { m_taskDescriptionHasBeenSet = true; m_taskDescription = value; }
721 inline void SetTaskDescription(Aws::String&& value) { m_taskDescriptionHasBeenSet = true; m_taskDescription = std::move(value); }
722 inline void SetTaskDescription(const char* value) { m_taskDescriptionHasBeenSet = true; m_taskDescription.assign(value); }
723 inline HumanTaskConfig& WithTaskDescription(const Aws::String& value) { SetTaskDescription(value); return *this;}
724 inline HumanTaskConfig& WithTaskDescription(Aws::String&& value) { SetTaskDescription(std::move(value)); return *this;}
725 inline HumanTaskConfig& WithTaskDescription(const char* value) { SetTaskDescription(value); return *this;}
727
729
732 inline int GetNumberOfHumanWorkersPerDataObject() const{ return m_numberOfHumanWorkersPerDataObject; }
733 inline bool NumberOfHumanWorkersPerDataObjectHasBeenSet() const { return m_numberOfHumanWorkersPerDataObjectHasBeenSet; }
734 inline void SetNumberOfHumanWorkersPerDataObject(int value) { m_numberOfHumanWorkersPerDataObjectHasBeenSet = true; m_numberOfHumanWorkersPerDataObject = value; }
737
739
756 inline int GetTaskTimeLimitInSeconds() const{ return m_taskTimeLimitInSeconds; }
757 inline bool TaskTimeLimitInSecondsHasBeenSet() const { return m_taskTimeLimitInSecondsHasBeenSet; }
758 inline void SetTaskTimeLimitInSeconds(int value) { m_taskTimeLimitInSecondsHasBeenSet = true; m_taskTimeLimitInSeconds = value; }
759 inline HumanTaskConfig& WithTaskTimeLimitInSeconds(int value) { SetTaskTimeLimitInSeconds(value); return *this;}
761
763
772 inline int GetTaskAvailabilityLifetimeInSeconds() const{ return m_taskAvailabilityLifetimeInSeconds; }
773 inline bool TaskAvailabilityLifetimeInSecondsHasBeenSet() const { return m_taskAvailabilityLifetimeInSecondsHasBeenSet; }
774 inline void SetTaskAvailabilityLifetimeInSeconds(int value) { m_taskAvailabilityLifetimeInSecondsHasBeenSet = true; m_taskAvailabilityLifetimeInSeconds = value; }
777
779
785 inline int GetMaxConcurrentTaskCount() const{ return m_maxConcurrentTaskCount; }
786 inline bool MaxConcurrentTaskCountHasBeenSet() const { return m_maxConcurrentTaskCountHasBeenSet; }
787 inline void SetMaxConcurrentTaskCount(int value) { m_maxConcurrentTaskCountHasBeenSet = true; m_maxConcurrentTaskCount = value; }
788 inline HumanTaskConfig& WithMaxConcurrentTaskCount(int value) { SetMaxConcurrentTaskCount(value); return *this;}
790
792
795 inline const AnnotationConsolidationConfig& GetAnnotationConsolidationConfig() const{ return m_annotationConsolidationConfig; }
796 inline bool AnnotationConsolidationConfigHasBeenSet() const { return m_annotationConsolidationConfigHasBeenSet; }
797 inline void SetAnnotationConsolidationConfig(const AnnotationConsolidationConfig& value) { m_annotationConsolidationConfigHasBeenSet = true; m_annotationConsolidationConfig = value; }
798 inline void SetAnnotationConsolidationConfig(AnnotationConsolidationConfig&& value) { m_annotationConsolidationConfigHasBeenSet = true; m_annotationConsolidationConfig = std::move(value); }
802
804
808 inline const PublicWorkforceTaskPrice& GetPublicWorkforceTaskPrice() const{ return m_publicWorkforceTaskPrice; }
809 inline bool PublicWorkforceTaskPriceHasBeenSet() const { return m_publicWorkforceTaskPriceHasBeenSet; }
810 inline void SetPublicWorkforceTaskPrice(const PublicWorkforceTaskPrice& value) { m_publicWorkforceTaskPriceHasBeenSet = true; m_publicWorkforceTaskPrice = value; }
811 inline void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPrice&& value) { m_publicWorkforceTaskPriceHasBeenSet = true; m_publicWorkforceTaskPrice = std::move(value); }
815 private:
816
817 Aws::String m_workteamArn;
818 bool m_workteamArnHasBeenSet = false;
819
820 UiConfig m_uiConfig;
821 bool m_uiConfigHasBeenSet = false;
822
823 Aws::String m_preHumanTaskLambdaArn;
824 bool m_preHumanTaskLambdaArnHasBeenSet = false;
825
826 Aws::Vector<Aws::String> m_taskKeywords;
827 bool m_taskKeywordsHasBeenSet = false;
828
829 Aws::String m_taskTitle;
830 bool m_taskTitleHasBeenSet = false;
831
832 Aws::String m_taskDescription;
833 bool m_taskDescriptionHasBeenSet = false;
834
835 int m_numberOfHumanWorkersPerDataObject;
836 bool m_numberOfHumanWorkersPerDataObjectHasBeenSet = false;
837
838 int m_taskTimeLimitInSeconds;
839 bool m_taskTimeLimitInSecondsHasBeenSet = false;
840
841 int m_taskAvailabilityLifetimeInSeconds;
842 bool m_taskAvailabilityLifetimeInSecondsHasBeenSet = false;
843
844 int m_maxConcurrentTaskCount;
845 bool m_maxConcurrentTaskCountHasBeenSet = false;
846
847 AnnotationConsolidationConfig m_annotationConsolidationConfig;
848 bool m_annotationConsolidationConfigHasBeenSet = false;
849
850 PublicWorkforceTaskPrice m_publicWorkforceTaskPrice;
851 bool m_publicWorkforceTaskPriceHasBeenSet = false;
852 };
853
854} // namespace Model
855} // namespace SageMaker
856} // namespace Aws
void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPrice &&value)
HumanTaskConfig & WithMaxConcurrentTaskCount(int value)
HumanTaskConfig & AddTaskKeywords(const char *value)
void SetTaskDescription(Aws::String &&value)
HumanTaskConfig & AddTaskKeywords(Aws::String &&value)
void SetPreHumanTaskLambdaArn(const char *value)
const Aws::String & GetWorkteamArn() const
void SetUiConfig(const UiConfig &value)
HumanTaskConfig & WithPublicWorkforceTaskPrice(PublicWorkforceTaskPrice &&value)
AWS_SAGEMAKER_API HumanTaskConfig(Aws::Utils::Json::JsonView jsonValue)
HumanTaskConfig & WithTaskKeywords(const Aws::Vector< Aws::String > &value)
void SetTaskKeywords(Aws::Vector< Aws::String > &&value)
HumanTaskConfig & WithNumberOfHumanWorkersPerDataObject(int value)
HumanTaskConfig & WithTaskTimeLimitInSeconds(int value)
HumanTaskConfig & WithTaskTitle(Aws::String &&value)
void SetTaskTitle(Aws::String &&value)
void SetTaskTitle(const Aws::String &value)
HumanTaskConfig & WithPreHumanTaskLambdaArn(const Aws::String &value)
const Aws::String & GetTaskDescription() const
const PublicWorkforceTaskPrice & GetPublicWorkforceTaskPrice() const
HumanTaskConfig & WithWorkteamArn(Aws::String &&value)
void SetPublicWorkforceTaskPrice(const PublicWorkforceTaskPrice &value)
HumanTaskConfig & WithPreHumanTaskLambdaArn(const char *value)
HumanTaskConfig & WithUiConfig(UiConfig &&value)
HumanTaskConfig & WithUiConfig(const UiConfig &value)
void SetTaskDescription(const char *value)
void SetTaskKeywords(const Aws::Vector< Aws::String > &value)
HumanTaskConfig & AddTaskKeywords(const Aws::String &value)
const Aws::Vector< Aws::String > & GetTaskKeywords() const
HumanTaskConfig & WithAnnotationConsolidationConfig(const AnnotationConsolidationConfig &value)
HumanTaskConfig & WithTaskTitle(const char *value)
const Aws::String & GetTaskTitle() const
void SetPreHumanTaskLambdaArn(Aws::String &&value)
void SetWorkteamArn(const Aws::String &value)
void SetAnnotationConsolidationConfig(AnnotationConsolidationConfig &&value)
HumanTaskConfig & WithWorkteamArn(const Aws::String &value)
HumanTaskConfig & WithTaskDescription(Aws::String &&value)
HumanTaskConfig & WithTaskAvailabilityLifetimeInSeconds(int value)
void SetTaskDescription(const Aws::String &value)
const AnnotationConsolidationConfig & GetAnnotationConsolidationConfig() const
const Aws::String & GetPreHumanTaskLambdaArn() const
HumanTaskConfig & WithPreHumanTaskLambdaArn(Aws::String &&value)
HumanTaskConfig & WithPublicWorkforceTaskPrice(const PublicWorkforceTaskPrice &value)
void SetWorkteamArn(Aws::String &&value)
AWS_SAGEMAKER_API HumanTaskConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HumanTaskConfig & WithTaskTitle(const Aws::String &value)
HumanTaskConfig & WithTaskKeywords(Aws::Vector< Aws::String > &&value)
void SetAnnotationConsolidationConfig(const AnnotationConsolidationConfig &value)
HumanTaskConfig & WithTaskDescription(const Aws::String &value)
HumanTaskConfig & WithAnnotationConsolidationConfig(AnnotationConsolidationConfig &&value)
HumanTaskConfig & WithWorkteamArn(const char *value)
void SetPreHumanTaskLambdaArn(const Aws::String &value)
HumanTaskConfig & WithTaskDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue