This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/FinalHyperParameterTuningJobObjectiveMetric.h

157 lines
5.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/model/HyperParameterTuningJobObjectiveType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
/**
* <p>Shows the final value for the objective metric for a training job that was
* launched by a hyperparameter tuning job. You define the objective metric in the
* <code>HyperParameterTuningJobObjective</code> parameter of
* <a>HyperParameterTuningJobConfig</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/FinalHyperParameterTuningJobObjectiveMetric">AWS
* API Reference</a></p>
*/
class AWS_SAGEMAKER_API FinalHyperParameterTuningJobObjectiveMetric
{
public:
FinalHyperParameterTuningJobObjectiveMetric();
FinalHyperParameterTuningJobObjectiveMetric(Aws::Utils::Json::JsonView jsonValue);
FinalHyperParameterTuningJobObjectiveMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Whether to minimize or maximize the objective metric. Valid values are
* Minimize and Maximize.</p>
*/
inline const HyperParameterTuningJobObjectiveType& GetType() const{ return m_type; }
/**
* <p>Whether to minimize or maximize the objective metric. Valid values are
* Minimize and Maximize.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Whether to minimize or maximize the objective metric. Valid values are
* Minimize and Maximize.</p>
*/
inline void SetType(const HyperParameterTuningJobObjectiveType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Whether to minimize or maximize the objective metric. Valid values are
* Minimize and Maximize.</p>
*/
inline void SetType(HyperParameterTuningJobObjectiveType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Whether to minimize or maximize the objective metric. Valid values are
* Minimize and Maximize.</p>
*/
inline FinalHyperParameterTuningJobObjectiveMetric& WithType(const HyperParameterTuningJobObjectiveType& value) { SetType(value); return *this;}
/**
* <p>Whether to minimize or maximize the objective metric. Valid values are
* Minimize and Maximize.</p>
*/
inline FinalHyperParameterTuningJobObjectiveMetric& WithType(HyperParameterTuningJobObjectiveType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The name of the objective metric.</p>
*/
inline const Aws::String& GetMetricName() const{ return m_metricName; }
/**
* <p>The name of the objective metric.</p>
*/
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
/**
* <p>The name of the objective metric.</p>
*/
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
/**
* <p>The name of the objective metric.</p>
*/
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
/**
* <p>The name of the objective metric.</p>
*/
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
/**
* <p>The name of the objective metric.</p>
*/
inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
/**
* <p>The name of the objective metric.</p>
*/
inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
/**
* <p>The name of the objective metric.</p>
*/
inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
/**
* <p>The value of the objective metric.</p>
*/
inline double GetValue() const{ return m_value; }
/**
* <p>The value of the objective metric.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the objective metric.</p>
*/
inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the objective metric.</p>
*/
inline FinalHyperParameterTuningJobObjectiveMetric& WithValue(double value) { SetValue(value); return *this;}
private:
HyperParameterTuningJobObjectiveType m_type;
bool m_typeHasBeenSet;
Aws::String m_metricName;
bool m_metricNameHasBeenSet;
double m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws