AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HPOObjective.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_PERSONALIZE_API HPOObjective() = default;
37 AWS_PERSONALIZE_API HPOObjective(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API HPOObjective& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 template<typename TypeT = Aws::String>
50 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
51 template<typename TypeT = Aws::String>
52 HPOObjective& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetMetricName() const { return m_metricName; }
60 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
61 template<typename MetricNameT = Aws::String>
62 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
63 template<typename MetricNameT = Aws::String>
64 HPOObjective& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetMetricRegex() const { return m_metricRegex; }
72 inline bool MetricRegexHasBeenSet() const { return m_metricRegexHasBeenSet; }
73 template<typename MetricRegexT = Aws::String>
74 void SetMetricRegex(MetricRegexT&& value) { m_metricRegexHasBeenSet = true; m_metricRegex = std::forward<MetricRegexT>(value); }
75 template<typename MetricRegexT = Aws::String>
76 HPOObjective& WithMetricRegex(MetricRegexT&& value) { SetMetricRegex(std::forward<MetricRegexT>(value)); return *this;}
78 private:
79
80 Aws::String m_type;
81 bool m_typeHasBeenSet = false;
82
83 Aws::String m_metricName;
84 bool m_metricNameHasBeenSet = false;
85
86 Aws::String m_metricRegex;
87 bool m_metricRegexHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Personalize
92} // namespace Aws
const Aws::String & GetMetricRegex() const
AWS_PERSONALIZE_API HPOObjective()=default
void SetMetricName(MetricNameT &&value)
HPOObjective & WithMetricName(MetricNameT &&value)
const Aws::String & GetType() const
AWS_PERSONALIZE_API HPOObjective(Aws::Utils::Json::JsonView jsonValue)
HPOObjective & WithMetricRegex(MetricRegexT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PERSONALIZE_API HPOObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
HPOObjective & WithType(TypeT &&value)
void SetMetricRegex(MetricRegexT &&value)
const Aws::String & GetMetricName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue