AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetBatchPredictionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/machinelearning/MachineLearning_EXPORTS.h>
11#include <aws/machinelearning/model/EntityStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MachineLearning {
25namespace Model {
33 public:
34 AWS_MACHINELEARNING_API GetBatchPredictionResult() = default;
37
39
44 inline const Aws::String& GetBatchPredictionId() const { return m_batchPredictionId; }
45 template <typename BatchPredictionIdT = Aws::String>
46 void SetBatchPredictionId(BatchPredictionIdT&& value) {
47 m_batchPredictionIdHasBeenSet = true;
48 m_batchPredictionId = std::forward<BatchPredictionIdT>(value);
49 }
50 template <typename BatchPredictionIdT = Aws::String>
51 GetBatchPredictionResult& WithBatchPredictionId(BatchPredictionIdT&& value) {
52 SetBatchPredictionId(std::forward<BatchPredictionIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetMLModelId() const { return m_mLModelId; }
63 template <typename MLModelIdT = Aws::String>
64 void SetMLModelId(MLModelIdT&& value) {
65 m_mLModelIdHasBeenSet = true;
66 m_mLModelId = std::forward<MLModelIdT>(value);
67 }
68 template <typename MLModelIdT = Aws::String>
70 SetMLModelId(std::forward<MLModelIdT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetBatchPredictionDataSourceId() const { return m_batchPredictionDataSourceId; }
81 template <typename BatchPredictionDataSourceIdT = Aws::String>
82 void SetBatchPredictionDataSourceId(BatchPredictionDataSourceIdT&& value) {
83 m_batchPredictionDataSourceIdHasBeenSet = true;
84 m_batchPredictionDataSourceId = std::forward<BatchPredictionDataSourceIdT>(value);
85 }
86 template <typename BatchPredictionDataSourceIdT = Aws::String>
87 GetBatchPredictionResult& WithBatchPredictionDataSourceId(BatchPredictionDataSourceIdT&& value) {
88 SetBatchPredictionDataSourceId(std::forward<BatchPredictionDataSourceIdT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetInputDataLocationS3() const { return m_inputDataLocationS3; }
99 template <typename InputDataLocationS3T = Aws::String>
100 void SetInputDataLocationS3(InputDataLocationS3T&& value) {
101 m_inputDataLocationS3HasBeenSet = true;
102 m_inputDataLocationS3 = std::forward<InputDataLocationS3T>(value);
103 }
104 template <typename InputDataLocationS3T = Aws::String>
105 GetBatchPredictionResult& WithInputDataLocationS3(InputDataLocationS3T&& value) {
106 SetInputDataLocationS3(std::forward<InputDataLocationS3T>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetCreatedByIamUser() const { return m_createdByIamUser; }
118 template <typename CreatedByIamUserT = Aws::String>
119 void SetCreatedByIamUser(CreatedByIamUserT&& value) {
120 m_createdByIamUserHasBeenSet = true;
121 m_createdByIamUser = std::forward<CreatedByIamUserT>(value);
122 }
123 template <typename CreatedByIamUserT = Aws::String>
124 GetBatchPredictionResult& WithCreatedByIamUser(CreatedByIamUserT&& value) {
125 SetCreatedByIamUser(std::forward<CreatedByIamUserT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) {
138 m_createdAtHasBeenSet = true;
139 m_createdAt = std::forward<CreatedAtT>(value);
140 }
141 template <typename CreatedAtT = Aws::Utils::DateTime>
143 SetCreatedAt(std::forward<CreatedAtT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
154 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
155 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
156 m_lastUpdatedAtHasBeenSet = true;
157 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
158 }
159 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
161 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetName() const { return m_name; }
171 template <typename NameT = Aws::String>
172 void SetName(NameT&& value) {
173 m_nameHasBeenSet = true;
174 m_name = std::forward<NameT>(value);
175 }
176 template <typename NameT = Aws::String>
178 SetName(std::forward<NameT>(value));
179 return *this;
180 }
182
184
196 inline EntityStatus GetStatus() const { return m_status; }
197 inline void SetStatus(EntityStatus value) {
198 m_statusHasBeenSet = true;
199 m_status = value;
200 }
202 SetStatus(value);
203 return *this;
204 }
206
208
212 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
213 template <typename OutputUriT = Aws::String>
214 void SetOutputUri(OutputUriT&& value) {
215 m_outputUriHasBeenSet = true;
216 m_outputUri = std::forward<OutputUriT>(value);
217 }
218 template <typename OutputUriT = Aws::String>
220 SetOutputUri(std::forward<OutputUriT>(value));
221 return *this;
222 }
224
226
230 inline const Aws::String& GetLogUri() const { return m_logUri; }
231 template <typename LogUriT = Aws::String>
232 void SetLogUri(LogUriT&& value) {
233 m_logUriHasBeenSet = true;
234 m_logUri = std::forward<LogUriT>(value);
235 }
236 template <typename LogUriT = Aws::String>
238 SetLogUri(std::forward<LogUriT>(value));
239 return *this;
240 }
242
244
248 inline const Aws::String& GetMessage() const { return m_message; }
249 template <typename MessageT = Aws::String>
250 void SetMessage(MessageT&& value) {
251 m_messageHasBeenSet = true;
252 m_message = std::forward<MessageT>(value);
253 }
254 template <typename MessageT = Aws::String>
256 SetMessage(std::forward<MessageT>(value));
257 return *this;
258 }
260
262
268 inline long long GetComputeTime() const { return m_computeTime; }
269 inline void SetComputeTime(long long value) {
270 m_computeTimeHasBeenSet = true;
271 m_computeTime = value;
272 }
273 inline GetBatchPredictionResult& WithComputeTime(long long value) {
274 SetComputeTime(value);
275 return *this;
276 }
278
280
286 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
287 template <typename FinishedAtT = Aws::Utils::DateTime>
288 void SetFinishedAt(FinishedAtT&& value) {
289 m_finishedAtHasBeenSet = true;
290 m_finishedAt = std::forward<FinishedAtT>(value);
291 }
292 template <typename FinishedAtT = Aws::Utils::DateTime>
294 SetFinishedAt(std::forward<FinishedAtT>(value));
295 return *this;
296 }
298
300
306 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
307 template <typename StartedAtT = Aws::Utils::DateTime>
308 void SetStartedAt(StartedAtT&& value) {
309 m_startedAtHasBeenSet = true;
310 m_startedAt = std::forward<StartedAtT>(value);
311 }
312 template <typename StartedAtT = Aws::Utils::DateTime>
314 SetStartedAt(std::forward<StartedAtT>(value));
315 return *this;
316 }
318
320
324 inline long long GetTotalRecordCount() const { return m_totalRecordCount; }
325 inline void SetTotalRecordCount(long long value) {
326 m_totalRecordCountHasBeenSet = true;
327 m_totalRecordCount = value;
328 }
330 SetTotalRecordCount(value);
331 return *this;
332 }
334
336
340 inline long long GetInvalidRecordCount() const { return m_invalidRecordCount; }
341 inline void SetInvalidRecordCount(long long value) {
342 m_invalidRecordCountHasBeenSet = true;
343 m_invalidRecordCount = value;
344 }
347 return *this;
348 }
350
352
353 inline const Aws::String& GetRequestId() const { return m_requestId; }
354 template <typename RequestIdT = Aws::String>
355 void SetRequestId(RequestIdT&& value) {
356 m_requestIdHasBeenSet = true;
357 m_requestId = std::forward<RequestIdT>(value);
358 }
359 template <typename RequestIdT = Aws::String>
361 SetRequestId(std::forward<RequestIdT>(value));
362 return *this;
363 }
365 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
366
367 private:
368 Aws::String m_batchPredictionId;
369
370 Aws::String m_mLModelId;
371
372 Aws::String m_batchPredictionDataSourceId;
373
374 Aws::String m_inputDataLocationS3;
375
376 Aws::String m_createdByIamUser;
377
378 Aws::Utils::DateTime m_createdAt{};
379
380 Aws::Utils::DateTime m_lastUpdatedAt{};
381
382 Aws::String m_name;
383
385
386 Aws::String m_outputUri;
387
388 Aws::String m_logUri;
389
390 Aws::String m_message;
391
392 long long m_computeTime{0};
393
394 Aws::Utils::DateTime m_finishedAt{};
395
396 Aws::Utils::DateTime m_startedAt{};
397
398 long long m_totalRecordCount{0};
399
400 long long m_invalidRecordCount{0};
401
402 Aws::String m_requestId;
403 Aws::Http::HttpResponseCode m_HttpResponseCode;
404 bool m_batchPredictionIdHasBeenSet = false;
405 bool m_mLModelIdHasBeenSet = false;
406 bool m_batchPredictionDataSourceIdHasBeenSet = false;
407 bool m_inputDataLocationS3HasBeenSet = false;
408 bool m_createdByIamUserHasBeenSet = false;
409 bool m_createdAtHasBeenSet = false;
410 bool m_lastUpdatedAtHasBeenSet = false;
411 bool m_nameHasBeenSet = false;
412 bool m_statusHasBeenSet = false;
413 bool m_outputUriHasBeenSet = false;
414 bool m_logUriHasBeenSet = false;
415 bool m_messageHasBeenSet = false;
416 bool m_computeTimeHasBeenSet = false;
417 bool m_finishedAtHasBeenSet = false;
418 bool m_startedAtHasBeenSet = false;
419 bool m_totalRecordCountHasBeenSet = false;
420 bool m_invalidRecordCountHasBeenSet = false;
421 bool m_requestIdHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace MachineLearning
426} // namespace Aws
GetBatchPredictionResult & WithFinishedAt(FinishedAtT &&value)
GetBatchPredictionResult & WithInputDataLocationS3(InputDataLocationS3T &&value)
GetBatchPredictionResult & WithCreatedByIamUser(CreatedByIamUserT &&value)
GetBatchPredictionResult & WithLogUri(LogUriT &&value)
GetBatchPredictionResult & WithRequestId(RequestIdT &&value)
GetBatchPredictionResult & WithBatchPredictionDataSourceId(BatchPredictionDataSourceIdT &&value)
GetBatchPredictionResult & WithMLModelId(MLModelIdT &&value)
GetBatchPredictionResult & WithInvalidRecordCount(long long value)
void SetBatchPredictionDataSourceId(BatchPredictionDataSourceIdT &&value)
GetBatchPredictionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetBatchPredictionResult & WithMessage(MessageT &&value)
GetBatchPredictionResult & WithCreatedAt(CreatedAtT &&value)
GetBatchPredictionResult & WithTotalRecordCount(long long value)
AWS_MACHINELEARNING_API GetBatchPredictionResult()=default
AWS_MACHINELEARNING_API GetBatchPredictionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBatchPredictionResult & WithOutputUri(OutputUriT &&value)
GetBatchPredictionResult & WithStatus(EntityStatus value)
GetBatchPredictionResult & WithBatchPredictionId(BatchPredictionIdT &&value)
GetBatchPredictionResult & WithStartedAt(StartedAtT &&value)
AWS_MACHINELEARNING_API GetBatchPredictionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBatchPredictionResult & WithComputeTime(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue