7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/machinelearning/MachineLearning_EXPORTS.h>
10#include <aws/machinelearning/model/DetailsAttributes.h>
21namespace MachineLearning {
52 template <
typename PredictedLabelT = Aws::String>
54 m_predictedLabelHasBeenSet =
true;
55 m_predictedLabel = std::forward<PredictedLabelT>(value);
57 template <
typename PredictedLabelT = Aws::String>
71 m_predictedValueHasBeenSet =
true;
72 m_predictedValue = value;
84 template <
typename PredictedScoresT = Aws::Map<Aws::String,
double>>
86 m_predictedScoresHasBeenSet =
true;
87 m_predictedScores = std::forward<PredictedScoresT>(value);
89 template <
typename PredictedScoresT = Aws::Map<Aws::String,
double>>
95 m_predictedScoresHasBeenSet =
true;
96 m_predictedScores.emplace(key, value);
105 template <
typename DetailsT = Aws::Map<DetailsAttributes, Aws::String>>
107 m_detailsHasBeenSet =
true;
108 m_details = std::forward<DetailsT>(value);
110 template <
typename DetailsT = Aws::Map<DetailsAttributes, Aws::String>>
116 m_detailsHasBeenSet =
true;
117 m_details.emplace(key, value);
124 double m_predictedValue{0.0};
129 bool m_predictedLabelHasBeenSet =
false;
130 bool m_predictedValueHasBeenSet =
false;
131 bool m_predictedScoresHasBeenSet =
false;
132 bool m_detailsHasBeenSet =
false;
bool DetailsHasBeenSet() const
double GetPredictedValue() const
Prediction & WithPredictedValue(double value)
Prediction & WithDetails(DetailsT &&value)
const Aws::String & GetPredictedLabel() const
void SetPredictedLabel(PredictedLabelT &&value)
AWS_MACHINELEARNING_API Prediction & operator=(Aws::Utils::Json::JsonView jsonValue)
Prediction & WithPredictedScores(PredictedScoresT &&value)
AWS_MACHINELEARNING_API Prediction()=default
void SetDetails(DetailsT &&value)
void SetPredictedScores(PredictedScoresT &&value)
const Aws::Map< DetailsAttributes, Aws::String > & GetDetails() const
AWS_MACHINELEARNING_API Prediction(Aws::Utils::Json::JsonView jsonValue)
bool PredictedScoresHasBeenSet() const
Prediction & AddPredictedScores(Aws::String key, double value)
void SetPredictedValue(double value)
bool PredictedLabelHasBeenSet() const
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, double > & GetPredictedScores() const
bool PredictedValueHasBeenSet() const
Prediction & AddDetails(DetailsAttributes key, Aws::String value)
Prediction & WithPredictedLabel(PredictedLabelT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue