AWS SDK for C++  0.12.9
AWS SDK for C++
MLModel.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
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace MachineLearning
35 {
36 namespace Model
37 {
38 
45  {
46  public:
47  MLModel();
48  MLModel(const Aws::Utils::Json::JsonValue& jsonValue);
49  MLModel& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
55  inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
56 
60  inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
61 
65  inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
66 
70  inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
71 
75  inline MLModel& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
76 
80  inline MLModel& WithMLModelId(Aws::String&& value) { SetMLModelId(value); return *this;}
81 
85  inline MLModel& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
86 
92  inline const Aws::String& GetTrainingDataSourceId() const{ return m_trainingDataSourceId; }
93 
99  inline void SetTrainingDataSourceId(const Aws::String& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = value; }
100 
106  inline void SetTrainingDataSourceId(Aws::String&& value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId = value; }
107 
113  inline void SetTrainingDataSourceId(const char* value) { m_trainingDataSourceIdHasBeenSet = true; m_trainingDataSourceId.assign(value); }
114 
120  inline MLModel& WithTrainingDataSourceId(const Aws::String& value) { SetTrainingDataSourceId(value); return *this;}
121 
127  inline MLModel& WithTrainingDataSourceId(Aws::String&& value) { SetTrainingDataSourceId(value); return *this;}
128 
134  inline MLModel& WithTrainingDataSourceId(const char* value) { SetTrainingDataSourceId(value); return *this;}
135 
141  inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; }
142 
148  inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
149 
155  inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser = value; }
156 
162  inline void SetCreatedByIamUser(const char* value) { m_createdByIamUserHasBeenSet = true; m_createdByIamUser.assign(value); }
163 
169  inline MLModel& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;}
170 
176  inline MLModel& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(value); return *this;}
177 
183  inline MLModel& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;}
184 
189  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
190 
195  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
196 
201  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
202 
207  inline MLModel& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
208 
213  inline MLModel& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
214 
219  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
220 
225  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
226 
231  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
232 
237  inline MLModel& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
238 
243  inline MLModel& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(value); return *this;}
244 
248  inline const Aws::String& GetName() const{ return m_name; }
249 
253  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
254 
258  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
259 
263  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
264 
268  inline MLModel& WithName(const Aws::String& value) { SetName(value); return *this;}
269 
273  inline MLModel& WithName(Aws::String&& value) { SetName(value); return *this;}
274 
278  inline MLModel& WithName(const char* value) { SetName(value); return *this;}
279 
290  inline const EntityStatus& GetStatus() const{ return m_status; }
291 
302  inline void SetStatus(const EntityStatus& value) { m_statusHasBeenSet = true; m_status = value; }
303 
314  inline void SetStatus(EntityStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
315 
326  inline MLModel& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;}
327 
338  inline MLModel& WithStatus(EntityStatus&& value) { SetStatus(value); return *this;}
339 
340 
341  inline long long GetSizeInBytes() const{ return m_sizeInBytes; }
342 
343 
344  inline void SetSizeInBytes(long long value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
345 
346 
347  inline MLModel& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
348 
352  inline const RealtimeEndpointInfo& GetEndpointInfo() const{ return m_endpointInfo; }
353 
357  inline void SetEndpointInfo(const RealtimeEndpointInfo& value) { m_endpointInfoHasBeenSet = true; m_endpointInfo = value; }
358 
362  inline void SetEndpointInfo(RealtimeEndpointInfo&& value) { m_endpointInfoHasBeenSet = true; m_endpointInfo = value; }
363 
367  inline MLModel& WithEndpointInfo(const RealtimeEndpointInfo& value) { SetEndpointInfo(value); return *this;}
368 
372  inline MLModel& WithEndpointInfo(RealtimeEndpointInfo&& value) { SetEndpointInfo(value); return *this;}
373 
405  inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const{ return m_trainingParameters; }
406 
438  inline void SetTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = value; }
439 
471  inline void SetTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters = value; }
472 
504  inline MLModel& WithTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetTrainingParameters(value); return *this;}
505 
537  inline MLModel& WithTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetTrainingParameters(value); return *this;}
538 
570  inline MLModel& AddTrainingParameters(const Aws::String& key, const Aws::String& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
571 
603  inline MLModel& AddTrainingParameters(Aws::String&& key, const Aws::String& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
604 
636  inline MLModel& AddTrainingParameters(const Aws::String& key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
637 
669  inline MLModel& AddTrainingParameters(Aws::String&& key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
670 
702  inline MLModel& AddTrainingParameters(const char* key, Aws::String&& value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
703 
735  inline MLModel& AddTrainingParameters(Aws::String&& key, const char* value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
736 
768  inline MLModel& AddTrainingParameters(const char* key, const char* value) { m_trainingParametersHasBeenSet = true; m_trainingParameters[key] = value; return *this; }
769 
774  inline const Aws::String& GetInputDataLocationS3() const{ return m_inputDataLocationS3; }
775 
780  inline void SetInputDataLocationS3(const Aws::String& value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3 = value; }
781 
786  inline void SetInputDataLocationS3(Aws::String&& value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3 = value; }
787 
792  inline void SetInputDataLocationS3(const char* value) { m_inputDataLocationS3HasBeenSet = true; m_inputDataLocationS3.assign(value); }
793 
798  inline MLModel& WithInputDataLocationS3(const Aws::String& value) { SetInputDataLocationS3(value); return *this;}
799 
804  inline MLModel& WithInputDataLocationS3(Aws::String&& value) { SetInputDataLocationS3(value); return *this;}
805 
810  inline MLModel& WithInputDataLocationS3(const char* value) { SetInputDataLocationS3(value); return *this;}
811 
818  inline const Algorithm& GetAlgorithm() const{ return m_algorithm; }
819 
826  inline void SetAlgorithm(const Algorithm& value) { m_algorithmHasBeenSet = true; m_algorithm = value; }
827 
834  inline void SetAlgorithm(Algorithm&& value) { m_algorithmHasBeenSet = true; m_algorithm = value; }
835 
842  inline MLModel& WithAlgorithm(const Algorithm& value) { SetAlgorithm(value); return *this;}
843 
850  inline MLModel& WithAlgorithm(Algorithm&& value) { SetAlgorithm(value); return *this;}
851 
863  inline const MLModelType& GetMLModelType() const{ return m_mLModelType; }
864 
876  inline void SetMLModelType(const MLModelType& value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
877 
889  inline void SetMLModelType(MLModelType&& value) { m_mLModelTypeHasBeenSet = true; m_mLModelType = value; }
890 
902  inline MLModel& WithMLModelType(const MLModelType& value) { SetMLModelType(value); return *this;}
903 
915  inline MLModel& WithMLModelType(MLModelType&& value) { SetMLModelType(value); return *this;}
916 
917 
918  inline double GetScoreThreshold() const{ return m_scoreThreshold; }
919 
920 
921  inline void SetScoreThreshold(double value) { m_scoreThresholdHasBeenSet = true; m_scoreThreshold = value; }
922 
923 
924  inline MLModel& WithScoreThreshold(double value) { SetScoreThreshold(value); return *this;}
925 
930  inline const Aws::Utils::DateTime& GetScoreThresholdLastUpdatedAt() const{ return m_scoreThresholdLastUpdatedAt; }
931 
936  inline void SetScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime& value) { m_scoreThresholdLastUpdatedAtHasBeenSet = true; m_scoreThresholdLastUpdatedAt = value; }
937 
942  inline void SetScoreThresholdLastUpdatedAt(Aws::Utils::DateTime&& value) { m_scoreThresholdLastUpdatedAtHasBeenSet = true; m_scoreThresholdLastUpdatedAt = value; }
943 
948  inline MLModel& WithScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime& value) { SetScoreThresholdLastUpdatedAt(value); return *this;}
949 
954  inline MLModel& WithScoreThresholdLastUpdatedAt(Aws::Utils::DateTime&& value) { SetScoreThresholdLastUpdatedAt(value); return *this;}
955 
960  inline const Aws::String& GetMessage() const{ return m_message; }
961 
966  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
967 
972  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
973 
978  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
979 
984  inline MLModel& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
985 
990  inline MLModel& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
991 
996  inline MLModel& WithMessage(const char* value) { SetMessage(value); return *this;}
997 
998  private:
999  Aws::String m_mLModelId;
1000  bool m_mLModelIdHasBeenSet;
1001  Aws::String m_trainingDataSourceId;
1002  bool m_trainingDataSourceIdHasBeenSet;
1003  Aws::String m_createdByIamUser;
1004  bool m_createdByIamUserHasBeenSet;
1005  Aws::Utils::DateTime m_createdAt;
1006  bool m_createdAtHasBeenSet;
1007  Aws::Utils::DateTime m_lastUpdatedAt;
1008  bool m_lastUpdatedAtHasBeenSet;
1009  Aws::String m_name;
1010  bool m_nameHasBeenSet;
1011  EntityStatus m_status;
1012  bool m_statusHasBeenSet;
1013  long long m_sizeInBytes;
1014  bool m_sizeInBytesHasBeenSet;
1015  RealtimeEndpointInfo m_endpointInfo;
1016  bool m_endpointInfoHasBeenSet;
1017  Aws::Map<Aws::String, Aws::String> m_trainingParameters;
1018  bool m_trainingParametersHasBeenSet;
1019  Aws::String m_inputDataLocationS3;
1020  bool m_inputDataLocationS3HasBeenSet;
1021  Algorithm m_algorithm;
1022  bool m_algorithmHasBeenSet;
1023  MLModelType m_mLModelType;
1024  bool m_mLModelTypeHasBeenSet;
1025  double m_scoreThreshold;
1026  bool m_scoreThresholdHasBeenSet;
1027  Aws::Utils::DateTime m_scoreThresholdLastUpdatedAt;
1028  bool m_scoreThresholdLastUpdatedAtHasBeenSet;
1029  Aws::String m_message;
1030  bool m_messageHasBeenSet;
1031  };
1032 
1033 } // namespace Model
1034 } // namespace MachineLearning
1035 } // namespace Aws
MLModel & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: MLModel.h:237
MLModel & WithCreatedByIamUser(const char *value)
Definition: MLModel.h:183
void SetMLModelType(const MLModelType &value)
Definition: MLModel.h:876
MLModel & WithStatus(const EntityStatus &value)
Definition: MLModel.h:326
const Aws::Utils::DateTime & GetScoreThresholdLastUpdatedAt() const
Definition: MLModel.h:930
MLModel & AddTrainingParameters(const char *key, Aws::String &&value)
Definition: MLModel.h:702
void SetAlgorithm(const Algorithm &value)
Definition: MLModel.h:826
void SetCreatedByIamUser(const Aws::String &value)
Definition: MLModel.h:148
void SetInputDataLocationS3(const char *value)
Definition: MLModel.h:792
MLModel & WithCreatedByIamUser(Aws::String &&value)
Definition: MLModel.h:176
MLModel & WithMLModelId(const char *value)
Definition: MLModel.h:85
void SetMLModelId(Aws::String &&value)
Definition: MLModel.h:65
MLModel & WithInputDataLocationS3(Aws::String &&value)
Definition: MLModel.h:804
void SetCreatedByIamUser(Aws::String &&value)
Definition: MLModel.h:155
void SetInputDataLocationS3(const Aws::String &value)
Definition: MLModel.h:780
MLModel & WithScoreThreshold(double value)
Definition: MLModel.h:924
void SetInputDataLocationS3(Aws::String &&value)
Definition: MLModel.h:786
MLModel & WithStatus(EntityStatus &&value)
Definition: MLModel.h:338
const RealtimeEndpointInfo & GetEndpointInfo() const
Definition: MLModel.h:352
MLModel & AddTrainingParameters(const Aws::String &key, Aws::String &&value)
Definition: MLModel.h:636
void SetMLModelId(const Aws::String &value)
Definition: MLModel.h:60
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: MLModel.h:195
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: MLModel.h:201
void SetTrainingParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: MLModel.h:438
MLModel & WithSizeInBytes(long long value)
Definition: MLModel.h:347
MLModel & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: MLModel.h:207
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: MLModel.h:219
void SetEndpointInfo(RealtimeEndpointInfo &&value)
Definition: MLModel.h:362
MLModel & AddTrainingParameters(Aws::String &&key, const Aws::String &value)
Definition: MLModel.h:603
MLModel & WithName(const Aws::String &value)
Definition: MLModel.h:268
void SetEndpointInfo(const RealtimeEndpointInfo &value)
Definition: MLModel.h:357
const MLModelType & GetMLModelType() const
Definition: MLModel.h:863
void SetStatus(const EntityStatus &value)
Definition: MLModel.h:302
const Aws::String & GetMessage() const
Definition: MLModel.h:960
long long GetSizeInBytes() const
Definition: MLModel.h:341
MLModel & WithTrainingParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: MLModel.h:504
MLModel & WithAlgorithm(const Algorithm &value)
Definition: MLModel.h:842
void SetTrainingDataSourceId(const char *value)
Definition: MLModel.h:113
void SetMessage(const char *value)
Definition: MLModel.h:978
MLModel & WithEndpointInfo(RealtimeEndpointInfo &&value)
Definition: MLModel.h:372
void SetCreatedByIamUser(const char *value)
Definition: MLModel.h:162
MLModel & AddTrainingParameters(Aws::String &&key, const char *value)
Definition: MLModel.h:735
MLModel & WithTrainingDataSourceId(Aws::String &&value)
Definition: MLModel.h:127
const Aws::String & GetTrainingDataSourceId() const
Definition: MLModel.h:92
MLModel & WithEndpointInfo(const RealtimeEndpointInfo &value)
Definition: MLModel.h:367
void SetMLModelId(const char *value)
Definition: MLModel.h:70
void SetMLModelType(MLModelType &&value)
Definition: MLModel.h:889
MLModel & WithInputDataLocationS3(const Aws::String &value)
Definition: MLModel.h:798
const Aws::String & GetName() const
Definition: MLModel.h:248
MLModel & WithScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: MLModel.h:948
void SetMessage(const Aws::String &value)
Definition: MLModel.h:966
void SetName(Aws::String &&value)
Definition: MLModel.h:258
MLModel & WithAlgorithm(Algorithm &&value)
Definition: MLModel.h:850
MLModel & WithScoreThresholdLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: MLModel.h:954
const Aws::String & GetCreatedByIamUser() const
Definition: MLModel.h:141
void SetAlgorithm(Algorithm &&value)
Definition: MLModel.h:834
MLModel & WithCreatedByIamUser(const Aws::String &value)
Definition: MLModel.h:169
void SetName(const Aws::String &value)
Definition: MLModel.h:253
MLModel & WithMessage(const Aws::String &value)
Definition: MLModel.h:984
const EntityStatus & GetStatus() const
Definition: MLModel.h:290
const Aws::String & GetMLModelId() const
Definition: MLModel.h:55
MLModel & WithTrainingDataSourceId(const Aws::String &value)
Definition: MLModel.h:120
void SetScoreThresholdLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: MLModel.h:942
void SetSizeInBytes(long long value)
Definition: MLModel.h:344
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: MLModel.h:225
void SetMessage(Aws::String &&value)
Definition: MLModel.h:972
void SetScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: MLModel.h:936
void SetTrainingParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: MLModel.h:471
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
MLModel & WithName(Aws::String &&value)
Definition: MLModel.h:273
MLModel & WithMLModelId(Aws::String &&value)
Definition: MLModel.h:80
void SetTrainingDataSourceId(Aws::String &&value)
Definition: MLModel.h:106
MLModel & WithTrainingParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: MLModel.h:537
const Algorithm & GetAlgorithm() const
Definition: MLModel.h:818
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: MLModel.h:231
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: MLModel.h:189
MLModel & WithMessage(const char *value)
Definition: MLModel.h:996
MLModel & WithTrainingDataSourceId(const char *value)
Definition: MLModel.h:134
MLModel & WithInputDataLocationS3(const char *value)
Definition: MLModel.h:810
void SetScoreThreshold(double value)
Definition: MLModel.h:921
MLModel & WithMessage(Aws::String &&value)
Definition: MLModel.h:990
MLModel & AddTrainingParameters(const Aws::String &key, const Aws::String &value)
Definition: MLModel.h:570
const Aws::Map< Aws::String, Aws::String > & GetTrainingParameters() const
Definition: MLModel.h:405
MLModel & WithMLModelType(MLModelType &&value)
Definition: MLModel.h:915
void SetTrainingDataSourceId(const Aws::String &value)
Definition: MLModel.h:99
MLModel & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: MLModel.h:243
MLModel & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: MLModel.h:213
MLModel & WithMLModelType(const MLModelType &value)
Definition: MLModel.h:902
void SetName(const char *value)
Definition: MLModel.h:263
#define AWS_MACHINELEARNING_API
void SetStatus(EntityStatus &&value)
Definition: MLModel.h:314
MLModel & WithName(const char *value)
Definition: MLModel.h:278
JSON (JavaScript Object Notation).
MLModel & WithMLModelId(const Aws::String &value)
Definition: MLModel.h:75
MLModel & AddTrainingParameters(const char *key, const char *value)
Definition: MLModel.h:768
const Aws::String & GetInputDataLocationS3() const
Definition: MLModel.h:774
MLModel & AddTrainingParameters(Aws::String &&key, Aws::String &&value)
Definition: MLModel.h:669