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
60 inline void SetPredictedLabel(
const char* value) { m_predictedLabelHasBeenSet =
true; m_predictedLabel.assign(value); }
72 inline void SetPredictedValue(
double value) { m_predictedValueHasBeenSet =
true; m_predictedValue = value; }
86 inline Prediction&
AddPredictedScores(
const char* key,
double value) { m_predictedScoresHasBeenSet =
true; m_predictedScores.emplace(key, value);
return *
this; }
107 bool m_predictedLabelHasBeenSet =
false;
109 double m_predictedValue;
110 bool m_predictedValueHasBeenSet =
false;
113 bool m_predictedScoresHasBeenSet =
false;
116 bool m_detailsHasBeenSet =
false;
bool DetailsHasBeenSet() const
double GetPredictedValue() const
Prediction & WithPredictedValue(double value)
Prediction & AddPredictedScores(Aws::String &&key, double value)
Prediction & AddDetails(DetailsAttributes &&key, const char *value)
const Aws::String & GetPredictedLabel() const
void SetPredictedScores(const Aws::Map< Aws::String, double > &value)
Prediction & WithPredictedLabel(const char *value)
AWS_MACHINELEARNING_API Prediction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPredictedScores(Aws::Map< Aws::String, double > &&value)
Prediction & AddDetails(DetailsAttributes &&key, Aws::String &&value)
Prediction & AddPredictedScores(const char *key, double value)
Prediction & WithPredictedLabel(const Aws::String &value)
const Aws::Map< DetailsAttributes, Aws::String > & GetDetails() const
Prediction & WithDetails(const Aws::Map< DetailsAttributes, Aws::String > &value)
Prediction & AddDetails(const DetailsAttributes &key, const char *value)
AWS_MACHINELEARNING_API Prediction(Aws::Utils::Json::JsonView jsonValue)
void SetDetails(Aws::Map< DetailsAttributes, Aws::String > &&value)
bool PredictedScoresHasBeenSet() const
void SetPredictedLabel(const char *value)
Prediction & WithPredictedScores(const Aws::Map< Aws::String, double > &value)
void SetPredictedValue(double value)
bool PredictedLabelHasBeenSet() const
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetails(const Aws::Map< DetailsAttributes, Aws::String > &value)
Prediction & AddPredictedScores(const Aws::String &key, double value)
Prediction & AddDetails(DetailsAttributes &&key, const Aws::String &value)
Prediction & WithPredictedLabel(Aws::String &&value)
void SetPredictedLabel(Aws::String &&value)
Prediction & AddDetails(const DetailsAttributes &key, Aws::String &&value)
Prediction & WithDetails(Aws::Map< DetailsAttributes, Aws::String > &&value)
const Aws::Map< Aws::String, double > & GetPredictedScores() const
bool PredictedValueHasBeenSet() const
Prediction & AddDetails(const DetailsAttributes &key, const Aws::String &value)
Prediction & WithPredictedScores(Aws::Map< Aws::String, double > &&value)
AWS_MACHINELEARNING_API Prediction()
void SetPredictedLabel(const Aws::String &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