AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HyperParameterTuningJobObjective.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/HyperParameterTuningJobObjectiveType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
35 public:
36 AWS_SAGEMAKER_API HyperParameterTuningJobObjective() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline HyperParameterTuningJobObjectiveType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetMetricName() const { return m_metricName; }
62 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
63 template <typename MetricNameT = Aws::String>
64 void SetMetricName(MetricNameT&& value) {
65 m_metricNameHasBeenSet = true;
66 m_metricName = std::forward<MetricNameT>(value);
67 }
68 template <typename MetricNameT = Aws::String>
70 SetMetricName(std::forward<MetricNameT>(value));
71 return *this;
72 }
74 private:
76
77 Aws::String m_metricName;
78 bool m_typeHasBeenSet = false;
79 bool m_metricNameHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace SageMaker
84} // namespace Aws
AWS_SAGEMAKER_API HyperParameterTuningJobObjective()=default
HyperParameterTuningJobObjective & WithType(HyperParameterTuningJobObjectiveType value)
AWS_SAGEMAKER_API HyperParameterTuningJobObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobObjective & WithMetricName(MetricNameT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API HyperParameterTuningJobObjective(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue