AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Prediction.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MachineLearning
24{
25namespace Model
26{
27
43 {
44 public:
45 AWS_MACHINELEARNING_API Prediction();
46 AWS_MACHINELEARNING_API Prediction(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MACHINELEARNING_API Prediction& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::String& GetPredictedLabel() const{ return m_predictedLabel; }
57 inline bool PredictedLabelHasBeenSet() const { return m_predictedLabelHasBeenSet; }
58 inline void SetPredictedLabel(const Aws::String& value) { m_predictedLabelHasBeenSet = true; m_predictedLabel = value; }
59 inline void SetPredictedLabel(Aws::String&& value) { m_predictedLabelHasBeenSet = true; m_predictedLabel = std::move(value); }
60 inline void SetPredictedLabel(const char* value) { m_predictedLabelHasBeenSet = true; m_predictedLabel.assign(value); }
61 inline Prediction& WithPredictedLabel(const Aws::String& value) { SetPredictedLabel(value); return *this;}
62 inline Prediction& WithPredictedLabel(Aws::String&& value) { SetPredictedLabel(std::move(value)); return *this;}
63 inline Prediction& WithPredictedLabel(const char* value) { SetPredictedLabel(value); return *this;}
65
67
70 inline double GetPredictedValue() const{ return m_predictedValue; }
71 inline bool PredictedValueHasBeenSet() const { return m_predictedValueHasBeenSet; }
72 inline void SetPredictedValue(double value) { m_predictedValueHasBeenSet = true; m_predictedValue = value; }
73 inline Prediction& WithPredictedValue(double value) { SetPredictedValue(value); return *this;}
75
77
78 inline const Aws::Map<Aws::String, double>& GetPredictedScores() const{ return m_predictedScores; }
79 inline bool PredictedScoresHasBeenSet() const { return m_predictedScoresHasBeenSet; }
80 inline void SetPredictedScores(const Aws::Map<Aws::String, double>& value) { m_predictedScoresHasBeenSet = true; m_predictedScores = value; }
81 inline void SetPredictedScores(Aws::Map<Aws::String, double>&& value) { m_predictedScoresHasBeenSet = true; m_predictedScores = std::move(value); }
83 inline Prediction& WithPredictedScores(Aws::Map<Aws::String, double>&& value) { SetPredictedScores(std::move(value)); return *this;}
84 inline Prediction& AddPredictedScores(const Aws::String& key, double value) { m_predictedScoresHasBeenSet = true; m_predictedScores.emplace(key, value); return *this; }
85 inline Prediction& AddPredictedScores(Aws::String&& key, double value) { m_predictedScoresHasBeenSet = true; m_predictedScores.emplace(std::move(key), value); return *this; }
86 inline Prediction& AddPredictedScores(const char* key, double value) { m_predictedScoresHasBeenSet = true; m_predictedScores.emplace(key, value); return *this; }
88
90
91 inline const Aws::Map<DetailsAttributes, Aws::String>& GetDetails() const{ return m_details; }
92 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
93 inline void SetDetails(const Aws::Map<DetailsAttributes, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
94 inline void SetDetails(Aws::Map<DetailsAttributes, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
95 inline Prediction& WithDetails(const Aws::Map<DetailsAttributes, Aws::String>& value) { SetDetails(value); return *this;}
96 inline Prediction& WithDetails(Aws::Map<DetailsAttributes, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
97 inline Prediction& AddDetails(const DetailsAttributes& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
98 inline Prediction& AddDetails(DetailsAttributes&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
99 inline Prediction& AddDetails(const DetailsAttributes& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
100 inline Prediction& AddDetails(DetailsAttributes&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
101 inline Prediction& AddDetails(DetailsAttributes&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
102 inline Prediction& AddDetails(const DetailsAttributes& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
104 private:
105
106 Aws::String m_predictedLabel;
107 bool m_predictedLabelHasBeenSet = false;
108
109 double m_predictedValue;
110 bool m_predictedValueHasBeenSet = false;
111
112 Aws::Map<Aws::String, double> m_predictedScores;
113 bool m_predictedScoresHasBeenSet = false;
114
116 bool m_detailsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace MachineLearning
121} // namespace Aws
Prediction & WithPredictedValue(double value)
Definition Prediction.h:73
Prediction & AddPredictedScores(Aws::String &&key, double value)
Definition Prediction.h:85
Prediction & AddDetails(DetailsAttributes &&key, const char *value)
Definition Prediction.h:101
const Aws::String & GetPredictedLabel() const
Definition Prediction.h:56
void SetPredictedScores(const Aws::Map< Aws::String, double > &value)
Definition Prediction.h:80
Prediction & WithPredictedLabel(const char *value)
Definition Prediction.h:63
AWS_MACHINELEARNING_API Prediction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPredictedScores(Aws::Map< Aws::String, double > &&value)
Definition Prediction.h:81
Prediction & AddDetails(DetailsAttributes &&key, Aws::String &&value)
Definition Prediction.h:100
Prediction & AddPredictedScores(const char *key, double value)
Definition Prediction.h:86
Prediction & WithPredictedLabel(const Aws::String &value)
Definition Prediction.h:61
const Aws::Map< DetailsAttributes, Aws::String > & GetDetails() const
Definition Prediction.h:91
Prediction & WithDetails(const Aws::Map< DetailsAttributes, Aws::String > &value)
Definition Prediction.h:95
Prediction & AddDetails(const DetailsAttributes &key, const char *value)
Definition Prediction.h:102
AWS_MACHINELEARNING_API Prediction(Aws::Utils::Json::JsonView jsonValue)
void SetDetails(Aws::Map< DetailsAttributes, Aws::String > &&value)
Definition Prediction.h:94
void SetPredictedLabel(const char *value)
Definition Prediction.h:60
Prediction & WithPredictedScores(const Aws::Map< Aws::String, double > &value)
Definition Prediction.h:82
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDetails(const Aws::Map< DetailsAttributes, Aws::String > &value)
Definition Prediction.h:93
Prediction & AddPredictedScores(const Aws::String &key, double value)
Definition Prediction.h:84
Prediction & AddDetails(DetailsAttributes &&key, const Aws::String &value)
Definition Prediction.h:98
Prediction & WithPredictedLabel(Aws::String &&value)
Definition Prediction.h:62
void SetPredictedLabel(Aws::String &&value)
Definition Prediction.h:59
Prediction & AddDetails(const DetailsAttributes &key, Aws::String &&value)
Definition Prediction.h:99
Prediction & WithDetails(Aws::Map< DetailsAttributes, Aws::String > &&value)
Definition Prediction.h:96
const Aws::Map< Aws::String, double > & GetPredictedScores() const
Definition Prediction.h:78
Prediction & AddDetails(const DetailsAttributes &key, const Aws::String &value)
Definition Prediction.h:97
Prediction & WithPredictedScores(Aws::Map< Aws::String, double > &&value)
Definition Prediction.h:83
AWS_MACHINELEARNING_API Prediction()
void SetPredictedLabel(const Aws::String &value)
Definition Prediction.h:58
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