7#include <aws/machinelearning/MachineLearning_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/machinelearning/model/DetailsAttributes.h>
23namespace MachineLearning
58 template<
typename PredictedLabelT = Aws::String>
59 void SetPredictedLabel(PredictedLabelT&& value) { m_predictedLabelHasBeenSet =
true; m_predictedLabel = std::forward<PredictedLabelT>(value); }
60 template<
typename PredictedLabelT = Aws::String>
70 inline void SetPredictedValue(
double value) { m_predictedValueHasBeenSet =
true; m_predictedValue = value; }
78 template<
typename PredictedScoresT = Aws::Map<Aws::String,
double>>
79 void SetPredictedScores(PredictedScoresT&& value) { m_predictedScoresHasBeenSet =
true; m_predictedScores = std::forward<PredictedScoresT>(value); }
80 template<
typename PredictedScoresT = Aws::Map<Aws::String,
double>>
83 m_predictedScoresHasBeenSet =
true; m_predictedScores.emplace(key, value);
return *
this;
91 template<
typename DetailsT = Aws::Map<DetailsAttributes, Aws::String>>
92 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet =
true; m_details = std::forward<DetailsT>(value); }
93 template<
typename DetailsT = Aws::Map<DetailsAttributes, Aws::String>>
96 m_detailsHasBeenSet =
true; m_details.emplace(key, value);
return *
this;
102 bool m_predictedLabelHasBeenSet =
false;
104 double m_predictedValue{0.0};
105 bool m_predictedValueHasBeenSet =
false;
108 bool m_predictedScoresHasBeenSet =
false;
111 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