AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
HumanTaskConfig.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/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AnnotationConsolidationConfig.h>
11#include <aws/sagemaker/model/PublicWorkforceTaskPrice.h>
12#include <aws/sagemaker/model/UiConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
33 public:
34 AWS_SAGEMAKER_API HumanTaskConfig() = default;
35 AWS_SAGEMAKER_API HumanTaskConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetWorkteamArn() const { return m_workteamArn; }
45 inline bool WorkteamArnHasBeenSet() const { return m_workteamArnHasBeenSet; }
46 template <typename WorkteamArnT = Aws::String>
47 void SetWorkteamArn(WorkteamArnT&& value) {
48 m_workteamArnHasBeenSet = true;
49 m_workteamArn = std::forward<WorkteamArnT>(value);
50 }
51 template <typename WorkteamArnT = Aws::String>
52 HumanTaskConfig& WithWorkteamArn(WorkteamArnT&& value) {
53 SetWorkteamArn(std::forward<WorkteamArnT>(value));
54 return *this;
55 }
57
59
63 inline const UiConfig& GetUiConfig() const { return m_uiConfig; }
64 inline bool UiConfigHasBeenSet() const { return m_uiConfigHasBeenSet; }
65 template <typename UiConfigT = UiConfig>
66 void SetUiConfig(UiConfigT&& value) {
67 m_uiConfigHasBeenSet = true;
68 m_uiConfig = std::forward<UiConfigT>(value);
69 }
70 template <typename UiConfigT = UiConfig>
71 HumanTaskConfig& WithUiConfig(UiConfigT&& value) {
72 SetUiConfig(std::forward<UiConfigT>(value));
73 return *this;
74 }
76
78
703 inline const Aws::String& GetPreHumanTaskLambdaArn() const { return m_preHumanTaskLambdaArn; }
704 inline bool PreHumanTaskLambdaArnHasBeenSet() const { return m_preHumanTaskLambdaArnHasBeenSet; }
705 template <typename PreHumanTaskLambdaArnT = Aws::String>
706 void SetPreHumanTaskLambdaArn(PreHumanTaskLambdaArnT&& value) {
707 m_preHumanTaskLambdaArnHasBeenSet = true;
708 m_preHumanTaskLambdaArn = std::forward<PreHumanTaskLambdaArnT>(value);
709 }
710 template <typename PreHumanTaskLambdaArnT = Aws::String>
711 HumanTaskConfig& WithPreHumanTaskLambdaArn(PreHumanTaskLambdaArnT&& value) {
712 SetPreHumanTaskLambdaArn(std::forward<PreHumanTaskLambdaArnT>(value));
713 return *this;
714 }
716
718
722 inline const Aws::Vector<Aws::String>& GetTaskKeywords() const { return m_taskKeywords; }
723 inline bool TaskKeywordsHasBeenSet() const { return m_taskKeywordsHasBeenSet; }
724 template <typename TaskKeywordsT = Aws::Vector<Aws::String>>
725 void SetTaskKeywords(TaskKeywordsT&& value) {
726 m_taskKeywordsHasBeenSet = true;
727 m_taskKeywords = std::forward<TaskKeywordsT>(value);
728 }
729 template <typename TaskKeywordsT = Aws::Vector<Aws::String>>
730 HumanTaskConfig& WithTaskKeywords(TaskKeywordsT&& value) {
731 SetTaskKeywords(std::forward<TaskKeywordsT>(value));
732 return *this;
733 }
734 template <typename TaskKeywordsT = Aws::String>
735 HumanTaskConfig& AddTaskKeywords(TaskKeywordsT&& value) {
736 m_taskKeywordsHasBeenSet = true;
737 m_taskKeywords.emplace_back(std::forward<TaskKeywordsT>(value));
738 return *this;
739 }
741
743
746 inline const Aws::String& GetTaskTitle() const { return m_taskTitle; }
747 inline bool TaskTitleHasBeenSet() const { return m_taskTitleHasBeenSet; }
748 template <typename TaskTitleT = Aws::String>
749 void SetTaskTitle(TaskTitleT&& value) {
750 m_taskTitleHasBeenSet = true;
751 m_taskTitle = std::forward<TaskTitleT>(value);
752 }
753 template <typename TaskTitleT = Aws::String>
754 HumanTaskConfig& WithTaskTitle(TaskTitleT&& value) {
755 SetTaskTitle(std::forward<TaskTitleT>(value));
756 return *this;
757 }
759
761
764 inline const Aws::String& GetTaskDescription() const { return m_taskDescription; }
765 inline bool TaskDescriptionHasBeenSet() const { return m_taskDescriptionHasBeenSet; }
766 template <typename TaskDescriptionT = Aws::String>
767 void SetTaskDescription(TaskDescriptionT&& value) {
768 m_taskDescriptionHasBeenSet = true;
769 m_taskDescription = std::forward<TaskDescriptionT>(value);
770 }
771 template <typename TaskDescriptionT = Aws::String>
772 HumanTaskConfig& WithTaskDescription(TaskDescriptionT&& value) {
773 SetTaskDescription(std::forward<TaskDescriptionT>(value));
774 return *this;
775 }
777
779
782 inline int GetNumberOfHumanWorkersPerDataObject() const { return m_numberOfHumanWorkersPerDataObject; }
783 inline bool NumberOfHumanWorkersPerDataObjectHasBeenSet() const { return m_numberOfHumanWorkersPerDataObjectHasBeenSet; }
785 m_numberOfHumanWorkersPerDataObjectHasBeenSet = true;
786 m_numberOfHumanWorkersPerDataObject = value;
787 }
790 return *this;
791 }
793
795
812 inline int GetTaskTimeLimitInSeconds() const { return m_taskTimeLimitInSeconds; }
813 inline bool TaskTimeLimitInSecondsHasBeenSet() const { return m_taskTimeLimitInSecondsHasBeenSet; }
814 inline void SetTaskTimeLimitInSeconds(int value) {
815 m_taskTimeLimitInSecondsHasBeenSet = true;
816 m_taskTimeLimitInSeconds = value;
817 }
820 return *this;
821 }
823
825
834 inline int GetTaskAvailabilityLifetimeInSeconds() const { return m_taskAvailabilityLifetimeInSeconds; }
835 inline bool TaskAvailabilityLifetimeInSecondsHasBeenSet() const { return m_taskAvailabilityLifetimeInSecondsHasBeenSet; }
837 m_taskAvailabilityLifetimeInSecondsHasBeenSet = true;
838 m_taskAvailabilityLifetimeInSeconds = value;
839 }
842 return *this;
843 }
845
847
853 inline int GetMaxConcurrentTaskCount() const { return m_maxConcurrentTaskCount; }
854 inline bool MaxConcurrentTaskCountHasBeenSet() const { return m_maxConcurrentTaskCountHasBeenSet; }
855 inline void SetMaxConcurrentTaskCount(int value) {
856 m_maxConcurrentTaskCountHasBeenSet = true;
857 m_maxConcurrentTaskCount = value;
858 }
861 return *this;
862 }
864
866
869 inline const AnnotationConsolidationConfig& GetAnnotationConsolidationConfig() const { return m_annotationConsolidationConfig; }
870 inline bool AnnotationConsolidationConfigHasBeenSet() const { return m_annotationConsolidationConfigHasBeenSet; }
871 template <typename AnnotationConsolidationConfigT = AnnotationConsolidationConfig>
872 void SetAnnotationConsolidationConfig(AnnotationConsolidationConfigT&& value) {
873 m_annotationConsolidationConfigHasBeenSet = true;
874 m_annotationConsolidationConfig = std::forward<AnnotationConsolidationConfigT>(value);
875 }
876 template <typename AnnotationConsolidationConfigT = AnnotationConsolidationConfig>
877 HumanTaskConfig& WithAnnotationConsolidationConfig(AnnotationConsolidationConfigT&& value) {
878 SetAnnotationConsolidationConfig(std::forward<AnnotationConsolidationConfigT>(value));
879 return *this;
880 }
882
884
888 inline const PublicWorkforceTaskPrice& GetPublicWorkforceTaskPrice() const { return m_publicWorkforceTaskPrice; }
889 inline bool PublicWorkforceTaskPriceHasBeenSet() const { return m_publicWorkforceTaskPriceHasBeenSet; }
890 template <typename PublicWorkforceTaskPriceT = PublicWorkforceTaskPrice>
891 void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT&& value) {
892 m_publicWorkforceTaskPriceHasBeenSet = true;
893 m_publicWorkforceTaskPrice = std::forward<PublicWorkforceTaskPriceT>(value);
894 }
895 template <typename PublicWorkforceTaskPriceT = PublicWorkforceTaskPrice>
896 HumanTaskConfig& WithPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT&& value) {
897 SetPublicWorkforceTaskPrice(std::forward<PublicWorkforceTaskPriceT>(value));
898 return *this;
899 }
901 private:
902 Aws::String m_workteamArn;
903
904 UiConfig m_uiConfig;
905
906 Aws::String m_preHumanTaskLambdaArn;
907
908 Aws::Vector<Aws::String> m_taskKeywords;
909
910 Aws::String m_taskTitle;
911
912 Aws::String m_taskDescription;
913
914 int m_numberOfHumanWorkersPerDataObject{0};
915
916 int m_taskTimeLimitInSeconds{0};
917
918 int m_taskAvailabilityLifetimeInSeconds{0};
919
920 int m_maxConcurrentTaskCount{0};
921
922 AnnotationConsolidationConfig m_annotationConsolidationConfig;
923
924 PublicWorkforceTaskPrice m_publicWorkforceTaskPrice;
925 bool m_workteamArnHasBeenSet = false;
926 bool m_uiConfigHasBeenSet = false;
927 bool m_preHumanTaskLambdaArnHasBeenSet = false;
928 bool m_taskKeywordsHasBeenSet = false;
929 bool m_taskTitleHasBeenSet = false;
930 bool m_taskDescriptionHasBeenSet = false;
931 bool m_numberOfHumanWorkersPerDataObjectHasBeenSet = false;
932 bool m_taskTimeLimitInSecondsHasBeenSet = false;
933 bool m_taskAvailabilityLifetimeInSecondsHasBeenSet = false;
934 bool m_maxConcurrentTaskCountHasBeenSet = false;
935 bool m_annotationConsolidationConfigHasBeenSet = false;
936 bool m_publicWorkforceTaskPriceHasBeenSet = false;
937};
938
939} // namespace Model
940} // namespace SageMaker
941} // namespace Aws
HumanTaskConfig & WithMaxConcurrentTaskCount(int value)
HumanTaskConfig & WithPreHumanTaskLambdaArn(PreHumanTaskLambdaArnT &&value)
const Aws::String & GetWorkteamArn() const
void SetTaskDescription(TaskDescriptionT &&value)
AWS_SAGEMAKER_API HumanTaskConfig(Aws::Utils::Json::JsonView jsonValue)
HumanTaskConfig & WithNumberOfHumanWorkersPerDataObject(int value)
HumanTaskConfig & WithTaskTimeLimitInSeconds(int value)
HumanTaskConfig & AddTaskKeywords(TaskKeywordsT &&value)
void SetAnnotationConsolidationConfig(AnnotationConsolidationConfigT &&value)
const Aws::String & GetTaskDescription() const
void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT &&value)
const PublicWorkforceTaskPrice & GetPublicWorkforceTaskPrice() const
void SetPreHumanTaskLambdaArn(PreHumanTaskLambdaArnT &&value)
const Aws::Vector< Aws::String > & GetTaskKeywords() const
HumanTaskConfig & WithWorkteamArn(WorkteamArnT &&value)
const Aws::String & GetTaskTitle() const
HumanTaskConfig & WithAnnotationConsolidationConfig(AnnotationConsolidationConfigT &&value)
HumanTaskConfig & WithTaskAvailabilityLifetimeInSeconds(int value)
const AnnotationConsolidationConfig & GetAnnotationConsolidationConfig() const
const Aws::String & GetPreHumanTaskLambdaArn() const
AWS_SAGEMAKER_API HumanTaskConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HumanTaskConfig & WithTaskTitle(TaskTitleT &&value)
HumanTaskConfig & WithTaskKeywords(TaskKeywordsT &&value)
void SetTaskKeywords(TaskKeywordsT &&value)
HumanTaskConfig & WithTaskDescription(TaskDescriptionT &&value)
HumanTaskConfig & WithUiConfig(UiConfigT &&value)
HumanTaskConfig & WithPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT &&value)
void SetWorkteamArn(WorkteamArnT &&value)
AWS_SAGEMAKER_API HumanTaskConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue