AWS SDK for C++  1.9.103
AWS SDK for C++
Prediction.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace MachineLearning
24 {
25 namespace Model
26 {
27 
43  {
44  public:
49 
50 
55  inline const Aws::String& GetPredictedLabel() const{ return m_predictedLabel; }
56 
61  inline bool PredictedLabelHasBeenSet() const { return m_predictedLabelHasBeenSet; }
62 
67  inline void SetPredictedLabel(const Aws::String& value) { m_predictedLabelHasBeenSet = true; m_predictedLabel = value; }
68 
73  inline void SetPredictedLabel(Aws::String&& value) { m_predictedLabelHasBeenSet = true; m_predictedLabel = std::move(value); }
74 
79  inline void SetPredictedLabel(const char* value) { m_predictedLabelHasBeenSet = true; m_predictedLabel.assign(value); }
80 
85  inline Prediction& WithPredictedLabel(const Aws::String& value) { SetPredictedLabel(value); return *this;}
86 
91  inline Prediction& WithPredictedLabel(Aws::String&& value) { SetPredictedLabel(std::move(value)); return *this;}
92 
97  inline Prediction& WithPredictedLabel(const char* value) { SetPredictedLabel(value); return *this;}
98 
99 
103  inline double GetPredictedValue() const{ return m_predictedValue; }
104 
108  inline bool PredictedValueHasBeenSet() const { return m_predictedValueHasBeenSet; }
109 
113  inline void SetPredictedValue(double value) { m_predictedValueHasBeenSet = true; m_predictedValue = value; }
114 
118  inline Prediction& WithPredictedValue(double value) { SetPredictedValue(value); return *this;}
119 
120 
121 
122  inline const Aws::Map<Aws::String, double>& GetPredictedScores() const{ return m_predictedScores; }
123 
124 
125  inline bool PredictedScoresHasBeenSet() const { return m_predictedScoresHasBeenSet; }
126 
127 
128  inline void SetPredictedScores(const Aws::Map<Aws::String, double>& value) { m_predictedScoresHasBeenSet = true; m_predictedScores = value; }
129 
130 
131  inline void SetPredictedScores(Aws::Map<Aws::String, double>&& value) { m_predictedScoresHasBeenSet = true; m_predictedScores = std::move(value); }
132 
133 
134  inline Prediction& WithPredictedScores(const Aws::Map<Aws::String, double>& value) { SetPredictedScores(value); return *this;}
135 
136 
137  inline Prediction& WithPredictedScores(Aws::Map<Aws::String, double>&& value) { SetPredictedScores(std::move(value)); return *this;}
138 
139 
140  inline Prediction& AddPredictedScores(const Aws::String& key, double value) { m_predictedScoresHasBeenSet = true; m_predictedScores.emplace(key, value); return *this; }
141 
142 
143  inline Prediction& AddPredictedScores(Aws::String&& key, double value) { m_predictedScoresHasBeenSet = true; m_predictedScores.emplace(std::move(key), value); return *this; }
144 
145 
146  inline Prediction& AddPredictedScores(const char* key, double value) { m_predictedScoresHasBeenSet = true; m_predictedScores.emplace(key, value); return *this; }
147 
148 
149 
150  inline const Aws::Map<DetailsAttributes, Aws::String>& GetDetails() const{ return m_details; }
151 
152 
153  inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
154 
155 
156  inline void SetDetails(const Aws::Map<DetailsAttributes, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
157 
158 
159  inline void SetDetails(Aws::Map<DetailsAttributes, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
160 
161 
162  inline Prediction& WithDetails(const Aws::Map<DetailsAttributes, Aws::String>& value) { SetDetails(value); return *this;}
163 
164 
165  inline Prediction& WithDetails(Aws::Map<DetailsAttributes, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
166 
167 
168  inline Prediction& AddDetails(const DetailsAttributes& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
169 
170 
171  inline Prediction& AddDetails(DetailsAttributes&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
172 
173 
174  inline Prediction& AddDetails(const DetailsAttributes& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
175 
176 
177  inline Prediction& AddDetails(DetailsAttributes&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
178 
179 
180  inline Prediction& AddDetails(DetailsAttributes&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
181 
182 
183  inline Prediction& AddDetails(const DetailsAttributes& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
184 
185  private:
186 
187  Aws::String m_predictedLabel;
188  bool m_predictedLabelHasBeenSet;
189 
190  double m_predictedValue;
191  bool m_predictedValueHasBeenSet;
192 
193  Aws::Map<Aws::String, double> m_predictedScores;
194  bool m_predictedScoresHasBeenSet;
195 
197  bool m_detailsHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace MachineLearning
202 } // namespace Aws
Aws::MachineLearning::Model::Prediction
Definition: Prediction.h:43
Aws::MachineLearning::Model::Prediction::SetPredictedScores
void SetPredictedScores(Aws::Map< Aws::String, double > &&value)
Definition: Prediction.h:131
Aws::MachineLearning::Model::Prediction::WithDetails
Prediction & WithDetails(const Aws::Map< DetailsAttributes, Aws::String > &value)
Definition: Prediction.h:162
Aws::MachineLearning::Model::Prediction::SetPredictedLabel
void SetPredictedLabel(Aws::String &&value)
Definition: Prediction.h:73
Aws::MachineLearning::Model::Prediction::GetDetails
const Aws::Map< DetailsAttributes, Aws::String > & GetDetails() const
Definition: Prediction.h:150
Aws::MachineLearning::Model::Prediction::AddDetails
Prediction & AddDetails(const DetailsAttributes &key, Aws::String &&value)
Definition: Prediction.h:174
Aws::MachineLearning::Model::Prediction::SetPredictedLabel
void SetPredictedLabel(const char *value)
Definition: Prediction.h:79
Aws::MachineLearning::Model::Prediction::Prediction
Prediction()
Aws::MachineLearning::Model::Prediction::SetDetails
void SetDetails(const Aws::Map< DetailsAttributes, Aws::String > &value)
Definition: Prediction.h:156
Aws::MachineLearning::Model::Prediction::WithPredictedScores
Prediction & WithPredictedScores(const Aws::Map< Aws::String, double > &value)
Definition: Prediction.h:134
Aws::MachineLearning::Model::Prediction::PredictedValueHasBeenSet
bool PredictedValueHasBeenSet() const
Definition: Prediction.h:108
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::Prediction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MachineLearning::Model::Prediction::AddDetails
Prediction & AddDetails(DetailsAttributes &&key, Aws::String &&value)
Definition: Prediction.h:177
Aws::MachineLearning::Model::Prediction::PredictedScoresHasBeenSet
bool PredictedScoresHasBeenSet() const
Definition: Prediction.h:125
Aws::MachineLearning::Model::Prediction::SetDetails
void SetDetails(Aws::Map< DetailsAttributes, Aws::String > &&value)
Definition: Prediction.h:159
Aws::MachineLearning::Model::DetailsAttributes
DetailsAttributes
Definition: DetailsAttributes.h:17
Aws::MachineLearning::Model::Prediction::GetPredictedScores
const Aws::Map< Aws::String, double > & GetPredictedScores() const
Definition: Prediction.h:122
DetailsAttributes.h
Aws::MachineLearning::Model::Prediction::WithPredictedLabel
Prediction & WithPredictedLabel(const Aws::String &value)
Definition: Prediction.h:85
Aws::MachineLearning::Model::Prediction::AddDetails
Prediction & AddDetails(const DetailsAttributes &key, const char *value)
Definition: Prediction.h:183
Aws::MachineLearning::Model::Prediction::AddDetails
Prediction & AddDetails(const DetailsAttributes &key, const Aws::String &value)
Definition: Prediction.h:168
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::Prediction::SetPredictedValue
void SetPredictedValue(double value)
Definition: Prediction.h:113
Aws::MachineLearning::Model::Prediction::PredictedLabelHasBeenSet
bool PredictedLabelHasBeenSet() const
Definition: Prediction.h:61
Aws::MachineLearning::Model::Prediction::SetPredictedLabel
void SetPredictedLabel(const Aws::String &value)
Definition: Prediction.h:67
Aws::MachineLearning::Model::Prediction::WithPredictedValue
Prediction & WithPredictedValue(double value)
Definition: Prediction.h:118
Aws::MachineLearning::Model::Prediction::GetPredictedValue
double GetPredictedValue() const
Definition: Prediction.h:103
Aws::MachineLearning::Model::Prediction::WithPredictedLabel
Prediction & WithPredictedLabel(Aws::String &&value)
Definition: Prediction.h:91
Aws::MachineLearning::Model::Prediction::AddDetails
Prediction & AddDetails(DetailsAttributes &&key, const char *value)
Definition: Prediction.h:180
Aws::MachineLearning::Model::Prediction::WithPredictedScores
Prediction & WithPredictedScores(Aws::Map< Aws::String, double > &&value)
Definition: Prediction.h:137
Aws::MachineLearning::Model::Prediction::operator=
Prediction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MachineLearning::Model::Prediction::WithDetails
Prediction & WithDetails(Aws::Map< DetailsAttributes, Aws::String > &&value)
Definition: Prediction.h:165
Aws::MachineLearning::Model::Prediction::AddPredictedScores
Prediction & AddPredictedScores(const char *key, double value)
Definition: Prediction.h:146
Aws
Definition: AccessManagementClient.h:15
Aws::MachineLearning::Model::Prediction::DetailsHasBeenSet
bool DetailsHasBeenSet() const
Definition: Prediction.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::Prediction::AddPredictedScores
Prediction & AddPredictedScores(const Aws::String &key, double value)
Definition: Prediction.h:140
Aws::MachineLearning::Model::Prediction::AddDetails
Prediction & AddDetails(DetailsAttributes &&key, const Aws::String &value)
Definition: Prediction.h:171
Aws::MachineLearning::Model::Prediction::Prediction
Prediction(Aws::Utils::Json::JsonView jsonValue)
Aws::MachineLearning::Model::Prediction::GetPredictedLabel
const Aws::String & GetPredictedLabel() const
Definition: Prediction.h:55
Aws::MachineLearning::Model::Prediction::WithPredictedLabel
Prediction & WithPredictedLabel(const char *value)
Definition: Prediction.h:97
AWSMap.h
Aws::MachineLearning::Model::Prediction::AddPredictedScores
Prediction & AddPredictedScores(Aws::String &&key, double value)
Definition: Prediction.h:143
Aws::MachineLearning::Model::Prediction::SetPredictedScores
void SetPredictedScores(const Aws::Map< Aws::String, double > &value)
Definition: Prediction.h:128
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19