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

The best candidate result from an AutoML training job.

See * Also:

AWS * API Reference

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

The type of metric with the best result.

*/ inline const AutoMLJobObjectiveType& GetType() const{ return m_type; } /** *

The type of metric with the best result.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of metric with the best result.

*/ inline void SetType(const AutoMLJobObjectiveType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of metric with the best result.

*/ inline void SetType(AutoMLJobObjectiveType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of metric with the best result.

*/ inline FinalAutoMLJobObjectiveMetric& WithType(const AutoMLJobObjectiveType& value) { SetType(value); return *this;} /** *

The type of metric with the best result.

*/ inline FinalAutoMLJobObjectiveMetric& WithType(AutoMLJobObjectiveType&& value) { SetType(std::move(value)); return *this;} /** *

The name of the metric with the best result. For a description of the * possible objective metrics, see AutoMLJobObjective$MetricName.

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

The name of the metric with the best result. For a description of the * possible objective metrics, see AutoMLJobObjective$MetricName.

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

The name of the metric with the best result. For a description of the * possible objective metrics, see AutoMLJobObjective$MetricName.

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

The name of the metric with the best result. For a description of the * possible objective metrics, see AutoMLJobObjective$MetricName.

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

The name of the metric with the best result. For a description of the * possible objective metrics, see AutoMLJobObjective$MetricName.

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

The name of the metric with the best result. For a description of the * possible objective metrics, see AutoMLJobObjective$MetricName.

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

The value of the metric with the best result.

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

The value of the metric with the best result.

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

The value of the metric with the best result.

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

The value of the metric with the best result.

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

The name of the standard metric. For a description of the standard metrics, * see Autopilot * candidate metrics.

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

The name of the standard metric. For a description of the standard metrics, * see Autopilot * candidate metrics.

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

The name of the standard metric. For a description of the standard metrics, * see Autopilot * candidate metrics.

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

The name of the standard metric. For a description of the standard metrics, * see Autopilot * candidate metrics.

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

The name of the standard metric. For a description of the standard metrics, * see Autopilot * candidate metrics.

*/ inline FinalAutoMLJobObjectiveMetric& WithStandardMetricName(const AutoMLMetricEnum& value) { SetStandardMetricName(value); return *this;} /** *

The name of the standard metric. For a description of the standard metrics, * see Autopilot * candidate metrics.

*/ inline FinalAutoMLJobObjectiveMetric& WithStandardMetricName(AutoMLMetricEnum&& value) { SetStandardMetricName(std::move(value)); return *this;} private: AutoMLJobObjectiveType m_type; bool m_typeHasBeenSet = false; AutoMLMetricEnum m_metricName; bool m_metricNameHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; AutoMLMetricEnum m_standardMetricName; bool m_standardMetricNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws