AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HumanLoopConfig.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/PublicWorkforceTaskPrice.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API HumanLoopConfig() = default;
33 AWS_SAGEMAKER_API HumanLoopConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetWorkteamArn() const { return m_workteamArn; }
46 inline bool WorkteamArnHasBeenSet() const { return m_workteamArnHasBeenSet; }
47 template <typename WorkteamArnT = Aws::String>
48 void SetWorkteamArn(WorkteamArnT&& value) {
49 m_workteamArnHasBeenSet = true;
50 m_workteamArn = std::forward<WorkteamArnT>(value);
51 }
52 template <typename WorkteamArnT = Aws::String>
53 HumanLoopConfig& WithWorkteamArn(WorkteamArnT&& value) {
54 SetWorkteamArn(std::forward<WorkteamArnT>(value));
55 return *this;
56 }
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) {
75 m_humanTaskUiArnHasBeenSet = true;
76 m_humanTaskUiArn = std::forward<HumanTaskUiArnT>(value);
77 }
78 template <typename HumanTaskUiArnT = Aws::String>
79 HumanLoopConfig& WithHumanTaskUiArn(HumanTaskUiArnT&& value) {
80 SetHumanTaskUiArn(std::forward<HumanTaskUiArnT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetTaskTitle() const { return m_taskTitle; }
90 inline bool TaskTitleHasBeenSet() const { return m_taskTitleHasBeenSet; }
91 template <typename TaskTitleT = Aws::String>
92 void SetTaskTitle(TaskTitleT&& value) {
93 m_taskTitleHasBeenSet = true;
94 m_taskTitle = std::forward<TaskTitleT>(value);
95 }
96 template <typename TaskTitleT = Aws::String>
97 HumanLoopConfig& WithTaskTitle(TaskTitleT&& value) {
98 SetTaskTitle(std::forward<TaskTitleT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetTaskDescription() const { return m_taskDescription; }
108 inline bool TaskDescriptionHasBeenSet() const { return m_taskDescriptionHasBeenSet; }
109 template <typename TaskDescriptionT = Aws::String>
110 void SetTaskDescription(TaskDescriptionT&& value) {
111 m_taskDescriptionHasBeenSet = true;
112 m_taskDescription = std::forward<TaskDescriptionT>(value);
113 }
114 template <typename TaskDescriptionT = Aws::String>
115 HumanLoopConfig& WithTaskDescription(TaskDescriptionT&& value) {
116 SetTaskDescription(std::forward<TaskDescriptionT>(value));
117 return *this;
118 }
120
122
128 inline int GetTaskCount() const { return m_taskCount; }
129 inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
130 inline void SetTaskCount(int value) {
131 m_taskCountHasBeenSet = true;
132 m_taskCount = value;
133 }
134 inline HumanLoopConfig& WithTaskCount(int value) {
135 SetTaskCount(value);
136 return *this;
137 }
139
141
145 inline int GetTaskAvailabilityLifetimeInSeconds() const { return m_taskAvailabilityLifetimeInSeconds; }
146 inline bool TaskAvailabilityLifetimeInSecondsHasBeenSet() const { return m_taskAvailabilityLifetimeInSecondsHasBeenSet; }
148 m_taskAvailabilityLifetimeInSecondsHasBeenSet = true;
149 m_taskAvailabilityLifetimeInSeconds = value;
150 }
153 return *this;
154 }
156
158
162 inline int GetTaskTimeLimitInSeconds() const { return m_taskTimeLimitInSeconds; }
163 inline bool TaskTimeLimitInSecondsHasBeenSet() const { return m_taskTimeLimitInSecondsHasBeenSet; }
164 inline void SetTaskTimeLimitInSeconds(int value) {
165 m_taskTimeLimitInSecondsHasBeenSet = true;
166 m_taskTimeLimitInSeconds = value;
167 }
170 return *this;
171 }
173
175
178 inline const Aws::Vector<Aws::String>& GetTaskKeywords() const { return m_taskKeywords; }
179 inline bool TaskKeywordsHasBeenSet() const { return m_taskKeywordsHasBeenSet; }
180 template <typename TaskKeywordsT = Aws::Vector<Aws::String>>
181 void SetTaskKeywords(TaskKeywordsT&& value) {
182 m_taskKeywordsHasBeenSet = true;
183 m_taskKeywords = std::forward<TaskKeywordsT>(value);
184 }
185 template <typename TaskKeywordsT = Aws::Vector<Aws::String>>
186 HumanLoopConfig& WithTaskKeywords(TaskKeywordsT&& value) {
187 SetTaskKeywords(std::forward<TaskKeywordsT>(value));
188 return *this;
189 }
190 template <typename TaskKeywordsT = Aws::String>
191 HumanLoopConfig& AddTaskKeywords(TaskKeywordsT&& value) {
192 m_taskKeywordsHasBeenSet = true;
193 m_taskKeywords.emplace_back(std::forward<TaskKeywordsT>(value));
194 return *this;
195 }
197
199
200 inline const PublicWorkforceTaskPrice& GetPublicWorkforceTaskPrice() const { return m_publicWorkforceTaskPrice; }
201 inline bool PublicWorkforceTaskPriceHasBeenSet() const { return m_publicWorkforceTaskPriceHasBeenSet; }
202 template <typename PublicWorkforceTaskPriceT = PublicWorkforceTaskPrice>
203 void SetPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT&& value) {
204 m_publicWorkforceTaskPriceHasBeenSet = true;
205 m_publicWorkforceTaskPrice = std::forward<PublicWorkforceTaskPriceT>(value);
206 }
207 template <typename PublicWorkforceTaskPriceT = PublicWorkforceTaskPrice>
208 HumanLoopConfig& WithPublicWorkforceTaskPrice(PublicWorkforceTaskPriceT&& value) {
209 SetPublicWorkforceTaskPrice(std::forward<PublicWorkforceTaskPriceT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_workteamArn;
215
216 Aws::String m_humanTaskUiArn;
217
218 Aws::String m_taskTitle;
219
220 Aws::String m_taskDescription;
221
222 int m_taskCount{0};
223
224 int m_taskAvailabilityLifetimeInSeconds{0};
225
226 int m_taskTimeLimitInSeconds{0};
227
228 Aws::Vector<Aws::String> m_taskKeywords;
229
230 PublicWorkforceTaskPrice m_publicWorkforceTaskPrice;
231 bool m_workteamArnHasBeenSet = false;
232 bool m_humanTaskUiArnHasBeenSet = false;
233 bool m_taskTitleHasBeenSet = false;
234 bool m_taskDescriptionHasBeenSet = false;
235 bool m_taskCountHasBeenSet = false;
236 bool m_taskAvailabilityLifetimeInSecondsHasBeenSet = false;
237 bool m_taskTimeLimitInSecondsHasBeenSet = false;
238 bool m_taskKeywordsHasBeenSet = false;
239 bool m_publicWorkforceTaskPriceHasBeenSet = false;
240};
241
242} // namespace Model
243} // namespace SageMaker
244} // 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