AWS SDK for C++  1.9.107
AWS SDK for C++
HPOObjective.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Personalize
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetType() const{ return m_type; }
47 
52  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 
58  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
59 
64  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
65 
70  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
71 
76  inline HPOObjective& WithType(const Aws::String& value) { SetType(value); return *this;}
77 
82  inline HPOObjective& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
83 
88  inline HPOObjective& WithType(const char* value) { SetType(value); return *this;}
89 
90 
94  inline const Aws::String& GetMetricName() const{ return m_metricName; }
95 
99  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
100 
104  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
105 
109  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
110 
114  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
115 
119  inline HPOObjective& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
120 
124  inline HPOObjective& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
125 
129  inline HPOObjective& WithMetricName(const char* value) { SetMetricName(value); return *this;}
130 
131 
135  inline const Aws::String& GetMetricRegex() const{ return m_metricRegex; }
136 
140  inline bool MetricRegexHasBeenSet() const { return m_metricRegexHasBeenSet; }
141 
145  inline void SetMetricRegex(const Aws::String& value) { m_metricRegexHasBeenSet = true; m_metricRegex = value; }
146 
150  inline void SetMetricRegex(Aws::String&& value) { m_metricRegexHasBeenSet = true; m_metricRegex = std::move(value); }
151 
155  inline void SetMetricRegex(const char* value) { m_metricRegexHasBeenSet = true; m_metricRegex.assign(value); }
156 
160  inline HPOObjective& WithMetricRegex(const Aws::String& value) { SetMetricRegex(value); return *this;}
161 
165  inline HPOObjective& WithMetricRegex(Aws::String&& value) { SetMetricRegex(std::move(value)); return *this;}
166 
170  inline HPOObjective& WithMetricRegex(const char* value) { SetMetricRegex(value); return *this;}
171 
172  private:
173 
174  Aws::String m_type;
175  bool m_typeHasBeenSet;
176 
177  Aws::String m_metricName;
178  bool m_metricNameHasBeenSet;
179 
180  Aws::String m_metricRegex;
181  bool m_metricRegexHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace Personalize
186 } // namespace Aws
Aws::Personalize::Model::HPOObjective::WithMetricRegex
HPOObjective & WithMetricRegex(Aws::String &&value)
Definition: HPOObjective.h:165
Aws::Personalize::Model::HPOObjective
Definition: HPOObjective.h:34
Aws::Personalize::Model::HPOObjective::HPOObjective
HPOObjective(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::HPOObjective::WithMetricRegex
HPOObjective & WithMetricRegex(const char *value)
Definition: HPOObjective.h:170
Aws::Personalize::Model::HPOObjective::SetMetricRegex
void SetMetricRegex(Aws::String &&value)
Definition: HPOObjective.h:150
Aws::Personalize::Model::HPOObjective::WithType
HPOObjective & WithType(const Aws::String &value)
Definition: HPOObjective.h:76
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::HPOObjective::SetMetricRegex
void SetMetricRegex(const Aws::String &value)
Definition: HPOObjective.h:145
Aws::Personalize::Model::HPOObjective::SetMetricName
void SetMetricName(const char *value)
Definition: HPOObjective.h:114
Aws::Personalize::Model::HPOObjective::GetType
const Aws::String & GetType() const
Definition: HPOObjective.h:46
Aws::Personalize::Model::HPOObjective::MetricRegexHasBeenSet
bool MetricRegexHasBeenSet() const
Definition: HPOObjective.h:140
Aws::Personalize::Model::HPOObjective::WithMetricName
HPOObjective & WithMetricName(const Aws::String &value)
Definition: HPOObjective.h:119
Aws::Personalize::Model::HPOObjective::SetMetricRegex
void SetMetricRegex(const char *value)
Definition: HPOObjective.h:155
Aws::Personalize::Model::HPOObjective::SetType
void SetType(const Aws::String &value)
Definition: HPOObjective.h:58
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Personalize::Model::HPOObjective::GetMetricRegex
const Aws::String & GetMetricRegex() const
Definition: HPOObjective.h:135
Aws::Personalize::Model::HPOObjective::WithMetricRegex
HPOObjective & WithMetricRegex(const Aws::String &value)
Definition: HPOObjective.h:160
Aws::Personalize::Model::HPOObjective::SetType
void SetType(const char *value)
Definition: HPOObjective.h:70
Aws::Personalize::Model::HPOObjective::GetMetricName
const Aws::String & GetMetricName() const
Definition: HPOObjective.h:94
Aws::Personalize::Model::HPOObjective::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: HPOObjective.h:104
Aws::Personalize::Model::HPOObjective::WithType
HPOObjective & WithType(const char *value)
Definition: HPOObjective.h:88
Aws::Personalize::Model::HPOObjective::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: HPOObjective.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::HPOObjective::SetType
void SetType(Aws::String &&value)
Definition: HPOObjective.h:64
Aws::Personalize::Model::HPOObjective::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: HPOObjective.h:99
Aws::Personalize::Model::HPOObjective::HPOObjective
HPOObjective()
Personalize_EXPORTS.h
Aws::Personalize::Model::HPOObjective::WithMetricName
HPOObjective & WithMetricName(const char *value)
Definition: HPOObjective.h:129
Aws::Personalize::Model::HPOObjective::operator=
HPOObjective & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::HPOObjective::WithMetricName
HPOObjective & WithMetricName(Aws::String &&value)
Definition: HPOObjective.h:124
Aws::Personalize::Model::HPOObjective::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: HPOObjective.h:52
Aws::Personalize::Model::HPOObjective::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Personalize::Model::HPOObjective::WithType
HPOObjective & WithType(Aws::String &&value)
Definition: HPOObjective.h:82