AWS SDK for C++  1.9.157
AWS SDK for C++
FinalHyperParameterTuningJobObjectiveMetric.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 
36  {
37  public:
42 
43 
48  inline const HyperParameterTuningJobObjectiveType& GetType() const{ return m_type; }
49 
54  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 
60  inline void SetType(const HyperParameterTuningJobObjectiveType& value) { m_typeHasBeenSet = true; m_type = value; }
61 
66  inline void SetType(HyperParameterTuningJobObjectiveType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 
72  inline FinalHyperParameterTuningJobObjectiveMetric& WithType(const HyperParameterTuningJobObjectiveType& value) { SetType(value); return *this;}
73 
78  inline FinalHyperParameterTuningJobObjectiveMetric& WithType(HyperParameterTuningJobObjectiveType&& value) { SetType(std::move(value)); return *this;}
79 
80 
84  inline const Aws::String& GetMetricName() const{ return m_metricName; }
85 
89  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
90 
94  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
95 
99  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
100 
104  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
105 
109  inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
110 
114  inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
115 
119  inline FinalHyperParameterTuningJobObjectiveMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
120 
121 
125  inline double GetValue() const{ return m_value; }
126 
130  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
131 
135  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
136 
140  inline FinalHyperParameterTuningJobObjectiveMetric& WithValue(double value) { SetValue(value); return *this;}
141 
142  private:
143 
145  bool m_typeHasBeenSet;
146 
147  Aws::String m_metricName;
148  bool m_metricNameHasBeenSet;
149 
150  double m_value;
151  bool m_valueHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace SageMaker
156 } // namespace Aws
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::WithType
FinalHyperParameterTuningJobObjectiveMetric & WithType(HyperParameterTuningJobObjectiveType &&value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:78
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:94
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::SetType
void SetType(HyperParameterTuningJobObjectiveType &&value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:66
SageMaker_EXPORTS.h
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::WithMetricName
FinalHyperParameterTuningJobObjectiveMetric & WithMetricName(Aws::String &&value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:114
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::WithValue
FinalHyperParameterTuningJobObjectiveMetric & WithValue(double value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:140
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::WithMetricName
FinalHyperParameterTuningJobObjectiveMetric & WithMetricName(const Aws::String &value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:109
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::FinalHyperParameterTuningJobObjectiveMetric
FinalHyperParameterTuningJobObjectiveMetric()
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:54
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::operator=
FinalHyperParameterTuningJobObjectiveMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::WithMetricName
FinalHyperParameterTuningJobObjectiveMetric & WithMetricName(const char *value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:119
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:89
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::GetType
const HyperParameterTuningJobObjectiveType & GetType() const
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:48
Aws::SageMaker::Model::HyperParameterTuningJobObjectiveType
HyperParameterTuningJobObjectiveType
Definition: HyperParameterTuningJobObjectiveType.h:17
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::SetValue
void SetValue(double value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:135
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::GetMetricName
const Aws::String & GetMetricName() const
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:84
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::FinalHyperParameterTuningJobObjectiveMetric
FinalHyperParameterTuningJobObjectiveMetric(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::WithType
FinalHyperParameterTuningJobObjectiveMetric & WithType(const HyperParameterTuningJobObjectiveType &value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:72
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:36
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::SetType
void SetType(const HyperParameterTuningJobObjectiveType &value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:60
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:130
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::SetMetricName
void SetMetricName(const char *value)
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:104
HyperParameterTuningJobObjectiveType.h
Aws::SageMaker::Model::FinalHyperParameterTuningJobObjectiveMetric::GetValue
double GetValue() const
Definition: FinalHyperParameterTuningJobObjectiveMetric.h:125