AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
BatchInferenceJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/BatchInferenceJobConfig.h>
11#include <aws/personalize/model/BatchInferenceJobInput.h>
12#include <aws/personalize/model/BatchInferenceJobMode.h>
13#include <aws/personalize/model/BatchInferenceJobOutput.h>
14#include <aws/personalize/model/ThemeGenerationConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Personalize {
26namespace Model {
27
34 public:
35 AWS_PERSONALIZE_API BatchInferenceJob() = default;
36 AWS_PERSONALIZE_API BatchInferenceJob(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobName() const { return m_jobName; }
45 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
46 template <typename JobNameT = Aws::String>
47 void SetJobName(JobNameT&& value) {
48 m_jobNameHasBeenSet = true;
49 m_jobName = std::forward<JobNameT>(value);
50 }
51 template <typename JobNameT = Aws::String>
52 BatchInferenceJob& WithJobName(JobNameT&& value) {
53 SetJobName(std::forward<JobNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetBatchInferenceJobArn() const { return m_batchInferenceJobArn; }
63 inline bool BatchInferenceJobArnHasBeenSet() const { return m_batchInferenceJobArnHasBeenSet; }
64 template <typename BatchInferenceJobArnT = Aws::String>
65 void SetBatchInferenceJobArn(BatchInferenceJobArnT&& value) {
66 m_batchInferenceJobArnHasBeenSet = true;
67 m_batchInferenceJobArn = std::forward<BatchInferenceJobArnT>(value);
68 }
69 template <typename BatchInferenceJobArnT = Aws::String>
70 BatchInferenceJob& WithBatchInferenceJobArn(BatchInferenceJobArnT&& value) {
71 SetBatchInferenceJobArn(std::forward<BatchInferenceJobArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
81 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
82 template <typename FilterArnT = Aws::String>
83 void SetFilterArn(FilterArnT&& value) {
84 m_filterArnHasBeenSet = true;
85 m_filterArn = std::forward<FilterArnT>(value);
86 }
87 template <typename FilterArnT = Aws::String>
88 BatchInferenceJob& WithFilterArn(FilterArnT&& value) {
89 SetFilterArn(std::forward<FilterArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
99 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
100 template <typename FailureReasonT = Aws::String>
101 void SetFailureReason(FailureReasonT&& value) {
102 m_failureReasonHasBeenSet = true;
103 m_failureReason = std::forward<FailureReasonT>(value);
104 }
105 template <typename FailureReasonT = Aws::String>
106 BatchInferenceJob& WithFailureReason(FailureReasonT&& value) {
107 SetFailureReason(std::forward<FailureReasonT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
118 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
119 template <typename SolutionVersionArnT = Aws::String>
120 void SetSolutionVersionArn(SolutionVersionArnT&& value) {
121 m_solutionVersionArnHasBeenSet = true;
122 m_solutionVersionArn = std::forward<SolutionVersionArnT>(value);
123 }
124 template <typename SolutionVersionArnT = Aws::String>
125 BatchInferenceJob& WithSolutionVersionArn(SolutionVersionArnT&& value) {
126 SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value));
127 return *this;
128 }
130
132
136 inline int GetNumResults() const { return m_numResults; }
137 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
138 inline void SetNumResults(int value) {
139 m_numResultsHasBeenSet = true;
140 m_numResults = value;
141 }
143 SetNumResults(value);
144 return *this;
145 }
147
149
153 inline const BatchInferenceJobInput& GetJobInput() const { return m_jobInput; }
154 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
155 template <typename JobInputT = BatchInferenceJobInput>
156 void SetJobInput(JobInputT&& value) {
157 m_jobInputHasBeenSet = true;
158 m_jobInput = std::forward<JobInputT>(value);
159 }
160 template <typename JobInputT = BatchInferenceJobInput>
161 BatchInferenceJob& WithJobInput(JobInputT&& value) {
162 SetJobInput(std::forward<JobInputT>(value));
163 return *this;
164 }
166
168
172 inline const BatchInferenceJobOutput& GetJobOutput() const { return m_jobOutput; }
173 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
174 template <typename JobOutputT = BatchInferenceJobOutput>
175 void SetJobOutput(JobOutputT&& value) {
176 m_jobOutputHasBeenSet = true;
177 m_jobOutput = std::forward<JobOutputT>(value);
178 }
179 template <typename JobOutputT = BatchInferenceJobOutput>
180 BatchInferenceJob& WithJobOutput(JobOutputT&& value) {
181 SetJobOutput(std::forward<JobOutputT>(value));
182 return *this;
183 }
185
187
191 inline const BatchInferenceJobConfig& GetBatchInferenceJobConfig() const { return m_batchInferenceJobConfig; }
192 inline bool BatchInferenceJobConfigHasBeenSet() const { return m_batchInferenceJobConfigHasBeenSet; }
193 template <typename BatchInferenceJobConfigT = BatchInferenceJobConfig>
194 void SetBatchInferenceJobConfig(BatchInferenceJobConfigT&& value) {
195 m_batchInferenceJobConfigHasBeenSet = true;
196 m_batchInferenceJobConfig = std::forward<BatchInferenceJobConfigT>(value);
197 }
198 template <typename BatchInferenceJobConfigT = BatchInferenceJobConfig>
199 BatchInferenceJob& WithBatchInferenceJobConfig(BatchInferenceJobConfigT&& value) {
200 SetBatchInferenceJobConfig(std::forward<BatchInferenceJobConfigT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
211 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
212 template <typename RoleArnT = Aws::String>
213 void SetRoleArn(RoleArnT&& value) {
214 m_roleArnHasBeenSet = true;
215 m_roleArn = std::forward<RoleArnT>(value);
216 }
217 template <typename RoleArnT = Aws::String>
218 BatchInferenceJob& WithRoleArn(RoleArnT&& value) {
219 SetRoleArn(std::forward<RoleArnT>(value));
220 return *this;
221 }
223
225
228 inline BatchInferenceJobMode GetBatchInferenceJobMode() const { return m_batchInferenceJobMode; }
229 inline bool BatchInferenceJobModeHasBeenSet() const { return m_batchInferenceJobModeHasBeenSet; }
231 m_batchInferenceJobModeHasBeenSet = true;
232 m_batchInferenceJobMode = value;
233 }
236 return *this;
237 }
239
241
244 inline const ThemeGenerationConfig& GetThemeGenerationConfig() const { return m_themeGenerationConfig; }
245 inline bool ThemeGenerationConfigHasBeenSet() const { return m_themeGenerationConfigHasBeenSet; }
246 template <typename ThemeGenerationConfigT = ThemeGenerationConfig>
247 void SetThemeGenerationConfig(ThemeGenerationConfigT&& value) {
248 m_themeGenerationConfigHasBeenSet = true;
249 m_themeGenerationConfig = std::forward<ThemeGenerationConfigT>(value);
250 }
251 template <typename ThemeGenerationConfigT = ThemeGenerationConfig>
252 BatchInferenceJob& WithThemeGenerationConfig(ThemeGenerationConfigT&& value) {
253 SetThemeGenerationConfig(std::forward<ThemeGenerationConfigT>(value));
254 return *this;
255 }
257
259
264 inline const Aws::String& GetStatus() const { return m_status; }
265 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
266 template <typename StatusT = Aws::String>
267 void SetStatus(StatusT&& value) {
268 m_statusHasBeenSet = true;
269 m_status = std::forward<StatusT>(value);
270 }
271 template <typename StatusT = Aws::String>
272 BatchInferenceJob& WithStatus(StatusT&& value) {
273 SetStatus(std::forward<StatusT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
283 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
284 template <typename CreationDateTimeT = Aws::Utils::DateTime>
285 void SetCreationDateTime(CreationDateTimeT&& value) {
286 m_creationDateTimeHasBeenSet = true;
287 m_creationDateTime = std::forward<CreationDateTimeT>(value);
288 }
289 template <typename CreationDateTimeT = Aws::Utils::DateTime>
290 BatchInferenceJob& WithCreationDateTime(CreationDateTimeT&& value) {
291 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
301 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
302 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
303 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
304 m_lastUpdatedDateTimeHasBeenSet = true;
305 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
306 }
307 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
308 BatchInferenceJob& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
309 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
310 return *this;
311 }
313 private:
314 Aws::String m_jobName;
315
316 Aws::String m_batchInferenceJobArn;
317
318 Aws::String m_filterArn;
319
320 Aws::String m_failureReason;
321
322 Aws::String m_solutionVersionArn;
323
324 int m_numResults{0};
325
326 BatchInferenceJobInput m_jobInput;
327
328 BatchInferenceJobOutput m_jobOutput;
329
330 BatchInferenceJobConfig m_batchInferenceJobConfig;
331
332 Aws::String m_roleArn;
333
335
336 ThemeGenerationConfig m_themeGenerationConfig;
337
338 Aws::String m_status;
339
340 Aws::Utils::DateTime m_creationDateTime{};
341
342 Aws::Utils::DateTime m_lastUpdatedDateTime{};
343 bool m_jobNameHasBeenSet = false;
344 bool m_batchInferenceJobArnHasBeenSet = false;
345 bool m_filterArnHasBeenSet = false;
346 bool m_failureReasonHasBeenSet = false;
347 bool m_solutionVersionArnHasBeenSet = false;
348 bool m_numResultsHasBeenSet = false;
349 bool m_jobInputHasBeenSet = false;
350 bool m_jobOutputHasBeenSet = false;
351 bool m_batchInferenceJobConfigHasBeenSet = false;
352 bool m_roleArnHasBeenSet = false;
353 bool m_batchInferenceJobModeHasBeenSet = false;
354 bool m_themeGenerationConfigHasBeenSet = false;
355 bool m_statusHasBeenSet = false;
356 bool m_creationDateTimeHasBeenSet = false;
357 bool m_lastUpdatedDateTimeHasBeenSet = false;
358};
359
360} // namespace Model
361} // namespace Personalize
362} // namespace Aws
void SetThemeGenerationConfig(ThemeGenerationConfigT &&value)
BatchInferenceJob & WithFailureReason(FailureReasonT &&value)
BatchInferenceJob & WithNumResults(int value)
BatchInferenceJob & WithJobInput(JobInputT &&value)
void SetSolutionVersionArn(SolutionVersionArnT &&value)
const Aws::String & GetBatchInferenceJobArn() const
AWS_PERSONALIZE_API BatchInferenceJob & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchInferenceJob & WithSolutionVersionArn(SolutionVersionArnT &&value)
const BatchInferenceJobConfig & GetBatchInferenceJobConfig() const
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetBatchInferenceJobArn(BatchInferenceJobArnT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
BatchInferenceJob & WithRoleArn(RoleArnT &&value)
void SetFailureReason(FailureReasonT &&value)
const BatchInferenceJobInput & GetJobInput() const
BatchInferenceJob & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const Aws::String & GetSolutionVersionArn() const
BatchInferenceJob & WithBatchInferenceJobArn(BatchInferenceJobArnT &&value)
AWS_PERSONALIZE_API BatchInferenceJob(Aws::Utils::Json::JsonView jsonValue)
void SetBatchInferenceJobConfig(BatchInferenceJobConfigT &&value)
BatchInferenceJob & WithThemeGenerationConfig(ThemeGenerationConfigT &&value)
BatchInferenceJob & WithFilterArn(FilterArnT &&value)
const Aws::String & GetFailureReason() const
const ThemeGenerationConfig & GetThemeGenerationConfig() const
BatchInferenceJob & WithJobOutput(JobOutputT &&value)
void SetBatchInferenceJobMode(BatchInferenceJobMode value)
BatchInferenceJob & WithStatus(StatusT &&value)
AWS_PERSONALIZE_API BatchInferenceJob()=default
void SetCreationDateTime(CreationDateTimeT &&value)
const Aws::Utils::DateTime & GetCreationDateTime() const
BatchInferenceJob & WithBatchInferenceJobMode(BatchInferenceJobMode value)
BatchInferenceJob & WithBatchInferenceJobConfig(BatchInferenceJobConfigT &&value)
BatchInferenceJobMode GetBatchInferenceJobMode() const
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const BatchInferenceJobOutput & GetJobOutput() const
BatchInferenceJob & WithJobName(JobNameT &&value)
BatchInferenceJob & WithCreationDateTime(CreationDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue