AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HyperParameterTuningJobObjective.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/HyperParameterTuningJobObjectiveType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
39 {
40 public:
44 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const HyperParameterTuningJobObjectiveType& GetType() const{ return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(const HyperParameterTuningJobObjectiveType& value) { m_typeHasBeenSet = true; m_type = value; }
54 inline void SetType(HyperParameterTuningJobObjectiveType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
58
60
63 inline const Aws::String& GetMetricName() const{ return m_metricName; }
64 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
65 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
66 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
67 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
68 inline HyperParameterTuningJobObjective& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
69 inline HyperParameterTuningJobObjective& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
70 inline HyperParameterTuningJobObjective& WithMetricName(const char* value) { SetMetricName(value); return *this;}
72 private:
73
75 bool m_typeHasBeenSet = false;
76
77 Aws::String m_metricName;
78 bool m_metricNameHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace SageMaker
83} // namespace Aws
HyperParameterTuningJobObjective & WithType(HyperParameterTuningJobObjectiveType &&value)
HyperParameterTuningJobObjective & WithType(const HyperParameterTuningJobObjectiveType &value)
const HyperParameterTuningJobObjectiveType & GetType() const
HyperParameterTuningJobObjective & WithMetricName(Aws::String &&value)
void SetType(HyperParameterTuningJobObjectiveType &&value)
AWS_SAGEMAKER_API HyperParameterTuningJobObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const HyperParameterTuningJobObjectiveType &value)
HyperParameterTuningJobObjective & WithMetricName(const char *value)
HyperParameterTuningJobObjective & WithMetricName(const Aws::String &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