AWS SDK for C++  1.9.159
AWS SDK for C++
HyperParameterTuningJobObjective.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 
37  {
38  public:
43 
44 
48  inline const HyperParameterTuningJobObjectiveType& GetType() const{ return m_type; }
49 
53  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 
58  inline void SetType(const HyperParameterTuningJobObjectiveType& value) { m_typeHasBeenSet = true; m_type = value; }
59 
63  inline void SetType(HyperParameterTuningJobObjectiveType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 
68  inline HyperParameterTuningJobObjective& WithType(const HyperParameterTuningJobObjectiveType& value) { SetType(value); return *this;}
69 
73  inline HyperParameterTuningJobObjective& WithType(HyperParameterTuningJobObjectiveType&& value) { SetType(std::move(value)); return *this;}
74 
75 
79  inline const Aws::String& GetMetricName() const{ return m_metricName; }
80 
84  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
85 
89  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
90 
94  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
95 
99  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
100 
104  inline HyperParameterTuningJobObjective& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
105 
109  inline HyperParameterTuningJobObjective& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
110 
114  inline HyperParameterTuningJobObjective& WithMetricName(const char* value) { SetMetricName(value); return *this;}
115 
116  private:
117 
119  bool m_typeHasBeenSet;
120 
121  Aws::String m_metricName;
122  bool m_metricNameHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace SageMaker
127 } // namespace Aws
Aws::SageMaker::Model::HyperParameterTuningJobObjective::HyperParameterTuningJobObjective
HyperParameterTuningJobObjective()
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::HyperParameterTuningJobObjective::operator=
HyperParameterTuningJobObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::HyperParameterTuningJobObjective::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: HyperParameterTuningJobObjective.h:53
Aws::SageMaker::Model::HyperParameterTuningJobObjective::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: HyperParameterTuningJobObjective.h:94
Aws::SageMaker::Model::HyperParameterTuningJobObjective::SetMetricName
void SetMetricName(const char *value)
Definition: HyperParameterTuningJobObjective.h:99
Aws::SageMaker::Model::HyperParameterTuningJobObjective::WithMetricName
HyperParameterTuningJobObjective & WithMetricName(const Aws::String &value)
Definition: HyperParameterTuningJobObjective.h:104
Aws::SageMaker::Model::HyperParameterTuningJobObjective::WithMetricName
HyperParameterTuningJobObjective & WithMetricName(Aws::String &&value)
Definition: HyperParameterTuningJobObjective.h:109
Aws::SageMaker::Model::HyperParameterTuningJobObjective::WithType
HyperParameterTuningJobObjective & WithType(const HyperParameterTuningJobObjectiveType &value)
Definition: HyperParameterTuningJobObjective.h:68
Aws::SageMaker::Model::HyperParameterTuningJobObjective::WithMetricName
HyperParameterTuningJobObjective & WithMetricName(const char *value)
Definition: HyperParameterTuningJobObjective.h:114
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::HyperParameterTuningJobObjectiveType
HyperParameterTuningJobObjectiveType
Definition: HyperParameterTuningJobObjectiveType.h:17
Aws::SageMaker::Model::HyperParameterTuningJobObjective::HyperParameterTuningJobObjective
HyperParameterTuningJobObjective(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::HyperParameterTuningJobObjective::SetType
void SetType(HyperParameterTuningJobObjectiveType &&value)
Definition: HyperParameterTuningJobObjective.h:63
Aws::SageMaker::Model::HyperParameterTuningJobObjective::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::HyperParameterTuningJobObjective::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: HyperParameterTuningJobObjective.h:89
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::HyperParameterTuningJobObjective::SetType
void SetType(const HyperParameterTuningJobObjectiveType &value)
Definition: HyperParameterTuningJobObjective.h:58
Aws::SageMaker::Model::HyperParameterTuningJobObjective::GetMetricName
const Aws::String & GetMetricName() const
Definition: HyperParameterTuningJobObjective.h:79
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::HyperParameterTuningJobObjective::GetType
const HyperParameterTuningJobObjectiveType & GetType() const
Definition: HyperParameterTuningJobObjective.h:48
Aws::SageMaker::Model::HyperParameterTuningJobObjective::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: HyperParameterTuningJobObjective.h:84
HyperParameterTuningJobObjectiveType.h
Aws::SageMaker::Model::HyperParameterTuningJobObjective::WithType
HyperParameterTuningJobObjective & WithType(HyperParameterTuningJobObjectiveType &&value)
Definition: HyperParameterTuningJobObjective.h:73
Aws::SageMaker::Model::HyperParameterTuningJobObjective
Definition: HyperParameterTuningJobObjective.h:37