AWS SDK for C++  1.9.160
AWS SDK for C++
MetricDatum.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const AutoMLMetricEnum& GetMetricName() const{ return m_metricName; }
46 
50  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
51 
55  inline void SetMetricName(const AutoMLMetricEnum& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
56 
60  inline void SetMetricName(AutoMLMetricEnum&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
61 
65  inline MetricDatum& WithMetricName(const AutoMLMetricEnum& value) { SetMetricName(value); return *this;}
66 
70  inline MetricDatum& WithMetricName(AutoMLMetricEnum&& value) { SetMetricName(std::move(value)); return *this;}
71 
72 
76  inline double GetValue() const{ return m_value; }
77 
81  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
82 
86  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
87 
91  inline MetricDatum& WithValue(double value) { SetValue(value); return *this;}
92 
93 
97  inline const MetricSetSource& GetSet() const{ return m_set; }
98 
102  inline bool SetHasBeenSet() const { return m_setHasBeenSet; }
103 
107  inline void SetSet(const MetricSetSource& value) { m_setHasBeenSet = true; m_set = value; }
108 
112  inline void SetSet(MetricSetSource&& value) { m_setHasBeenSet = true; m_set = std::move(value); }
113 
117  inline MetricDatum& WithSet(const MetricSetSource& value) { SetSet(value); return *this;}
118 
122  inline MetricDatum& WithSet(MetricSetSource&& value) { SetSet(std::move(value)); return *this;}
123 
124  private:
125 
126  AutoMLMetricEnum m_metricName;
127  bool m_metricNameHasBeenSet;
128 
129  double m_value;
130  bool m_valueHasBeenSet;
131 
132  MetricSetSource m_set;
133  bool m_setHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace SageMaker
138 } // namespace Aws
Aws::SageMaker::Model::MetricDatum::SetMetricName
void SetMetricName(const AutoMLMetricEnum &value)
Definition: MetricDatum.h:55
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::MetricDatum
Definition: MetricDatum.h:34
SageMaker_EXPORTS.h
Aws::SageMaker::Model::MetricDatum::SetHasBeenSet
bool SetHasBeenSet() const
Definition: MetricDatum.h:102
Aws::SageMaker::Model::MetricDatum::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::MetricDatum::SetMetricName
void SetMetricName(AutoMLMetricEnum &&value)
Definition: MetricDatum.h:60
Aws::SageMaker::Model::MetricDatum::GetSet
const MetricSetSource & GetSet() const
Definition: MetricDatum.h:97
Aws::SageMaker::Model::MetricSetSource
MetricSetSource
Definition: MetricSetSource.h:17
Aws::SageMaker::Model::MetricDatum::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MetricDatum.h:81
Aws::SageMaker::Model::MetricDatum::WithMetricName
MetricDatum & WithMetricName(const AutoMLMetricEnum &value)
Definition: MetricDatum.h:65
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::MetricDatum::SetSet
void SetSet(const MetricSetSource &value)
Definition: MetricDatum.h:107
Aws::SageMaker::Model::MetricDatum::MetricDatum
MetricDatum(Aws::Utils::Json::JsonView jsonValue)
AutoMLMetricEnum.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::MetricDatum::GetMetricName
const AutoMLMetricEnum & GetMetricName() const
Definition: MetricDatum.h:45
Aws::SageMaker::Model::AutoMLMetricEnum
AutoMLMetricEnum
Definition: AutoMLMetricEnum.h:17
Aws::SageMaker::Model::MetricDatum::operator=
MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricSetSource.h
Aws::SageMaker::Model::MetricDatum::WithValue
MetricDatum & WithValue(double value)
Definition: MetricDatum.h:91
Aws::SageMaker::Model::MetricDatum::MetricDatum
MetricDatum()
Aws::SageMaker::Model::MetricDatum::WithMetricName
MetricDatum & WithMetricName(AutoMLMetricEnum &&value)
Definition: MetricDatum.h:70
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::MetricDatum::SetSet
void SetSet(MetricSetSource &&value)
Definition: MetricDatum.h:112
Aws::SageMaker::Model::MetricDatum::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: MetricDatum.h:50
Aws::SageMaker::Model::MetricDatum::WithSet
MetricDatum & WithSet(MetricSetSource &&value)
Definition: MetricDatum.h:122
Aws::SageMaker::Model::MetricDatum::GetValue
double GetValue() const
Definition: MetricDatum.h:76
Aws::SageMaker::Model::MetricDatum::SetValue
void SetValue(double value)
Definition: MetricDatum.h:86
Aws::SageMaker::Model::MetricDatum::WithSet
MetricDatum & WithSet(const MetricSetSource &value)
Definition: MetricDatum.h:117