AWS SDK for C++  0.14.3
AWS SDK for C++
MachineLearningClient.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
53 #include <future>
54 #include <functional>
55 
56 namespace Aws
57 {
58 
59 namespace Http
60 {
61  class HttpClient;
62  class HttpClientFactory;
63 } // namespace Http
64 
65 namespace Utils
66 {
67  template< typename R, typename E> class Outcome;
68 
69 namespace Threading
70 {
71  class Executor;
72 } // namespace Threading
73 
74 namespace Json
75 {
76  class JsonValue;
77 } // namespace Json
78 } // namespace Utils
79 
80 namespace Auth
81 {
82  class AWSCredentials;
83  class AWSCredentialsProvider;
84 } // namespace Auth
85 
86 namespace Client
87 {
88  class RetryStrategy;
89 } // namespace Client
90 
91 namespace MachineLearning
92 {
93 
94 namespace Model
95 {
96  class AddTagsRequest;
102  class CreateMLModelRequest;
107  class DeleteMLModelRequest;
109  class DeleteTagsRequest;
114  class DescribeTagsRequest;
116  class GetDataSourceRequest;
117  class GetEvaluationRequest;
118  class GetMLModelRequest;
119  class PredictRequest;
124 
153 
154  typedef std::future<AddTagsOutcome> AddTagsOutcomeCallable;
155  typedef std::future<CreateBatchPredictionOutcome> CreateBatchPredictionOutcomeCallable;
156  typedef std::future<CreateDataSourceFromRDSOutcome> CreateDataSourceFromRDSOutcomeCallable;
157  typedef std::future<CreateDataSourceFromRedshiftOutcome> CreateDataSourceFromRedshiftOutcomeCallable;
158  typedef std::future<CreateDataSourceFromS3Outcome> CreateDataSourceFromS3OutcomeCallable;
159  typedef std::future<CreateEvaluationOutcome> CreateEvaluationOutcomeCallable;
160  typedef std::future<CreateMLModelOutcome> CreateMLModelOutcomeCallable;
161  typedef std::future<CreateRealtimeEndpointOutcome> CreateRealtimeEndpointOutcomeCallable;
162  typedef std::future<DeleteBatchPredictionOutcome> DeleteBatchPredictionOutcomeCallable;
163  typedef std::future<DeleteDataSourceOutcome> DeleteDataSourceOutcomeCallable;
164  typedef std::future<DeleteEvaluationOutcome> DeleteEvaluationOutcomeCallable;
165  typedef std::future<DeleteMLModelOutcome> DeleteMLModelOutcomeCallable;
166  typedef std::future<DeleteRealtimeEndpointOutcome> DeleteRealtimeEndpointOutcomeCallable;
167  typedef std::future<DeleteTagsOutcome> DeleteTagsOutcomeCallable;
168  typedef std::future<DescribeBatchPredictionsOutcome> DescribeBatchPredictionsOutcomeCallable;
169  typedef std::future<DescribeDataSourcesOutcome> DescribeDataSourcesOutcomeCallable;
170  typedef std::future<DescribeEvaluationsOutcome> DescribeEvaluationsOutcomeCallable;
171  typedef std::future<DescribeMLModelsOutcome> DescribeMLModelsOutcomeCallable;
172  typedef std::future<DescribeTagsOutcome> DescribeTagsOutcomeCallable;
173  typedef std::future<GetBatchPredictionOutcome> GetBatchPredictionOutcomeCallable;
174  typedef std::future<GetDataSourceOutcome> GetDataSourceOutcomeCallable;
175  typedef std::future<GetEvaluationOutcome> GetEvaluationOutcomeCallable;
176  typedef std::future<GetMLModelOutcome> GetMLModelOutcomeCallable;
177  typedef std::future<PredictOutcome> PredictOutcomeCallable;
178  typedef std::future<UpdateBatchPredictionOutcome> UpdateBatchPredictionOutcomeCallable;
179  typedef std::future<UpdateDataSourceOutcome> UpdateDataSourceOutcomeCallable;
180  typedef std::future<UpdateEvaluationOutcome> UpdateEvaluationOutcomeCallable;
181  typedef std::future<UpdateMLModelOutcome> UpdateMLModelOutcomeCallable;
182 } // namespace Model
183 
185 
186  typedef std::function<void(const MachineLearningClient*, const Model::AddTagsRequest&, const Model::AddTagsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > AddTagsResponseReceivedHandler;
187  typedef std::function<void(const MachineLearningClient*, const Model::CreateBatchPredictionRequest&, const Model::CreateBatchPredictionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateBatchPredictionResponseReceivedHandler;
188  typedef std::function<void(const MachineLearningClient*, const Model::CreateDataSourceFromRDSRequest&, const Model::CreateDataSourceFromRDSOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateDataSourceFromRDSResponseReceivedHandler;
189  typedef std::function<void(const MachineLearningClient*, const Model::CreateDataSourceFromRedshiftRequest&, const Model::CreateDataSourceFromRedshiftOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateDataSourceFromRedshiftResponseReceivedHandler;
190  typedef std::function<void(const MachineLearningClient*, const Model::CreateDataSourceFromS3Request&, const Model::CreateDataSourceFromS3Outcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateDataSourceFromS3ResponseReceivedHandler;
191  typedef std::function<void(const MachineLearningClient*, const Model::CreateEvaluationRequest&, const Model::CreateEvaluationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateEvaluationResponseReceivedHandler;
192  typedef std::function<void(const MachineLearningClient*, const Model::CreateMLModelRequest&, const Model::CreateMLModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateMLModelResponseReceivedHandler;
193  typedef std::function<void(const MachineLearningClient*, const Model::CreateRealtimeEndpointRequest&, const Model::CreateRealtimeEndpointOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateRealtimeEndpointResponseReceivedHandler;
194  typedef std::function<void(const MachineLearningClient*, const Model::DeleteBatchPredictionRequest&, const Model::DeleteBatchPredictionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteBatchPredictionResponseReceivedHandler;
195  typedef std::function<void(const MachineLearningClient*, const Model::DeleteDataSourceRequest&, const Model::DeleteDataSourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteDataSourceResponseReceivedHandler;
196  typedef std::function<void(const MachineLearningClient*, const Model::DeleteEvaluationRequest&, const Model::DeleteEvaluationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteEvaluationResponseReceivedHandler;
197  typedef std::function<void(const MachineLearningClient*, const Model::DeleteMLModelRequest&, const Model::DeleteMLModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteMLModelResponseReceivedHandler;
198  typedef std::function<void(const MachineLearningClient*, const Model::DeleteRealtimeEndpointRequest&, const Model::DeleteRealtimeEndpointOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteRealtimeEndpointResponseReceivedHandler;
199  typedef std::function<void(const MachineLearningClient*, const Model::DeleteTagsRequest&, const Model::DeleteTagsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteTagsResponseReceivedHandler;
200  typedef std::function<void(const MachineLearningClient*, const Model::DescribeBatchPredictionsRequest&, const Model::DescribeBatchPredictionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeBatchPredictionsResponseReceivedHandler;
201  typedef std::function<void(const MachineLearningClient*, const Model::DescribeDataSourcesRequest&, const Model::DescribeDataSourcesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeDataSourcesResponseReceivedHandler;
202  typedef std::function<void(const MachineLearningClient*, const Model::DescribeEvaluationsRequest&, const Model::DescribeEvaluationsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEvaluationsResponseReceivedHandler;
203  typedef std::function<void(const MachineLearningClient*, const Model::DescribeMLModelsRequest&, const Model::DescribeMLModelsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeMLModelsResponseReceivedHandler;
204  typedef std::function<void(const MachineLearningClient*, const Model::DescribeTagsRequest&, const Model::DescribeTagsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeTagsResponseReceivedHandler;
205  typedef std::function<void(const MachineLearningClient*, const Model::GetBatchPredictionRequest&, const Model::GetBatchPredictionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetBatchPredictionResponseReceivedHandler;
206  typedef std::function<void(const MachineLearningClient*, const Model::GetDataSourceRequest&, const Model::GetDataSourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetDataSourceResponseReceivedHandler;
207  typedef std::function<void(const MachineLearningClient*, const Model::GetEvaluationRequest&, const Model::GetEvaluationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetEvaluationResponseReceivedHandler;
208  typedef std::function<void(const MachineLearningClient*, const Model::GetMLModelRequest&, const Model::GetMLModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetMLModelResponseReceivedHandler;
209  typedef std::function<void(const MachineLearningClient*, const Model::PredictRequest&, const Model::PredictOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > PredictResponseReceivedHandler;
210  typedef std::function<void(const MachineLearningClient*, const Model::UpdateBatchPredictionRequest&, const Model::UpdateBatchPredictionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateBatchPredictionResponseReceivedHandler;
211  typedef std::function<void(const MachineLearningClient*, const Model::UpdateDataSourceRequest&, const Model::UpdateDataSourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateDataSourceResponseReceivedHandler;
212  typedef std::function<void(const MachineLearningClient*, const Model::UpdateEvaluationRequest&, const Model::UpdateEvaluationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateEvaluationResponseReceivedHandler;
213  typedef std::function<void(const MachineLearningClient*, const Model::UpdateMLModelRequest&, const Model::UpdateMLModelOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateMLModelResponseReceivedHandler;
214 
219  {
220  public:
222 
228 
234 
239  MachineLearningClient(const std::shared_ptr<Auth::AWSCredentialsProvider>& credentialsProvider,
240  const Client::ClientConfiguration& clientConfiguration = Client::ClientConfiguration());
241 
242  virtual ~MachineLearningClient();
243 
249  virtual Model::AddTagsOutcome AddTags(const Model::AddTagsRequest& request) const;
250 
258  virtual Model::AddTagsOutcomeCallable AddTagsCallable(const Model::AddTagsRequest& request) const;
259 
267  virtual void AddTagsAsync(const Model::AddTagsRequest& request, const AddTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
268 
285  virtual Model::CreateBatchPredictionOutcome CreateBatchPrediction(const Model::CreateBatchPredictionRequest& request) const;
286 
305  virtual Model::CreateBatchPredictionOutcomeCallable CreateBatchPredictionCallable(const Model::CreateBatchPredictionRequest& request) const;
306 
325  virtual void CreateBatchPredictionAsync(const Model::CreateBatchPredictionRequest& request, const CreateBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
326 
346  virtual Model::CreateDataSourceFromRDSOutcome CreateDataSourceFromRDS(const Model::CreateDataSourceFromRDSRequest& request) const;
347 
369  virtual Model::CreateDataSourceFromRDSOutcomeCallable CreateDataSourceFromRDSCallable(const Model::CreateDataSourceFromRDSRequest& request) const;
370 
392  virtual void CreateDataSourceFromRDSAsync(const Model::CreateDataSourceFromRDSRequest& request, const CreateDataSourceFromRDSResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
393 
431  virtual Model::CreateDataSourceFromRedshiftOutcome CreateDataSourceFromRedshift(const Model::CreateDataSourceFromRedshiftRequest& request) const;
432 
472  virtual Model::CreateDataSourceFromRedshiftOutcomeCallable CreateDataSourceFromRedshiftCallable(const Model::CreateDataSourceFromRedshiftRequest& request) const;
473 
513  virtual void CreateDataSourceFromRedshiftAsync(const Model::CreateDataSourceFromRedshiftRequest& request, const CreateDataSourceFromRedshiftResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
514 
546  virtual Model::CreateDataSourceFromS3Outcome CreateDataSourceFromS3(const Model::CreateDataSourceFromS3Request& request) const;
547 
581  virtual Model::CreateDataSourceFromS3OutcomeCallable CreateDataSourceFromS3Callable(const Model::CreateDataSourceFromS3Request& request) const;
582 
616  virtual void CreateDataSourceFromS3Async(const Model::CreateDataSourceFromS3Request& request, const CreateDataSourceFromS3ResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
617 
637  virtual Model::CreateEvaluationOutcome CreateEvaluation(const Model::CreateEvaluationRequest& request) const;
638 
660  virtual Model::CreateEvaluationOutcomeCallable CreateEvaluationCallable(const Model::CreateEvaluationRequest& request) const;
661 
683  virtual void CreateEvaluationAsync(const Model::CreateEvaluationRequest& request, const CreateEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
684 
703  virtual Model::CreateMLModelOutcome CreateMLModel(const Model::CreateMLModelRequest& request) const;
704 
725  virtual Model::CreateMLModelOutcomeCallable CreateMLModelCallable(const Model::CreateMLModelRequest& request) const;
726 
747  virtual void CreateMLModelAsync(const Model::CreateMLModelRequest& request, const CreateMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
748 
754  virtual Model::CreateRealtimeEndpointOutcome CreateRealtimeEndpoint(const Model::CreateRealtimeEndpointRequest& request) const;
755 
763  virtual Model::CreateRealtimeEndpointOutcomeCallable CreateRealtimeEndpointCallable(const Model::CreateRealtimeEndpointRequest& request) const;
764 
772  virtual void CreateRealtimeEndpointAsync(const Model::CreateRealtimeEndpointRequest& request, const CreateRealtimeEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
773 
781  virtual Model::DeleteBatchPredictionOutcome DeleteBatchPrediction(const Model::DeleteBatchPredictionRequest& request) const;
782 
792  virtual Model::DeleteBatchPredictionOutcomeCallable DeleteBatchPredictionCallable(const Model::DeleteBatchPredictionRequest& request) const;
793 
803  virtual void DeleteBatchPredictionAsync(const Model::DeleteBatchPredictionRequest& request, const DeleteBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
804 
812  virtual Model::DeleteDataSourceOutcome DeleteDataSource(const Model::DeleteDataSourceRequest& request) const;
813 
823  virtual Model::DeleteDataSourceOutcomeCallable DeleteDataSourceCallable(const Model::DeleteDataSourceRequest& request) const;
824 
834  virtual void DeleteDataSourceAsync(const Model::DeleteDataSourceRequest& request, const DeleteDataSourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
835 
844  virtual Model::DeleteEvaluationOutcome DeleteEvaluation(const Model::DeleteEvaluationRequest& request) const;
845 
856  virtual Model::DeleteEvaluationOutcomeCallable DeleteEvaluationCallable(const Model::DeleteEvaluationRequest& request) const;
857 
868  virtual void DeleteEvaluationAsync(const Model::DeleteEvaluationRequest& request, const DeleteEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
869 
877  virtual Model::DeleteMLModelOutcome DeleteMLModel(const Model::DeleteMLModelRequest& request) const;
878 
888  virtual Model::DeleteMLModelOutcomeCallable DeleteMLModelCallable(const Model::DeleteMLModelRequest& request) const;
889 
899  virtual void DeleteMLModelAsync(const Model::DeleteMLModelRequest& request, const DeleteMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
900 
904  virtual Model::DeleteRealtimeEndpointOutcome DeleteRealtimeEndpoint(const Model::DeleteRealtimeEndpointRequest& request) const;
905 
911  virtual Model::DeleteRealtimeEndpointOutcomeCallable DeleteRealtimeEndpointCallable(const Model::DeleteRealtimeEndpointRequest& request) const;
912 
918  virtual void DeleteRealtimeEndpointAsync(const Model::DeleteRealtimeEndpointRequest& request, const DeleteRealtimeEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
919 
925  virtual Model::DeleteTagsOutcome DeleteTags(const Model::DeleteTagsRequest& request) const;
926 
934  virtual Model::DeleteTagsOutcomeCallable DeleteTagsCallable(const Model::DeleteTagsRequest& request) const;
935 
943  virtual void DeleteTagsAsync(const Model::DeleteTagsRequest& request, const DeleteTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
944 
949  virtual Model::DescribeBatchPredictionsOutcome DescribeBatchPredictions(const Model::DescribeBatchPredictionsRequest& request) const;
950 
957  virtual Model::DescribeBatchPredictionsOutcomeCallable DescribeBatchPredictionsCallable(const Model::DescribeBatchPredictionsRequest& request) const;
958 
965  virtual void DescribeBatchPredictionsAsync(const Model::DescribeBatchPredictionsRequest& request, const DescribeBatchPredictionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
966 
971  virtual Model::DescribeDataSourcesOutcome DescribeDataSources(const Model::DescribeDataSourcesRequest& request) const;
972 
979  virtual Model::DescribeDataSourcesOutcomeCallable DescribeDataSourcesCallable(const Model::DescribeDataSourcesRequest& request) const;
980 
987  virtual void DescribeDataSourcesAsync(const Model::DescribeDataSourcesRequest& request, const DescribeDataSourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
988 
993  virtual Model::DescribeEvaluationsOutcome DescribeEvaluations(const Model::DescribeEvaluationsRequest& request) const;
994 
1001  virtual Model::DescribeEvaluationsOutcomeCallable DescribeEvaluationsCallable(const Model::DescribeEvaluationsRequest& request) const;
1002 
1009  virtual void DescribeEvaluationsAsync(const Model::DescribeEvaluationsRequest& request, const DescribeEvaluationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1010 
1015  virtual Model::DescribeMLModelsOutcome DescribeMLModels(const Model::DescribeMLModelsRequest& request) const;
1016 
1023  virtual Model::DescribeMLModelsOutcomeCallable DescribeMLModelsCallable(const Model::DescribeMLModelsRequest& request) const;
1024 
1031  virtual void DescribeMLModelsAsync(const Model::DescribeMLModelsRequest& request, const DescribeMLModelsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1032 
1036  virtual Model::DescribeTagsOutcome DescribeTags(const Model::DescribeTagsRequest& request) const;
1037 
1043  virtual Model::DescribeTagsOutcomeCallable DescribeTagsCallable(const Model::DescribeTagsRequest& request) const;
1044 
1050  virtual void DescribeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1051 
1057  virtual Model::GetBatchPredictionOutcome GetBatchPrediction(const Model::GetBatchPredictionRequest& request) const;
1058 
1066  virtual Model::GetBatchPredictionOutcomeCallable GetBatchPredictionCallable(const Model::GetBatchPredictionRequest& request) const;
1067 
1075  virtual void GetBatchPredictionAsync(const Model::GetBatchPredictionRequest& request, const GetBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1076 
1084  virtual Model::GetDataSourceOutcome GetDataSource(const Model::GetDataSourceRequest& request) const;
1085 
1095  virtual Model::GetDataSourceOutcomeCallable GetDataSourceCallable(const Model::GetDataSourceRequest& request) const;
1096 
1106  virtual void GetDataSourceAsync(const Model::GetDataSourceRequest& request, const GetDataSourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1107 
1112  virtual Model::GetEvaluationOutcome GetEvaluation(const Model::GetEvaluationRequest& request) const;
1113 
1120  virtual Model::GetEvaluationOutcomeCallable GetEvaluationCallable(const Model::GetEvaluationRequest& request) const;
1121 
1128  virtual void GetEvaluationAsync(const Model::GetEvaluationRequest& request, const GetEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1129 
1135  virtual Model::GetMLModelOutcome GetMLModel(const Model::GetMLModelRequest& request) const;
1136 
1144  virtual Model::GetMLModelOutcomeCallable GetMLModelCallable(const Model::GetMLModelRequest& request) const;
1145 
1153  virtual void GetMLModelAsync(const Model::GetMLModelRequest& request, const GetMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1154 
1161  virtual Model::PredictOutcome Predict(const Model::PredictRequest& request) const;
1162 
1171  virtual Model::PredictOutcomeCallable PredictCallable(const Model::PredictRequest& request) const;
1172 
1181  virtual void PredictAsync(const Model::PredictRequest& request, const PredictResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1182 
1189  virtual Model::UpdateBatchPredictionOutcome UpdateBatchPrediction(const Model::UpdateBatchPredictionRequest& request) const;
1190 
1199  virtual Model::UpdateBatchPredictionOutcomeCallable UpdateBatchPredictionCallable(const Model::UpdateBatchPredictionRequest& request) const;
1200 
1209  virtual void UpdateBatchPredictionAsync(const Model::UpdateBatchPredictionRequest& request, const UpdateBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1210 
1216  virtual Model::UpdateDataSourceOutcome UpdateDataSource(const Model::UpdateDataSourceRequest& request) const;
1217 
1225  virtual Model::UpdateDataSourceOutcomeCallable UpdateDataSourceCallable(const Model::UpdateDataSourceRequest& request) const;
1226 
1234  virtual void UpdateDataSourceAsync(const Model::UpdateDataSourceRequest& request, const UpdateDataSourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1235 
1241  virtual Model::UpdateEvaluationOutcome UpdateEvaluation(const Model::UpdateEvaluationRequest& request) const;
1242 
1250  virtual Model::UpdateEvaluationOutcomeCallable UpdateEvaluationCallable(const Model::UpdateEvaluationRequest& request) const;
1251 
1259  virtual void UpdateEvaluationAsync(const Model::UpdateEvaluationRequest& request, const UpdateEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1260 
1266  virtual Model::UpdateMLModelOutcome UpdateMLModel(const Model::UpdateMLModelRequest& request) const;
1267 
1275  virtual Model::UpdateMLModelOutcomeCallable UpdateMLModelCallable(const Model::UpdateMLModelRequest& request) const;
1276 
1284  virtual void UpdateMLModelAsync(const Model::UpdateMLModelRequest& request, const UpdateMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
1285 
1286 
1287  private:
1288  void init(const Client::ClientConfiguration& clientConfiguration);
1289 
1291  void AddTagsAsyncHelper(const Model::AddTagsRequest& request, const AddTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1292  void CreateBatchPredictionAsyncHelper(const Model::CreateBatchPredictionRequest& request, const CreateBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1293  void CreateDataSourceFromRDSAsyncHelper(const Model::CreateDataSourceFromRDSRequest& request, const CreateDataSourceFromRDSResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1294  void CreateDataSourceFromRedshiftAsyncHelper(const Model::CreateDataSourceFromRedshiftRequest& request, const CreateDataSourceFromRedshiftResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1295  void CreateDataSourceFromS3AsyncHelper(const Model::CreateDataSourceFromS3Request& request, const CreateDataSourceFromS3ResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1296  void CreateEvaluationAsyncHelper(const Model::CreateEvaluationRequest& request, const CreateEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1297  void CreateMLModelAsyncHelper(const Model::CreateMLModelRequest& request, const CreateMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1298  void CreateRealtimeEndpointAsyncHelper(const Model::CreateRealtimeEndpointRequest& request, const CreateRealtimeEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1299  void DeleteBatchPredictionAsyncHelper(const Model::DeleteBatchPredictionRequest& request, const DeleteBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1300  void DeleteDataSourceAsyncHelper(const Model::DeleteDataSourceRequest& request, const DeleteDataSourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1301  void DeleteEvaluationAsyncHelper(const Model::DeleteEvaluationRequest& request, const DeleteEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1302  void DeleteMLModelAsyncHelper(const Model::DeleteMLModelRequest& request, const DeleteMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1303  void DeleteRealtimeEndpointAsyncHelper(const Model::DeleteRealtimeEndpointRequest& request, const DeleteRealtimeEndpointResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1304  void DeleteTagsAsyncHelper(const Model::DeleteTagsRequest& request, const DeleteTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1305  void DescribeBatchPredictionsAsyncHelper(const Model::DescribeBatchPredictionsRequest& request, const DescribeBatchPredictionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1306  void DescribeDataSourcesAsyncHelper(const Model::DescribeDataSourcesRequest& request, const DescribeDataSourcesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1307  void DescribeEvaluationsAsyncHelper(const Model::DescribeEvaluationsRequest& request, const DescribeEvaluationsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1308  void DescribeMLModelsAsyncHelper(const Model::DescribeMLModelsRequest& request, const DescribeMLModelsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1309  void DescribeTagsAsyncHelper(const Model::DescribeTagsRequest& request, const DescribeTagsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1310  void GetBatchPredictionAsyncHelper(const Model::GetBatchPredictionRequest& request, const GetBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1311  void GetDataSourceAsyncHelper(const Model::GetDataSourceRequest& request, const GetDataSourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1312  void GetEvaluationAsyncHelper(const Model::GetEvaluationRequest& request, const GetEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1313  void GetMLModelAsyncHelper(const Model::GetMLModelRequest& request, const GetMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1314  void PredictAsyncHelper(const Model::PredictRequest& request, const PredictResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1315  void UpdateBatchPredictionAsyncHelper(const Model::UpdateBatchPredictionRequest& request, const UpdateBatchPredictionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1316  void UpdateDataSourceAsyncHelper(const Model::UpdateDataSourceRequest& request, const UpdateDataSourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1317  void UpdateEvaluationAsyncHelper(const Model::UpdateEvaluationRequest& request, const UpdateEvaluationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1318  void UpdateMLModelAsyncHelper(const Model::UpdateMLModelRequest& request, const UpdateMLModelResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
1319 
1320  Aws::String m_uri;
1321  std::shared_ptr<Utils::Threading::Executor> m_executor;
1322  };
1323 
1324 } // namespace MachineLearning
1325 } // namespace Aws
std::future< DeleteBatchPredictionOutcome > DeleteBatchPredictionOutcomeCallable
Aws::Utils::Outcome< GetBatchPredictionResult, Aws::Client::AWSError< MachineLearningErrors > > GetBatchPredictionOutcome
Aws::Utils::Outcome< DeleteBatchPredictionResult, Aws::Client::AWSError< MachineLearningErrors > > DeleteBatchPredictionOutcome
Aws::Utils::Outcome< CreateMLModelResult, Aws::Client::AWSError< MachineLearningErrors > > CreateMLModelOutcome
std::function< void(const MachineLearningClient *, const Model::PredictRequest &, const Model::PredictOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > PredictResponseReceivedHandler
Aws::Utils::Outcome< DescribeEvaluationsResult, Aws::Client::AWSError< MachineLearningErrors > > DescribeEvaluationsOutcome
Aws::Utils::Outcome< CreateDataSourceFromRDSResult, Aws::Client::AWSError< MachineLearningErrors > > CreateDataSourceFromRDSOutcome
std::future< UpdateEvaluationOutcome > UpdateEvaluationOutcomeCallable
std::future< GetEvaluationOutcome > GetEvaluationOutcomeCallable
Aws::Utils::Outcome< DescribeBatchPredictionsResult, Aws::Client::AWSError< MachineLearningErrors > > DescribeBatchPredictionsOutcome
std::future< UpdateDataSourceOutcome > UpdateDataSourceOutcomeCallable
std::future< DeleteDataSourceOutcome > DeleteDataSourceOutcomeCallable
std::future< DescribeEvaluationsOutcome > DescribeEvaluationsOutcomeCallable
Aws::Utils::Outcome< GetDataSourceResult, Aws::Client::AWSError< MachineLearningErrors > > GetDataSourceOutcome
Aws::Utils::Outcome< AddTagsResult, Aws::Client::AWSError< MachineLearningErrors > > AddTagsOutcome
std::function< void(const MachineLearningClient *, const Model::DeleteDataSourceRequest &, const Model::DeleteDataSourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteDataSourceResponseReceivedHandler
Aws::Utils::Outcome< DeleteDataSourceResult, Aws::Client::AWSError< MachineLearningErrors > > DeleteDataSourceOutcome
std::function< void(const MachineLearningClient *, const Model::CreateRealtimeEndpointRequest &, const Model::CreateRealtimeEndpointOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateRealtimeEndpointResponseReceivedHandler
std::future< DescribeBatchPredictionsOutcome > DescribeBatchPredictionsOutcomeCallable
Aws::Utils::Outcome< DeleteMLModelResult, Aws::Client::AWSError< MachineLearningErrors > > DeleteMLModelOutcome
Aws::Utils::Outcome< CreateRealtimeEndpointResult, Aws::Client::AWSError< MachineLearningErrors > > CreateRealtimeEndpointOutcome
std::function< void(const MachineLearningClient *, const Model::CreateDataSourceFromRedshiftRequest &, const Model::CreateDataSourceFromRedshiftOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateDataSourceFromRedshiftResponseReceivedHandler
Aws::Utils::Outcome< DeleteEvaluationResult, Aws::Client::AWSError< MachineLearningErrors > > DeleteEvaluationOutcome
std::future< DescribeDataSourcesOutcome > DescribeDataSourcesOutcomeCallable
Aws::Utils::Outcome< DescribeMLModelsResult, Aws::Client::AWSError< MachineLearningErrors > > DescribeMLModelsOutcome
std::function< void(const MachineLearningClient *, const Model::GetMLModelRequest &, const Model::GetMLModelOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetMLModelResponseReceivedHandler
std::future< CreateRealtimeEndpointOutcome > CreateRealtimeEndpointOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::UpdateBatchPredictionRequest &, const Model::UpdateBatchPredictionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateBatchPredictionResponseReceivedHandler
std::future< UpdateBatchPredictionOutcome > UpdateBatchPredictionOutcomeCallable
Aws::Utils::Outcome< UpdateBatchPredictionResult, Aws::Client::AWSError< MachineLearningErrors > > UpdateBatchPredictionOutcome
std::function< void(const MachineLearningClient *, const Model::DeleteRealtimeEndpointRequest &, const Model::DeleteRealtimeEndpointOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteRealtimeEndpointResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::CreateBatchPredictionRequest &, const Model::CreateBatchPredictionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateBatchPredictionResponseReceivedHandler
Aws::Utils::Outcome< GetMLModelResult, Aws::Client::AWSError< MachineLearningErrors > > GetMLModelOutcome
std::future< CreateDataSourceFromS3Outcome > CreateDataSourceFromS3OutcomeCallable
Aws::Utils::Outcome< UpdateMLModelResult, Aws::Client::AWSError< MachineLearningErrors > > UpdateMLModelOutcome
Aws::Utils::Outcome< DeleteRealtimeEndpointResult, Aws::Client::AWSError< MachineLearningErrors > > DeleteRealtimeEndpointOutcome
Aws::Utils::Outcome< CreateBatchPredictionResult, Aws::Client::AWSError< MachineLearningErrors > > CreateBatchPredictionOutcome
std::function< void(const MachineLearningClient *, const Model::DeleteMLModelRequest &, const Model::DeleteMLModelOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteMLModelResponseReceivedHandler
std::future< CreateBatchPredictionOutcome > CreateBatchPredictionOutcomeCallable
std::future< DeleteTagsOutcome > DeleteTagsOutcomeCallable
Aws::Utils::Outcome< GetEvaluationResult, Aws::Client::AWSError< MachineLearningErrors > > GetEvaluationOutcome
std::function< void(const MachineLearningClient *, const Model::CreateDataSourceFromS3Request &, const Model::CreateDataSourceFromS3Outcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateDataSourceFromS3ResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::UpdateEvaluationRequest &, const Model::UpdateEvaluationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateEvaluationResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::DescribeEvaluationsRequest &, const Model::DescribeEvaluationsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeEvaluationsResponseReceivedHandler
Aws::Utils::Outcome< PredictResult, Aws::Client::AWSError< MachineLearningErrors > > PredictOutcome
std::function< void(const MachineLearningClient *, const Model::DeleteTagsRequest &, const Model::DeleteTagsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteTagsResponseReceivedHandler
std::future< GetBatchPredictionOutcome > GetBatchPredictionOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::GetBatchPredictionRequest &, const Model::GetBatchPredictionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetBatchPredictionResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::AddTagsRequest &, const Model::AddTagsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > AddTagsResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::DescribeTagsRequest &, const Model::DescribeTagsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeTagsResponseReceivedHandler
std::future< GetMLModelOutcome > GetMLModelOutcomeCallable
std::future< AddTagsOutcome > AddTagsOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::GetEvaluationRequest &, const Model::GetEvaluationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetEvaluationResponseReceivedHandler
std::future< GetDataSourceOutcome > GetDataSourceOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::DeleteEvaluationRequest &, const Model::DeleteEvaluationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteEvaluationResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::CreateDataSourceFromRDSRequest &, const Model::CreateDataSourceFromRDSOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateDataSourceFromRDSResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::DescribeBatchPredictionsRequest &, const Model::DescribeBatchPredictionsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeBatchPredictionsResponseReceivedHandler
Aws::Utils::Outcome< CreateDataSourceFromS3Result, Aws::Client::AWSError< MachineLearningErrors > > CreateDataSourceFromS3Outcome
std::future< CreateMLModelOutcome > CreateMLModelOutcomeCallable
std::future< DeleteEvaluationOutcome > DeleteEvaluationOutcomeCallable
Aws::Utils::Outcome< CreateEvaluationResult, Aws::Client::AWSError< MachineLearningErrors > > CreateEvaluationOutcome
std::future< UpdateMLModelOutcome > UpdateMLModelOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::UpdateMLModelRequest &, const Model::UpdateMLModelOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateMLModelResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::CreateMLModelRequest &, const Model::CreateMLModelOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateMLModelResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
std::future< DeleteMLModelOutcome > DeleteMLModelOutcomeCallable
Aws::Utils::Outcome< UpdateEvaluationResult, Aws::Client::AWSError< MachineLearningErrors > > UpdateEvaluationOutcome
std::function< void(const MachineLearningClient *, const Model::CreateEvaluationRequest &, const Model::CreateEvaluationOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CreateEvaluationResponseReceivedHandler
std::future< CreateEvaluationOutcome > CreateEvaluationOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::GetDataSourceRequest &, const Model::GetDataSourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetDataSourceResponseReceivedHandler
Aws::Utils::Outcome< DescribeTagsResult, Aws::Client::AWSError< MachineLearningErrors > > DescribeTagsOutcome
Aws::Utils::Outcome< CreateDataSourceFromRedshiftResult, Aws::Client::AWSError< MachineLearningErrors > > CreateDataSourceFromRedshiftOutcome
Aws::Utils::Outcome< DeleteTagsResult, Aws::Client::AWSError< MachineLearningErrors > > DeleteTagsOutcome
std::future< CreateDataSourceFromRDSOutcome > CreateDataSourceFromRDSOutcomeCallable
Aws::Utils::Outcome< DescribeDataSourcesResult, Aws::Client::AWSError< MachineLearningErrors > > DescribeDataSourcesOutcome
std::future< DeleteRealtimeEndpointOutcome > DeleteRealtimeEndpointOutcomeCallable
std::future< CreateDataSourceFromRedshiftOutcome > CreateDataSourceFromRedshiftOutcomeCallable
std::future< DescribeMLModelsOutcome > DescribeMLModelsOutcomeCallable
std::future< DescribeTagsOutcome > DescribeTagsOutcomeCallable
Aws::Utils::Outcome< UpdateDataSourceResult, Aws::Client::AWSError< MachineLearningErrors > > UpdateDataSourceOutcome
std::future< PredictOutcome > PredictOutcomeCallable
std::function< void(const MachineLearningClient *, const Model::DeleteBatchPredictionRequest &, const Model::DeleteBatchPredictionOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DeleteBatchPredictionResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::DescribeMLModelsRequest &, const Model::DescribeMLModelsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeMLModelsResponseReceivedHandler
std::function< void(const MachineLearningClient *, const Model::UpdateDataSourceRequest &, const Model::UpdateDataSourceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > UpdateDataSourceResponseReceivedHandler
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).
std::function< void(const MachineLearningClient *, const Model::DescribeDataSourcesRequest &, const Model::DescribeDataSourcesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeDataSourcesResponseReceivedHandler