AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HumanLoopConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/PublicWorkforceTaskPrice.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API HumanLoopConfig() = default;
38 AWS_SAGEMAKER_API HumanLoopConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetWorkteamArn() const { return m_workteamArn; }
52 inline bool WorkteamArnHasBeenSet() const { return m_workteamArnHasBeenSet; }
53 template<typename WorkteamArnT = Aws::String>
54 void SetWorkteamArn(WorkteamArnT&& value) { m_workteamArnHasBeenSet = true; m_workteamArn = std::forward<WorkteamArnT>(value); }
55 template<typename WorkteamArnT = Aws::String>
56 HumanLoopConfig& WithWorkteamArn(WorkteamArnT&& value) { SetWorkteamArn(std::forward<WorkteamArnT>(value)); return *this;}
58
60
71 inline const Aws::String& GetHumanTaskUiArn() const { return m_humanTaskUiArn; }
72 inline bool HumanTaskUiArnHasBeenSet() const { return m_humanTaskUiArnHasBeenSet; }
73 template<typename HumanTaskUiArnT = Aws::String>
74 void SetHumanTaskUiArn(HumanTaskUiArnT&& value) { m_humanTaskUiArnHasBeenSet = true; m_humanTaskUiArn = std::forward<HumanTaskUiArnT>(value); }
75 template<typename HumanTaskUiArnT = Aws::String>
76 HumanLoopConfig& WithHumanTaskUiArn(HumanTaskUiArnT&& value) { SetHumanTaskUiArn(std::forward<HumanTaskUiArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetTaskTitle() const { return m_taskTitle; }
84 inline bool TaskTitleHasBeenSet() const { return m_taskTitleHasBeenSet; }
85 template<typename TaskTitleT = Aws::String>
86 void SetTaskTitle(TaskTitleT&& value) { m_taskTitleHasBeenSet = true; m_taskTitle = std::forward<TaskTitleT>(value); }
87 template<typename TaskTitleT = Aws::String>
88 HumanLoopConfig& WithTaskTitle(TaskTitleT&& value) { SetTaskTitle(std::forward<TaskTitleT>(value)); return *this;}
90
92
95 inline const Aws::String& GetTaskDescription() const { return m_taskDescription; }
96 inline bool TaskDescriptionHasBeenSet() const { return m_taskDescriptionHasBeenSet; }
97 template<typename TaskDescriptionT = Aws::String>
98 void SetTaskDescription(TaskDescriptionT&& value) { m_taskDescriptionHasBeenSet = true; m_taskDescription = std::forward<TaskDescriptionT>(value); }
99 template<typename TaskDescriptionT = Aws::String>
100 HumanLoopConfig& WithTaskDescription(TaskDescriptionT&& value) { SetTaskDescription(std::forward<TaskDescriptionT>(value)); return *this;}
102
104
110 inline int GetTaskCount() const { return m_taskCount; }
111 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
112 inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
113 inline HumanLoopConfig& WithTaskCount(int value) { SetTaskCount(value); return *this;}
115
117
121 inline int GetTaskAvailabilityLifetimeInSeconds() const { return m_taskAvailabilityLifetimeInSeconds; }
122 inline bool TaskAvailabilityLifetimeInSecondsHasBeenSet() const { return m_taskAvailabilityLifetimeInSecondsHasBeenSet; }
123 inline void SetTaskAvailabilityLifetimeInSeconds(int value) { m_taskAvailabilityLifetimeInSecondsHasBeenSet = true; m_taskAvailabilityLifetimeInSeconds = value; }
126
128
132 inline int GetTaskTimeLimitInSeconds() const { return m_taskTimeLimitInSeconds; }
133 inline bool TaskTimeLimitInSecondsHasBeenSet() const { return m_taskTimeLimitInSecondsHasBeenSet; }
134 inline void SetTaskTimeLimitInSeconds(int value) { m_taskTimeLimitInSecondsHasBeenSet = true; m_taskTimeLimitInSeconds = value; }
135 inline HumanLoopConfig& WithTaskTimeLimitInSeconds(int value) { SetTaskTimeLimitInSeconds(value); return *this;}
137
139
142 inline const Aws::Vector<Aws::String>& GetTaskKeywords() const { return m_taskKeywords; }
143 inline bool TaskKeywordsHasBeenSet() const { return m_taskKeywordsHasBeenSet; }
144 template<typename TaskKeywordsT = Aws::Vector<Aws::String>>
145 void SetTaskKeywords(TaskKeywordsT&& value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords = std::forward<TaskKeywordsT>(value); }
146 template<typename TaskKeywordsT = Aws::Vector<Aws::String>>
147 HumanLoopConfig& WithTaskKeywords(TaskKeywordsT&& value) { SetTaskKeywords(std::forward<TaskKeywordsT>(value)); return *this;}
148 template<typename TaskKeywordsT = Aws::String>
149 HumanLoopConfig& AddTaskKeywords(TaskKeywordsT&& value) { m_taskKeywordsHasBeenSet = true; m_taskKeywords.emplace_back(std::forward<TaskKeywordsT>(value)); return *this; }
151
153
154 inline const PublicWorkforceTaskPrice& GetPublicWorkforceTaskPrice() const { return m_publicWorkforceTaskPrice; }
155 inline bool PublicWorkforceTaskPriceHasBeenSet() const { return m_publicWorkforceTaskPriceHasBeenSet; }
156 template<typename PublicWorkforceTaskPriceT = PublicWorkforceTaskPrice>
157 void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT&& value) { m_publicWorkforceTaskPriceHasBeenSet = true; m_publicWorkforceTaskPrice = std::forward<PublicWorkforceTaskPriceT>(value); }
158 template<typename PublicWorkforceTaskPriceT = PublicWorkforceTaskPrice>
159 HumanLoopConfig& WithPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT&& value) { SetPublicWorkforceTaskPrice(std::forward<PublicWorkforceTaskPriceT>(value)); return *this;}
161 private:
162
163 Aws::String m_workteamArn;
164 bool m_workteamArnHasBeenSet = false;
165
166 Aws::String m_humanTaskUiArn;
167 bool m_humanTaskUiArnHasBeenSet = false;
168
169 Aws::String m_taskTitle;
170 bool m_taskTitleHasBeenSet = false;
171
172 Aws::String m_taskDescription;
173 bool m_taskDescriptionHasBeenSet = false;
174
175 int m_taskCount{0};
176 bool m_taskCountHasBeenSet = false;
177
178 int m_taskAvailabilityLifetimeInSeconds{0};
179 bool m_taskAvailabilityLifetimeInSecondsHasBeenSet = false;
180
181 int m_taskTimeLimitInSeconds{0};
182 bool m_taskTimeLimitInSecondsHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_taskKeywords;
185 bool m_taskKeywordsHasBeenSet = false;
186
187 PublicWorkforceTaskPrice m_publicWorkforceTaskPrice;
188 bool m_publicWorkforceTaskPriceHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace SageMaker
193} // namespace Aws
HumanLoopConfig & AddTaskKeywords(TaskKeywordsT &&value)
void SetHumanTaskUiArn(HumanTaskUiArnT &&value)
const Aws::String & GetTaskTitle() const
HumanLoopConfig & WithTaskTimeLimitInSeconds(int value)
const PublicWorkforceTaskPrice & GetPublicWorkforceTaskPrice() const
const Aws::String & GetWorkteamArn() const
void SetTaskDescription(TaskDescriptionT &&value)
void SetTaskKeywords(TaskKeywordsT &&value)
HumanLoopConfig & WithTaskAvailabilityLifetimeInSeconds(int value)
HumanLoopConfig & WithWorkteamArn(WorkteamArnT &&value)
void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT &&value)
void SetTaskTitle(TaskTitleT &&value)
AWS_SAGEMAKER_API HumanLoopConfig(Aws::Utils::Json::JsonView jsonValue)
HumanLoopConfig & WithTaskDescription(TaskDescriptionT &&value)
HumanLoopConfig & WithTaskKeywords(TaskKeywordsT &&value)
void SetWorkteamArn(WorkteamArnT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API HumanLoopConfig()=default
HumanLoopConfig & WithTaskCount(int value)
const Aws::Vector< Aws::String > & GetTaskKeywords() const
AWS_SAGEMAKER_API HumanLoopConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HumanLoopConfig & WithTaskTitle(TaskTitleT &&value)
const Aws::String & GetTaskDescription() const
HumanLoopConfig & WithHumanTaskUiArn(HumanTaskUiArnT &&value)
const Aws::String & GetHumanTaskUiArn() const
HumanLoopConfig & WithPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT &&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