/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Information about the metric for a candidate produced by an AutoML * job.

See Also:

AWS * API Reference

*/ class MetricDatum { public: AWS_SAGEMAKER_API MetricDatum(); AWS_SAGEMAKER_API MetricDatum(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API MetricDatum& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the metric.

*/ inline const AutoMLMetricEnum& GetMetricName() const{ return m_metricName; } /** *

The name of the metric.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the metric.

*/ inline void SetMetricName(const AutoMLMetricEnum& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the metric.

*/ inline void SetMetricName(AutoMLMetricEnum&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the metric.

*/ inline MetricDatum& WithMetricName(const AutoMLMetricEnum& value) { SetMetricName(value); return *this;} /** *

The name of the metric.

*/ inline MetricDatum& WithMetricName(AutoMLMetricEnum&& value) { SetMetricName(std::move(value)); return *this;} /** *

The value of the metric.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the metric.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the metric.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the metric.

*/ inline MetricDatum& WithValue(double value) { SetValue(value); return *this;} /** *

The dataset split from which the AutoML job produced the metric.

*/ inline const MetricSetSource& GetSet() const{ return m_set; } /** *

The dataset split from which the AutoML job produced the metric.

*/ inline bool SetHasBeenSet() const { return m_setHasBeenSet; } /** *

The dataset split from which the AutoML job produced the metric.

*/ inline void SetSet(const MetricSetSource& value) { m_setHasBeenSet = true; m_set = value; } /** *

The dataset split from which the AutoML job produced the metric.

*/ inline void SetSet(MetricSetSource&& value) { m_setHasBeenSet = true; m_set = std::move(value); } /** *

The dataset split from which the AutoML job produced the metric.

*/ inline MetricDatum& WithSet(const MetricSetSource& value) { SetSet(value); return *this;} /** *

The dataset split from which the AutoML job produced the metric.

*/ inline MetricDatum& WithSet(MetricSetSource&& value) { SetSet(std::move(value)); return *this;} /** *

The name of the standard metric.

For definitions of the * standard metrics, see * Autopilot candidate metrics .

*/ inline const AutoMLMetricExtendedEnum& GetStandardMetricName() const{ return m_standardMetricName; } /** *

The name of the standard metric.

For definitions of the * standard metrics, see * Autopilot candidate metrics .

*/ inline bool StandardMetricNameHasBeenSet() const { return m_standardMetricNameHasBeenSet; } /** *

The name of the standard metric.

For definitions of the * standard metrics, see * Autopilot candidate metrics .

*/ inline void SetStandardMetricName(const AutoMLMetricExtendedEnum& value) { m_standardMetricNameHasBeenSet = true; m_standardMetricName = value; } /** *

The name of the standard metric.

For definitions of the * standard metrics, see * Autopilot candidate metrics .

*/ inline void SetStandardMetricName(AutoMLMetricExtendedEnum&& value) { m_standardMetricNameHasBeenSet = true; m_standardMetricName = std::move(value); } /** *

The name of the standard metric.

For definitions of the * standard metrics, see * Autopilot candidate metrics .

*/ inline MetricDatum& WithStandardMetricName(const AutoMLMetricExtendedEnum& value) { SetStandardMetricName(value); return *this;} /** *

The name of the standard metric.

For definitions of the * standard metrics, see * Autopilot candidate metrics .

*/ inline MetricDatum& WithStandardMetricName(AutoMLMetricExtendedEnum&& value) { SetStandardMetricName(std::move(value)); return *this;} private: AutoMLMetricEnum m_metricName; bool m_metricNameHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; MetricSetSource m_set; bool m_setHasBeenSet = false; AutoMLMetricExtendedEnum m_standardMetricName; bool m_standardMetricNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws