AWS SDK for C++  0.14.3
AWS SDK for C++
GetMLModelResult.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
23 
24 namespace Aws
25 {
26 template<typename RESULT_TYPE>
27 class AmazonWebServiceResult;
28 
29 namespace Utils
30 {
31 namespace Json
32 {
33  class JsonValue;
34 } // namespace Json
35 } // namespace Utils
36 namespace MachineLearning
37 {
38 namespace Model
39 {
45  {
46  public:
50 
56  inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
57 
63  inline void SetMLModelId(const Aws::String& value) { m_mLModelId = value; }
64 
70  inline void SetMLModelId(Aws::String&& value) { m_mLModelId = value; }
71 
77  inline void SetMLModelId(const char* value) { m_mLModelId.assign(value); }
78 
84  inline GetMLModelResult& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
85 
91  inline GetMLModelResult& WithMLModelId(Aws::String&& value) { SetMLModelId(value); return *this;}
92 
98  inline GetMLModelResult& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
99 
103  inline const Aws::String& GetTrainingDataSourceId() const{ return m_trainingDataSourceId; }
104 
108  inline void SetTrainingDataSourceId(const Aws::String& value) { m_trainingDataSourceId = value; }
109 
113  inline void SetTrainingDataSourceId(Aws::String&& value) { m_trainingDataSourceId = value; }
114 
118  inline void SetTrainingDataSourceId(const char* value) { m_trainingDataSourceId.assign(value); }
119 
123  inline GetMLModelResult& WithTrainingDataSourceId(const Aws::String& value) { SetTrainingDataSourceId(value); return *this;}
124 
128  inline GetMLModelResult& WithTrainingDataSourceId(Aws::String&& value) { SetTrainingDataSourceId(value); return *this;}
129 
133  inline GetMLModelResult& WithTrainingDataSourceId(const char* value) { SetTrainingDataSourceId(value); return *this;}
134 
140  inline const Aws::String& GetCreatedByIamUser() const{ return m_createdByIamUser; }
141 
147  inline void SetCreatedByIamUser(const Aws::String& value) { m_createdByIamUser = value; }
148 
154  inline void SetCreatedByIamUser(Aws::String&& value) { m_createdByIamUser = value; }
155 
161  inline void SetCreatedByIamUser(const char* value) { m_createdByIamUser.assign(value); }
162 
168  inline GetMLModelResult& WithCreatedByIamUser(const Aws::String& value) { SetCreatedByIamUser(value); return *this;}
169 
175  inline GetMLModelResult& WithCreatedByIamUser(Aws::String&& value) { SetCreatedByIamUser(value); return *this;}
176 
182  inline GetMLModelResult& WithCreatedByIamUser(const char* value) { SetCreatedByIamUser(value); return *this;}
183 
188  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
189 
194  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
195 
200  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = value; }
201 
206  inline GetMLModelResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
207 
212  inline GetMLModelResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
213 
218  inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
219 
224  inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; }
225 
230  inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = value; }
231 
236  inline GetMLModelResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
237 
242  inline GetMLModelResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(value); return *this;}
243 
247  inline const Aws::String& GetName() const{ return m_name; }
248 
252  inline void SetName(const Aws::String& value) { m_name = value; }
253 
257  inline void SetName(Aws::String&& value) { m_name = value; }
258 
262  inline void SetName(const char* value) { m_name.assign(value); }
263 
267  inline GetMLModelResult& WithName(const Aws::String& value) { SetName(value); return *this;}
268 
272  inline GetMLModelResult& WithName(Aws::String&& value) { SetName(value); return *this;}
273 
277  inline GetMLModelResult& WithName(const char* value) { SetName(value); return *this;}
278 
289  inline const EntityStatus& GetStatus() const{ return m_status; }
290 
301  inline void SetStatus(const EntityStatus& value) { m_status = value; }
302 
313  inline void SetStatus(EntityStatus&& value) { m_status = value; }
314 
325  inline GetMLModelResult& WithStatus(const EntityStatus& value) { SetStatus(value); return *this;}
326 
337  inline GetMLModelResult& WithStatus(EntityStatus&& value) { SetStatus(value); return *this;}
338 
339 
340  inline long long GetSizeInBytes() const{ return m_sizeInBytes; }
341 
342 
343  inline void SetSizeInBytes(long long value) { m_sizeInBytes = value; }
344 
345 
346  inline GetMLModelResult& WithSizeInBytes(long long value) { SetSizeInBytes(value); return *this;}
347 
351  inline const RealtimeEndpointInfo& GetEndpointInfo() const{ return m_endpointInfo; }
352 
356  inline void SetEndpointInfo(const RealtimeEndpointInfo& value) { m_endpointInfo = value; }
357 
361  inline void SetEndpointInfo(RealtimeEndpointInfo&& value) { m_endpointInfo = value; }
362 
366  inline GetMLModelResult& WithEndpointInfo(const RealtimeEndpointInfo& value) { SetEndpointInfo(value); return *this;}
367 
371  inline GetMLModelResult& WithEndpointInfo(RealtimeEndpointInfo&& value) { SetEndpointInfo(value); return *this;}
372 
405  inline const Aws::Map<Aws::String, Aws::String>& GetTrainingParameters() const{ return m_trainingParameters; }
406 
439  inline void SetTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_trainingParameters = value; }
440 
473  inline void SetTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_trainingParameters = value; }
474 
507  inline GetMLModelResult& WithTrainingParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetTrainingParameters(value); return *this;}
508 
541  inline GetMLModelResult& WithTrainingParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetTrainingParameters(value); return *this;}
542 
575  inline GetMLModelResult& AddTrainingParameters(const Aws::String& key, const Aws::String& value) { m_trainingParameters[key] = value; return *this; }
576 
609  inline GetMLModelResult& AddTrainingParameters(Aws::String&& key, const Aws::String& value) { m_trainingParameters[key] = value; return *this; }
610 
643  inline GetMLModelResult& AddTrainingParameters(const Aws::String& key, Aws::String&& value) { m_trainingParameters[key] = value; return *this; }
644 
677  inline GetMLModelResult& AddTrainingParameters(Aws::String&& key, Aws::String&& value) { m_trainingParameters[key] = value; return *this; }
678 
711  inline GetMLModelResult& AddTrainingParameters(const char* key, Aws::String&& value) { m_trainingParameters[key] = value; return *this; }
712 
745  inline GetMLModelResult& AddTrainingParameters(Aws::String&& key, const char* value) { m_trainingParameters[key] = value; return *this; }
746 
779  inline GetMLModelResult& AddTrainingParameters(const char* key, const char* value) { m_trainingParameters[key] = value; return *this; }
780 
785  inline const Aws::String& GetInputDataLocationS3() const{ return m_inputDataLocationS3; }
786 
791  inline void SetInputDataLocationS3(const Aws::String& value) { m_inputDataLocationS3 = value; }
792 
797  inline void SetInputDataLocationS3(Aws::String&& value) { m_inputDataLocationS3 = value; }
798 
803  inline void SetInputDataLocationS3(const char* value) { m_inputDataLocationS3.assign(value); }
804 
809  inline GetMLModelResult& WithInputDataLocationS3(const Aws::String& value) { SetInputDataLocationS3(value); return *this;}
810 
815  inline GetMLModelResult& WithInputDataLocationS3(Aws::String&& value) { SetInputDataLocationS3(value); return *this;}
816 
821  inline GetMLModelResult& WithInputDataLocationS3(const char* value) { SetInputDataLocationS3(value); return *this;}
822 
831  inline const MLModelType& GetMLModelType() const{ return m_mLModelType; }
832 
841  inline void SetMLModelType(const MLModelType& value) { m_mLModelType = value; }
842 
851  inline void SetMLModelType(MLModelType&& value) { m_mLModelType = value; }
852 
861  inline GetMLModelResult& WithMLModelType(const MLModelType& value) { SetMLModelType(value); return *this;}
862 
871  inline GetMLModelResult& WithMLModelType(MLModelType&& value) { SetMLModelType(value); return *this;}
872 
882  inline double GetScoreThreshold() const{ return m_scoreThreshold; }
883 
893  inline void SetScoreThreshold(double value) { m_scoreThreshold = value; }
894 
904  inline GetMLModelResult& WithScoreThreshold(double value) { SetScoreThreshold(value); return *this;}
905 
910  inline const Aws::Utils::DateTime& GetScoreThresholdLastUpdatedAt() const{ return m_scoreThresholdLastUpdatedAt; }
911 
916  inline void SetScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime& value) { m_scoreThresholdLastUpdatedAt = value; }
917 
922  inline void SetScoreThresholdLastUpdatedAt(Aws::Utils::DateTime&& value) { m_scoreThresholdLastUpdatedAt = value; }
923 
928  inline GetMLModelResult& WithScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime& value) { SetScoreThresholdLastUpdatedAt(value); return *this;}
929 
934  inline GetMLModelResult& WithScoreThresholdLastUpdatedAt(Aws::Utils::DateTime&& value) { SetScoreThresholdLastUpdatedAt(value); return *this;}
935 
940  inline const Aws::String& GetLogUri() const{ return m_logUri; }
941 
946  inline void SetLogUri(const Aws::String& value) { m_logUri = value; }
947 
952  inline void SetLogUri(Aws::String&& value) { m_logUri = value; }
953 
958  inline void SetLogUri(const char* value) { m_logUri.assign(value); }
959 
964  inline GetMLModelResult& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;}
965 
970  inline GetMLModelResult& WithLogUri(Aws::String&& value) { SetLogUri(value); return *this;}
971 
976  inline GetMLModelResult& WithLogUri(const char* value) { SetLogUri(value); return *this;}
977 
982  inline const Aws::String& GetMessage() const{ return m_message; }
983 
988  inline void SetMessage(const Aws::String& value) { m_message = value; }
989 
994  inline void SetMessage(Aws::String&& value) { m_message = value; }
995 
1000  inline void SetMessage(const char* value) { m_message.assign(value); }
1001 
1006  inline GetMLModelResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
1007 
1012  inline GetMLModelResult& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
1013 
1018  inline GetMLModelResult& WithMessage(const char* value) { SetMessage(value); return *this;}
1019 
1026  inline long long GetComputeTime() const{ return m_computeTime; }
1027 
1034  inline void SetComputeTime(long long value) { m_computeTime = value; }
1035 
1042  inline GetMLModelResult& WithComputeTime(long long value) { SetComputeTime(value); return *this;}
1043 
1050  inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; }
1051 
1058  inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAt = value; }
1059 
1066  inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAt = value; }
1067 
1074  inline GetMLModelResult& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;}
1075 
1082  inline GetMLModelResult& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(value); return *this;}
1083 
1089  inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
1090 
1096  inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
1097 
1103  inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = value; }
1104 
1110  inline GetMLModelResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
1111 
1117  inline GetMLModelResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(value); return *this;}
1118 
1126  inline const Aws::String& GetRecipe() const{ return m_recipe; }
1127 
1135  inline void SetRecipe(const Aws::String& value) { m_recipe = value; }
1136 
1144  inline void SetRecipe(Aws::String&& value) { m_recipe = value; }
1145 
1153  inline void SetRecipe(const char* value) { m_recipe.assign(value); }
1154 
1162  inline GetMLModelResult& WithRecipe(const Aws::String& value) { SetRecipe(value); return *this;}
1163 
1171  inline GetMLModelResult& WithRecipe(Aws::String&& value) { SetRecipe(value); return *this;}
1172 
1180  inline GetMLModelResult& WithRecipe(const char* value) { SetRecipe(value); return *this;}
1181 
1187  inline const Aws::String& GetSchema() const{ return m_schema; }
1188 
1194  inline void SetSchema(const Aws::String& value) { m_schema = value; }
1195 
1201  inline void SetSchema(Aws::String&& value) { m_schema = value; }
1202 
1208  inline void SetSchema(const char* value) { m_schema.assign(value); }
1209 
1215  inline GetMLModelResult& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
1216 
1222  inline GetMLModelResult& WithSchema(Aws::String&& value) { SetSchema(value); return *this;}
1223 
1229  inline GetMLModelResult& WithSchema(const char* value) { SetSchema(value); return *this;}
1230 
1231  private:
1232  Aws::String m_mLModelId;
1233  Aws::String m_trainingDataSourceId;
1234  Aws::String m_createdByIamUser;
1235  Aws::Utils::DateTime m_createdAt;
1236  Aws::Utils::DateTime m_lastUpdatedAt;
1237  Aws::String m_name;
1238  EntityStatus m_status;
1239  long long m_sizeInBytes;
1240  RealtimeEndpointInfo m_endpointInfo;
1241  Aws::Map<Aws::String, Aws::String> m_trainingParameters;
1242  Aws::String m_inputDataLocationS3;
1243  MLModelType m_mLModelType;
1244  double m_scoreThreshold;
1245  Aws::Utils::DateTime m_scoreThresholdLastUpdatedAt;
1246  Aws::String m_logUri;
1247  Aws::String m_message;
1248  long long m_computeTime;
1249  Aws::Utils::DateTime m_finishedAt;
1250  Aws::Utils::DateTime m_startedAt;
1251  Aws::String m_recipe;
1252  Aws::String m_schema;
1253  };
1254 
1255 } // namespace Model
1256 } // namespace MachineLearning
1257 } // namespace Aws
GetMLModelResult & AddTrainingParameters(const char *key, const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
GetMLModelResult & WithStatus(EntityStatus &&value)
void SetMessage(const Aws::String &value)
GetMLModelResult & WithScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime &value)
GetMLModelResult & WithMessage(const Aws::String &value)
GetMLModelResult & WithLogUri(Aws::String &&value)
GetMLModelResult & AddTrainingParameters(Aws::String &&key, Aws::String &&value)
GetMLModelResult & WithName(const char *value)
void SetScoreThresholdLastUpdatedAt(const Aws::Utils::DateTime &value)
GetMLModelResult & WithEndpointInfo(const RealtimeEndpointInfo &value)
GetMLModelResult & AddTrainingParameters(const Aws::String &key, const Aws::String &value)
void SetFinishedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetFinishedAt() const
GetMLModelResult & WithScoreThresholdLastUpdatedAt(Aws::Utils::DateTime &&value)
GetMLModelResult & WithMLModelId(const char *value)
GetMLModelResult & AddTrainingParameters(Aws::String &&key, const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetMLModelResult & WithInputDataLocationS3(const char *value)
GetMLModelResult & WithFinishedAt(const Aws::Utils::DateTime &value)
void SetCreatedByIamUser(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetMLModelResult & WithMLModelType(MLModelType &&value)
GetMLModelResult & WithLogUri(const Aws::String &value)
GetMLModelResult & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetInputDataLocationS3(const Aws::String &value)
const Aws::String & GetTrainingDataSourceId() const
GetMLModelResult & WithStartedAt(Aws::Utils::DateTime &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
GetMLModelResult & WithSchema(const Aws::String &value)
GetMLModelResult & WithStatus(const EntityStatus &value)
void SetStatus(const EntityStatus &value)
void SetScoreThresholdLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetEndpointInfo(const RealtimeEndpointInfo &value)
GetMLModelResult & WithRecipe(const Aws::String &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
GetMLModelResult & WithMLModelType(const MLModelType &value)
GetMLModelResult & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetTrainingParameters(const Aws::Map< Aws::String, Aws::String > &value)
GetMLModelResult & WithName(const Aws::String &value)
GetMLModelResult & WithScoreThreshold(double value)
GetMLModelResult & WithInputDataLocationS3(Aws::String &&value)
GetMLModelResult & WithSizeInBytes(long long value)
GetMLModelResult & WithEndpointInfo(RealtimeEndpointInfo &&value)
GetMLModelResult & WithStartedAt(const Aws::Utils::DateTime &value)
GetMLModelResult & WithFinishedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
GetMLModelResult & WithRecipe(const char *value)
GetMLModelResult & AddTrainingParameters(Aws::String &&key, const char *value)
void SetFinishedAt(Aws::Utils::DateTime &&value)
GetMLModelResult & WithCreatedByIamUser(const Aws::String &value)
const Aws::Utils::DateTime & GetScoreThresholdLastUpdatedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
GetMLModelResult & WithTrainingDataSourceId(Aws::String &&value)
GetMLModelResult & WithName(Aws::String &&value)
void SetEndpointInfo(RealtimeEndpointInfo &&value)
GetMLModelResult & WithLogUri(const char *value)
GetMLModelResult & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, Aws::String > & GetTrainingParameters() const
GetMLModelResult & WithMLModelId(const Aws::String &value)
GetMLModelResult & WithMessage(const char *value)
const Aws::String & GetCreatedByIamUser() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetMLModelResult & WithTrainingParameters(const Aws::Map< Aws::String, Aws::String > &value)
GetMLModelResult & WithComputeTime(long long value)
GetMLModelResult & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
GetMLModelResult & WithTrainingDataSourceId(const char *value)
GetMLModelResult & WithInputDataLocationS3(const Aws::String &value)
void SetTrainingParameters(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetInputDataLocationS3() const
GetMLModelResult & WithTrainingParameters(Aws::Map< Aws::String, Aws::String > &&value)
const RealtimeEndpointInfo & GetEndpointInfo() const
void SetMLModelId(const Aws::String &value)
GetMLModelResult & AddTrainingParameters(const Aws::String &key, Aws::String &&value)
void SetTrainingDataSourceId(const Aws::String &value)
GetMLModelResult & WithMLModelId(Aws::String &&value)
GetMLModelResult & WithTrainingDataSourceId(const Aws::String &value)
GetMLModelResult & WithRecipe(Aws::String &&value)
GetMLModelResult & WithCreatedByIamUser(const char *value)
GetMLModelResult & AddTrainingParameters(const char *key, Aws::String &&value)
void SetLogUri(const Aws::String &value)
GetMLModelResult & WithSchema(const char *value)
GetMLModelResult & WithCreatedByIamUser(Aws::String &&value)
GetMLModelResult & WithSchema(Aws::String &&value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).
void SetMLModelType(const MLModelType &value)
GetMLModelResult & WithMessage(Aws::String &&value)