AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
HPOObjective.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/Personalize_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Personalize {
20namespace Model {
21
30 public:
31 AWS_PERSONALIZE_API HPOObjective() = default;
32 AWS_PERSONALIZE_API HPOObjective(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PERSONALIZE_API HPOObjective& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
49 HPOObjective& WithType(TypeT&& value) {
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
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) {
63 m_metricNameHasBeenSet = true;
64 m_metricName = std::forward<MetricNameT>(value);
65 }
66 template <typename MetricNameT = Aws::String>
67 HPOObjective& WithMetricName(MetricNameT&& value) {
68 SetMetricName(std::forward<MetricNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMetricRegex() const { return m_metricRegex; }
78 inline bool MetricRegexHasBeenSet() const { return m_metricRegexHasBeenSet; }
79 template <typename MetricRegexT = Aws::String>
80 void SetMetricRegex(MetricRegexT&& value) {
81 m_metricRegexHasBeenSet = true;
82 m_metricRegex = std::forward<MetricRegexT>(value);
83 }
84 template <typename MetricRegexT = Aws::String>
85 HPOObjective& WithMetricRegex(MetricRegexT&& value) {
86 SetMetricRegex(std::forward<MetricRegexT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_type;
92
93 Aws::String m_metricName;
94
95 Aws::String m_metricRegex;
96 bool m_typeHasBeenSet = false;
97 bool m_metricNameHasBeenSet = false;
98 bool m_metricRegexHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Personalize
103} // 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