/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The metric to optimize during hyperparameter optimization (HPO). Amazon Personalize doesn't support configuring the hpoObjective
* at this time.See Also:
AWS
* API Reference
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The type of the metric. Valid values are Maximize
and
* Minimize
.
The name of the metric.
*/ inline const Aws::String& 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 Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *The name of the metric.
*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *The name of the metric.
*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *The name of the metric.
*/ inline HPOObjective& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *The name of the metric.
*/ inline HPOObjective& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *The name of the metric.
*/ inline HPOObjective& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *A regular expression for finding the metric in the training job logs.
*/ inline const Aws::String& GetMetricRegex() const{ return m_metricRegex; } /** *A regular expression for finding the metric in the training job logs.
*/ inline bool MetricRegexHasBeenSet() const { return m_metricRegexHasBeenSet; } /** *A regular expression for finding the metric in the training job logs.
*/ inline void SetMetricRegex(const Aws::String& value) { m_metricRegexHasBeenSet = true; m_metricRegex = value; } /** *A regular expression for finding the metric in the training job logs.
*/ inline void SetMetricRegex(Aws::String&& value) { m_metricRegexHasBeenSet = true; m_metricRegex = std::move(value); } /** *A regular expression for finding the metric in the training job logs.
*/ inline void SetMetricRegex(const char* value) { m_metricRegexHasBeenSet = true; m_metricRegex.assign(value); } /** *A regular expression for finding the metric in the training job logs.
*/ inline HPOObjective& WithMetricRegex(const Aws::String& value) { SetMetricRegex(value); return *this;} /** *A regular expression for finding the metric in the training job logs.
*/ inline HPOObjective& WithMetricRegex(Aws::String&& value) { SetMetricRegex(std::move(value)); return *this;} /** *A regular expression for finding the metric in the training job logs.
*/ inline HPOObjective& WithMetricRegex(const char* value) { SetMetricRegex(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_metricName; bool m_metricNameHasBeenSet = false; Aws::String m_metricRegex; bool m_metricRegexHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws