AWS SDK for C++  1.9.108
AWS SDK for C++
PredictResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace MachineLearning
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
35 
36  inline const Prediction& GetPrediction() const{ return m_prediction; }
37 
38 
39  inline void SetPrediction(const Prediction& value) { m_prediction = value; }
40 
41 
42  inline void SetPrediction(Prediction&& value) { m_prediction = std::move(value); }
43 
44 
45  inline PredictResult& WithPrediction(const Prediction& value) { SetPrediction(value); return *this;}
46 
47 
48  inline PredictResult& WithPrediction(Prediction&& value) { SetPrediction(std::move(value)); return *this;}
49 
50  private:
51 
52  Prediction m_prediction;
53  };
54 
55 } // namespace Model
56 } // namespace MachineLearning
57 } // namespace Aws
Aws::MachineLearning::Model::Prediction
Definition: Prediction.h:43
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::MachineLearning::Model::PredictResult::GetPrediction
const Prediction & GetPrediction() const
Definition: PredictResult.h:36
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::PredictResult::WithPrediction
PredictResult & WithPrediction(const Prediction &value)
Definition: PredictResult.h:45
Aws::MachineLearning::Model::PredictResult::PredictResult
PredictResult()
Aws::MachineLearning::Model::PredictResult::WithPrediction
PredictResult & WithPrediction(Prediction &&value)
Definition: PredictResult.h:48
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::PredictResult
Definition: PredictResult.h:28
Aws::MachineLearning::Model::PredictResult::PredictResult
PredictResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MachineLearning::Model::PredictResult::SetPrediction
void SetPrediction(Prediction &&value)
Definition: PredictResult.h:42
Aws
Definition: AccessManagementClient.h:15
Prediction.h
Aws::MachineLearning::Model::PredictResult::operator=
PredictResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MachineLearning::Model::PredictResult::SetPrediction
void SetPrediction(const Prediction &value)
Definition: PredictResult.h:39