AWS SDK for C++  0.14.3
AWS SDK for C++
BatchPrediction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace MachineLearning
31 {
32 namespace Model
33 {
34 
41  {
42  public:
45  BatchPrediction& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
53  inline const Aws::String& GetBatchPredictionId() const{ return m_batchPredictionId; }
54 
60  inline void SetBatchPredictionId(const Aws::String& value) { m_batchPredictionIdHasBeenSet = true; m_batchPredictionId = value; }
61 
67  inline void SetBatchPredictionId(Aws::String&& value) { m_batchPredictionIdHasBeenSet = true; m_batchPredictionId = value; }
68 
74  inline void SetBatchPredictionId(const char* value) { m_batchPredictionIdHasBeenSet = true; m_batchPredictionId.assign(value); }
75 
81  inline BatchPrediction& WithBatchPredictionId(const Aws::String& value) { SetBatchPredictionId(value); return *this;}
82 
88  inline BatchPrediction& WithBatchPredictionId(Aws::String&& value) { SetBatchPredictionId(value); return *this;}
89 
95  inline BatchPrediction& WithBatchPredictionId(const char* value) { SetBatchPredictionId(value); return *this;}
96 
101  inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
102 
107  inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
108 
113  inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
114 
119  inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
120 
125  inline BatchPrediction& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
126 
131  inline BatchPrediction& WithMLModelId(Aws::String&& value) { SetMLModelId(value); return *this;}
132 
137  inline BatchPrediction& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
138 
143  inline const Aws::String& GetBatchPredictionDataSourceId() const{ return m_batchPredictionDataSourceId; }
144 
149  inline void SetBatchPredictionDataSourceId(const Aws::String& value) { m_batchPredictionDataSourceIdHasBeenSet = true; m_batchPredictionDataSourceId = value; }
150 
155  inline void SetBatchPredictionDataSourceId(Aws::String&& value) { m_batchPredictionDataSourceIdHasBeenSet = true; m_batchPredictionDataSourceId = value; }
156 
161  inline void SetBatchPredictionDataSourceId(const char* value) { m_batchPredictionDataSourceIdHasBeenSet = true; m_batchPredictionDataSourceId.assign(value); }
162 
167  inline BatchPrediction& WithBatchPredictionDataSourceId(const Aws::String& value) { SetBatchPredictionDataSourceId(value); return *this;}
168 
173  inline BatchPrediction& WithBatchPredictionDataSourceId(Aws::String&& value) { SetBatchPredictionDataSourceId(value); return *this;}
174 
179  inline BatchPrediction& WithBatchPredictionDataSourceId(const char* value) { SetBatchPredictionDataSourceId(value); return *this;}
180 
185  inline const Aws::String& GetInputDataLocationS3() const{ return m_inputDataLocationS3; }
186 
191  inline void SetInputDataLocationS3(const Aws::String& value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3 = value; }
192 
197  inline void SetInputDataLocationS3(Aws::String&& value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3 = value; }
198 
203  inline void SetInputDataLocationS3(const char* value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3.assign(value); }
204 
209  inline BatchPrediction& WithInputDataLocationS3(const Aws::String& value) { SetInputDataLocationS3(value); return *this;}
210 
215  inline BatchPrediction& WithInputDataLocationS3(Aws::String&& value) { SetInputDataLocationS3(value); return *this;}
216 
221  inline BatchPrediction& WithInputDataLocationS3(const char* value) { SetInputDataLocationS3(value); return *this;}
222 
228  inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; }
229 
235  inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
236 
242  inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
243 
249  inline void SetCreatedByIamUser(const char* value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser.assign(value); }
250 
256  inline BatchPrediction& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;}
257 
263  inline BatchPrediction& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(value); return *this;}
264 
270  inline BatchPrediction& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;}
271 
276  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
277 
282  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
283 
288  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
289 
294  inline BatchPrediction& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
295 
300  inline BatchPrediction& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
301 
306  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
307 
312  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
313 
318  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
319 
324  inline BatchPrediction& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
325 
330  inline BatchPrediction& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(value); return *this;}
331 
335  inline const Aws::String& GetName() const{ return m_name; }
336 
340  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
341 
345  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
346 
350  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
351 
355  inline BatchPrediction& WithName(const Aws::String& value) { SetName(value); return *this;}
356 
360  inline BatchPrediction& WithName(Aws::String&& value) { SetName(value); return *this;}
361 
365  inline BatchPrediction& WithName(const char* value) { SetName(value); return *this;}
366 
377  inline const EntityStatus& GetStatus() const{ return m_status; }
378 
389  inline void SetStatus(const EntityStatus& value) { m_statusHasBeenSet = true; m_status = value; }
390 
401  inline void SetStatus(EntityStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
402 
413  inline BatchPrediction& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;}
414 
425  inline BatchPrediction& WithStatus(EntityStatus&& value) { SetStatus(value); return *this;}
426 
432  inline const Aws::String& GetOutputUri() const{ return m_outputUri; }
433 
439  inline void SetOutputUri(const Aws::String& value) { m_outputUriHasBeenSet = true; m_outputUri = value; }
440 
446  inline void SetOutputUri(Aws::String&& value) { m_outputUriHasBeenSet = true; m_outputUri = value; }
447 
453  inline void SetOutputUri(const char* value) { m_outputUriHasBeenSet = true; m_outputUri.assign(value); }
454 
460  inline BatchPrediction& WithOutputUri(const Aws::String& value) { SetOutputUri(value); return *this;}
461 
467  inline BatchPrediction& WithOutputUri(Aws::String&& value) { SetOutputUri(value); return *this;}
468 
474  inline BatchPrediction& WithOutputUri(const char* value) { SetOutputUri(value); return *this;}
475 
480  inline const Aws::String& GetMessage() const{ return m_message; }
481 
486  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
487 
492  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
493 
498  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
499 
504  inline BatchPrediction& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
505 
510  inline BatchPrediction& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
511 
516  inline BatchPrediction& WithMessage(const char* value) { SetMessage(value); return *this;}
517 
518 
519  inline long long GetComputeTime() const{ return m_computeTime; }
520 
521 
522  inline void SetComputeTime(long long value) { m_computeTimeHasBeenSet = true; m_computeTime = value; }
523 
524 
525  inline BatchPrediction& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
526 
527 
528  inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; }
529 
530 
531  inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
532 
533 
534  inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
535 
536 
537  inline BatchPrediction& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;}
538 
539 
540  inline BatchPrediction& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(value); return *this;}
541 
542 
543  inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
544 
545 
546  inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
547 
548 
549  inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
550 
551 
552  inline BatchPrediction& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
553 
554 
555  inline BatchPrediction& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(value); return *this;}
556 
557 
558  inline long long GetTotalRecordCount() const{ return m_totalRecordCount; }
559 
560 
561  inline void SetTotalRecordCount(long long value) { m_totalRecordCountHasBeenSet = true; m_totalRecordCount = value; }
562 
563 
564  inline BatchPrediction& WithTotalRecordCount(long long value) { SetTotalRecordCount(value); return *this;}
565 
566 
567  inline long long GetInvalidRecordCount() const{ return m_invalidRecordCount; }
568 
569 
570  inline void SetInvalidRecordCount(long long value) { m_invalidRecordCountHasBeenSet = true; m_invalidRecordCount = value; }
571 
572 
573  inline BatchPrediction& WithInvalidRecordCount(long long value) { SetInvalidRecordCount(value); return *this;}
574 
575  private:
576  Aws::String m_batchPredictionId;
577  bool m_batchPredictionIdHasBeenSet;
578  Aws::String m_mLModelId;
579  bool m_mLModelIdHasBeenSet;
580  Aws::String m_batchPredictionDataSourceId;
581  bool m_batchPredictionDataSourceIdHasBeenSet;
582  Aws::String m_inputDataLocationS3;
583  bool m_inputDataLocationS3HasBeenSet;
584  Aws::String m_createdByIamUser;
585  bool m_createdByIamUserHasBeenSet;
586  Aws::Utils::DateTime m_createdAt;
587  bool m_createdAtHasBeenSet;
588  Aws::Utils::DateTime m_lastUpdatedAt;
589  bool m_lastUpdatedAtHasBeenSet;
590  Aws::String m_name;
591  bool m_nameHasBeenSet;
592  EntityStatus m_status;
593  bool m_statusHasBeenSet;
594  Aws::String m_outputUri;
595  bool m_outputUriHasBeenSet;
596  Aws::String m_message;
597  bool m_messageHasBeenSet;
598  long long m_computeTime;
599  bool m_computeTimeHasBeenSet;
600  Aws::Utils::DateTime m_finishedAt;
601  bool m_finishedAtHasBeenSet;
602  Aws::Utils::DateTime m_startedAt;
603  bool m_startedAtHasBeenSet;
604  long long m_totalRecordCount;
605  bool m_totalRecordCountHasBeenSet;
606  long long m_invalidRecordCount;
607  bool m_invalidRecordCountHasBeenSet;
608  };
609 
610 } // namespace Model
611 } // namespace MachineLearning
612 } // namespace Aws
BatchPrediction & WithCreatedAt(Aws::Utils::DateTime &&value)
BatchPrediction & WithBatchPredictionDataSourceId(const Aws::String &value)
BatchPrediction & WithComputeTime(long long value)
const Aws::String & GetOutputUri() const
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
BatchPrediction & WithOutputUri(Aws::String &&value)
void SetMessage(const Aws::String &value)
BatchPrediction & WithBatchPredictionDataSourceId(Aws::String &&value)
BatchPrediction & WithMLModelId(const char *value)
const Aws::String & GetBatchPredictionId() const
BatchPrediction & WithName(Aws::String &&value)
BatchPrediction & WithBatchPredictionDataSourceId(const char *value)
BatchPrediction & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetBatchPredictionDataSourceId() const
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetBatchPredictionDataSourceId(const Aws::String &value)
BatchPrediction & WithBatchPredictionId(const Aws::String &value)
BatchPrediction & WithFinishedAt(Aws::Utils::DateTime &&value)
BatchPrediction & WithCreatedByIamUser(const Aws::String &value)
BatchPrediction & WithBatchPredictionId(Aws::String &&value)
void SetInputDataLocationS3(Aws::String &&value)
const Aws::String & GetMLModelId() const
void SetFinishedAt(const Aws::Utils::DateTime &value)
void SetCreatedByIamUser(const Aws::String &value)
BatchPrediction & WithStartedAt(Aws::Utils::DateTime &&value)
BatchPrediction & WithInvalidRecordCount(long long value)
BatchPrediction & WithCreatedByIamUser(const char *value)
void SetStatus(const EntityStatus &value)
void SetStartedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetCreatedByIamUser() const
void SetName(const Aws::String &value)
BatchPrediction & WithName(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
const EntityStatus & GetStatus() const
BatchPrediction & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetBatchPredictionDataSourceId(const char *value)
BatchPrediction & WithBatchPredictionId(const char *value)
BatchPrediction & WithStartedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetBatchPredictionId(Aws::String &&value)
BatchPrediction & WithStatus(EntityStatus &&value)
BatchPrediction & WithName(const char *value)
void SetOutputUri(const Aws::String &value)
BatchPrediction & WithMLModelId(Aws::String &&value)
void SetMLModelId(const Aws::String &value)
const Aws::Utils::DateTime & GetFinishedAt() const
void SetBatchPredictionDataSourceId(Aws::String &&value)
BatchPrediction & WithMLModelId(const Aws::String &value)
BatchPrediction & WithMessage(const char *value)
BatchPrediction & WithInputDataLocationS3(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Utils::DateTime & GetStartedAt() const
BatchPrediction & WithInputDataLocationS3(Aws::String &&value)
BatchPrediction & WithInputDataLocationS3(const char *value)
BatchPrediction & WithStatus(const EntityStatus &value)
BatchPrediction & WithMessage(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
BatchPrediction & WithCreatedByIamUser(Aws::String &&value)
const Aws::String & GetInputDataLocationS3() const
BatchPrediction & WithFinishedAt(const Aws::Utils::DateTime &value)
BatchPrediction & WithTotalRecordCount(long long value)
#define AWS_MACHINELEARNING_API
void SetFinishedAt(Aws::Utils::DateTime &&value)
void SetBatchPredictionId(const Aws::String &value)
BatchPrediction & WithCreatedAt(const Aws::Utils::DateTime &value)
BatchPrediction & WithMessage(Aws::String &&value)
void SetInputDataLocationS3(const Aws::String &value)
JSON (JavaScript Object Notation).
BatchPrediction & WithOutputUri(const Aws::String &value)
BatchPrediction & WithOutputUri(const char *value)