AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchPrediction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/machinelearning/MachineLearning_EXPORTS.h>
10#include <aws/machinelearning/model/EntityStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MachineLearning {
22namespace Model {
23
32 public:
33 AWS_MACHINELEARNING_API BatchPrediction() = default;
34 AWS_MACHINELEARNING_API BatchPrediction(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACHINELEARNING_API BatchPrediction& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetBatchPredictionId() const { return m_batchPredictionId; }
45 inline bool BatchPredictionIdHasBeenSet() const { return m_batchPredictionIdHasBeenSet; }
46 template <typename BatchPredictionIdT = Aws::String>
47 void SetBatchPredictionId(BatchPredictionIdT&& value) {
48 m_batchPredictionIdHasBeenSet = true;
49 m_batchPredictionId = std::forward<BatchPredictionIdT>(value);
50 }
51 template <typename BatchPredictionIdT = Aws::String>
52 BatchPrediction& WithBatchPredictionId(BatchPredictionIdT&& value) {
53 SetBatchPredictionId(std::forward<BatchPredictionIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
64 inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
65 template <typename MLModelIdT = Aws::String>
66 void SetMLModelId(MLModelIdT&& value) {
67 m_mLModelIdHasBeenSet = true;
68 m_mLModelId = std::forward<MLModelIdT>(value);
69 }
70 template <typename MLModelIdT = Aws::String>
71 BatchPrediction& WithMLModelId(MLModelIdT&& value) {
72 SetMLModelId(std::forward<MLModelIdT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetBatchPredictionDataSourceId() const { return m_batchPredictionDataSourceId; }
83 inline bool BatchPredictionDataSourceIdHasBeenSet() const { return m_batchPredictionDataSourceIdHasBeenSet; }
84 template <typename BatchPredictionDataSourceIdT = Aws::String>
85 void SetBatchPredictionDataSourceId(BatchPredictionDataSourceIdT&& value) {
86 m_batchPredictionDataSourceIdHasBeenSet = true;
87 m_batchPredictionDataSourceId = std::forward<BatchPredictionDataSourceIdT>(value);
88 }
89 template <typename BatchPredictionDataSourceIdT = Aws::String>
90 BatchPrediction& WithBatchPredictionDataSourceId(BatchPredictionDataSourceIdT&& value) {
91 SetBatchPredictionDataSourceId(std::forward<BatchPredictionDataSourceIdT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetInputDataLocationS3() const { return m_inputDataLocationS3; }
102 inline bool InputDataLocationS3HasBeenSet() const { return m_inputDataLocationS3HasBeenSet; }
103 template <typename InputDataLocationS3T = Aws::String>
104 void SetInputDataLocationS3(InputDataLocationS3T&& value) {
105 m_inputDataLocationS3HasBeenSet = true;
106 m_inputDataLocationS3 = std::forward<InputDataLocationS3T>(value);
107 }
108 template <typename InputDataLocationS3T = Aws::String>
109 BatchPrediction& WithInputDataLocationS3(InputDataLocationS3T&& value) {
110 SetInputDataLocationS3(std::forward<InputDataLocationS3T>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
122 inline bool CreatedByIamUserHasBeenSet() const { return m_createdByIamUserHasBeenSet; }
123 template <typename CreatedByIamUserT = Aws::String>
124 void SetCreatedByIamUser(CreatedByIamUserT&& value) {
125 m_createdByIamUserHasBeenSet = true;
126 m_createdByIamUser = std::forward<CreatedByIamUserT>(value);
127 }
128 template <typename CreatedByIamUserT = Aws::String>
129 BatchPrediction& WithCreatedByIamUser(CreatedByIamUserT&& value) {
130 SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
141 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
142 template <typename CreatedAtT = Aws::Utils::DateTime>
143 void SetCreatedAt(CreatedAtT&& value) {
144 m_createdAtHasBeenSet = true;
145 m_createdAt = std::forward<CreatedAtT>(value);
146 }
147 template <typename CreatedAtT = Aws::Utils::DateTime>
148 BatchPrediction& WithCreatedAt(CreatedAtT&& value) {
149 SetCreatedAt(std::forward<CreatedAtT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
160 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
161 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
162 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
163 m_lastUpdatedAtHasBeenSet = true;
164 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
165 }
166 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
167 BatchPrediction& WithLastUpdatedAt(LastUpdatedAtT&& value) {
168 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetName() const { return m_name; }
178 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
179 template <typename NameT = Aws::String>
180 void SetName(NameT&& value) {
181 m_nameHasBeenSet = true;
182 m_name = std::forward<NameT>(value);
183 }
184 template <typename NameT = Aws::String>
185 BatchPrediction& WithName(NameT&& value) {
186 SetName(std::forward<NameT>(value));
187 return *this;
188 }
190
192
204 inline EntityStatus GetStatus() const { return m_status; }
205 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
206 inline void SetStatus(EntityStatus value) {
207 m_statusHasBeenSet = true;
208 m_status = value;
209 }
211 SetStatus(value);
212 return *this;
213 }
215
217
222 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
223 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
224 template <typename OutputUriT = Aws::String>
225 void SetOutputUri(OutputUriT&& value) {
226 m_outputUriHasBeenSet = true;
227 m_outputUri = std::forward<OutputUriT>(value);
228 }
229 template <typename OutputUriT = Aws::String>
230 BatchPrediction& WithOutputUri(OutputUriT&& value) {
231 SetOutputUri(std::forward<OutputUriT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetMessage() const { return m_message; }
242 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
243 template <typename MessageT = Aws::String>
244 void SetMessage(MessageT&& value) {
245 m_messageHasBeenSet = true;
246 m_message = std::forward<MessageT>(value);
247 }
248 template <typename MessageT = Aws::String>
249 BatchPrediction& WithMessage(MessageT&& value) {
250 SetMessage(std::forward<MessageT>(value));
251 return *this;
252 }
254
256
257 inline long long GetComputeTime() const { return m_computeTime; }
258 inline bool ComputeTimeHasBeenSet() const { return m_computeTimeHasBeenSet; }
259 inline void SetComputeTime(long long value) {
260 m_computeTimeHasBeenSet = true;
261 m_computeTime = value;
262 }
263 inline BatchPrediction& WithComputeTime(long long value) {
264 SetComputeTime(value);
265 return *this;
266 }
268
270
271 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
272 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
273 template <typename FinishedAtT = Aws::Utils::DateTime>
274 void SetFinishedAt(FinishedAtT&& value) {
275 m_finishedAtHasBeenSet = true;
276 m_finishedAt = std::forward<FinishedAtT>(value);
277 }
278 template <typename FinishedAtT = Aws::Utils::DateTime>
279 BatchPrediction& WithFinishedAt(FinishedAtT&& value) {
280 SetFinishedAt(std::forward<FinishedAtT>(value));
281 return *this;
282 }
284
286
287 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
288 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
289 template <typename StartedAtT = Aws::Utils::DateTime>
290 void SetStartedAt(StartedAtT&& value) {
291 m_startedAtHasBeenSet = true;
292 m_startedAt = std::forward<StartedAtT>(value);
293 }
294 template <typename StartedAtT = Aws::Utils::DateTime>
295 BatchPrediction& WithStartedAt(StartedAtT&& value) {
296 SetStartedAt(std::forward<StartedAtT>(value));
297 return *this;
298 }
300
302
303 inline long long GetTotalRecordCount() const { return m_totalRecordCount; }
304 inline bool TotalRecordCountHasBeenSet() const { return m_totalRecordCountHasBeenSet; }
305 inline void SetTotalRecordCount(long long value) {
306 m_totalRecordCountHasBeenSet = true;
307 m_totalRecordCount = value;
308 }
309 inline BatchPrediction& WithTotalRecordCount(long long value) {
310 SetTotalRecordCount(value);
311 return *this;
312 }
314
316
317 inline long long GetInvalidRecordCount() const { return m_invalidRecordCount; }
318 inline bool InvalidRecordCountHasBeenSet() const { return m_invalidRecordCountHasBeenSet; }
319 inline void SetInvalidRecordCount(long long value) {
320 m_invalidRecordCountHasBeenSet = true;
321 m_invalidRecordCount = value;
322 }
323 inline BatchPrediction& WithInvalidRecordCount(long long value) {
325 return *this;
326 }
328 private:
329 Aws::String m_batchPredictionId;
330
331 Aws::String m_mLModelId;
332
333 Aws::String m_batchPredictionDataSourceId;
334
335 Aws::String m_inputDataLocationS3;
336
337 Aws::String m_createdByIamUser;
338
339 Aws::Utils::DateTime m_createdAt{};
340
341 Aws::Utils::DateTime m_lastUpdatedAt{};
342
343 Aws::String m_name;
344
346
347 Aws::String m_outputUri;
348
349 Aws::String m_message;
350
351 long long m_computeTime{0};
352
353 Aws::Utils::DateTime m_finishedAt{};
354
355 Aws::Utils::DateTime m_startedAt{};
356
357 long long m_totalRecordCount{0};
358
359 long long m_invalidRecordCount{0};
360 bool m_batchPredictionIdHasBeenSet = false;
361 bool m_mLModelIdHasBeenSet = false;
362 bool m_batchPredictionDataSourceIdHasBeenSet = false;
363 bool m_inputDataLocationS3HasBeenSet = false;
364 bool m_createdByIamUserHasBeenSet = false;
365 bool m_createdAtHasBeenSet = false;
366 bool m_lastUpdatedAtHasBeenSet = false;
367 bool m_nameHasBeenSet = false;
368 bool m_statusHasBeenSet = false;
369 bool m_outputUriHasBeenSet = false;
370 bool m_messageHasBeenSet = false;
371 bool m_computeTimeHasBeenSet = false;
372 bool m_finishedAtHasBeenSet = false;
373 bool m_startedAtHasBeenSet = false;
374 bool m_totalRecordCountHasBeenSet = false;
375 bool m_invalidRecordCountHasBeenSet = false;
376};
377
378} // namespace Model
379} // namespace MachineLearning
380} // namespace Aws
AWS_MACHINELEARNING_API BatchPrediction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_MACHINELEARNING_API BatchPrediction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBatchPredictionId(BatchPredictionIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::String & GetBatchPredictionId() const
BatchPrediction & WithCreatedByIamUser(CreatedByIamUserT &&value)
BatchPrediction & WithInputDataLocationS3(InputDataLocationS3T &&value)
BatchPrediction & WithMLModelId(MLModelIdT &&value)
const Aws::String & GetBatchPredictionDataSourceId() const
BatchPrediction & WithMessage(MessageT &&value)
BatchPrediction & WithName(NameT &&value)
AWS_MACHINELEARNING_API BatchPrediction()=default
BatchPrediction & WithFinishedAt(FinishedAtT &&value)
BatchPrediction & WithInvalidRecordCount(long long value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
BatchPrediction & WithTotalRecordCount(long long value)
const Aws::String & GetInputDataLocationS3() const
BatchPrediction & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetBatchPredictionDataSourceId(BatchPredictionDataSourceIdT &&value)
const Aws::Utils::DateTime & GetFinishedAt() const
BatchPrediction & WithOutputUri(OutputUriT &&value)
BatchPrediction & WithBatchPredictionId(BatchPredictionIdT &&value)
BatchPrediction & WithCreatedAt(CreatedAtT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
BatchPrediction & WithStatus(EntityStatus value)
const Aws::String & GetCreatedByIamUser() const
void SetInputDataLocationS3(InputDataLocationS3T &&value)
BatchPrediction & WithStartedAt(StartedAtT &&value)
BatchPrediction & WithComputeTime(long long value)
void SetCreatedByIamUser(CreatedByIamUserT &&value)
BatchPrediction & WithBatchPredictionDataSourceId(BatchPredictionDataSourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue