AWS SDK for C++  1.9.102
AWS SDK for C++
CategoricalHyperParameterRange.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Personalize
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 
70  inline CategoricalHyperParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
71 
75  inline CategoricalHyperParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
80  inline CategoricalHyperParameterRange& WithName(const char* value) { SetName(value); return *this;}
81 
82 
86  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
87 
91  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
92 
96  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
97 
101  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
102 
106  inline CategoricalHyperParameterRange& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
107 
111  inline CategoricalHyperParameterRange& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
112 
116  inline CategoricalHyperParameterRange& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
117 
121  inline CategoricalHyperParameterRange& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
122 
126  inline CategoricalHyperParameterRange& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
127 
128  private:
129 
130  Aws::String m_name;
131  bool m_nameHasBeenSet;
132 
133  Aws::Vector<Aws::String> m_values;
134  bool m_valuesHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace Personalize
139 } // namespace Aws
Aws::Personalize::Model::CategoricalHyperParameterRange::CategoricalHyperParameterRange
CategoricalHyperParameterRange()
Aws::Personalize::Model::CategoricalHyperParameterRange::AddValues
CategoricalHyperParameterRange & AddValues(const char *value)
Definition: CategoricalHyperParameterRange.h:126
Aws::Personalize::Model::CategoricalHyperParameterRange::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: CategoricalHyperParameterRange.h:101
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Personalize::Model::CategoricalHyperParameterRange::WithName
CategoricalHyperParameterRange & WithName(const char *value)
Definition: CategoricalHyperParameterRange.h:80
Aws::Personalize::Model::CategoricalHyperParameterRange::SetName
void SetName(Aws::String &&value)
Definition: CategoricalHyperParameterRange.h:60
Aws::Personalize::Model::CategoricalHyperParameterRange::CategoricalHyperParameterRange
CategoricalHyperParameterRange(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::CategoricalHyperParameterRange::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: CategoricalHyperParameterRange.h:86
Aws::Personalize::Model::CategoricalHyperParameterRange::WithValues
CategoricalHyperParameterRange & WithValues(Aws::Vector< Aws::String > &&value)
Definition: CategoricalHyperParameterRange.h:111
Aws::Personalize::Model::CategoricalHyperParameterRange::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: CategoricalHyperParameterRange.h:91
Aws::Personalize::Model::CategoricalHyperParameterRange::operator=
CategoricalHyperParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Personalize::Model::CategoricalHyperParameterRange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Personalize::Model::CategoricalHyperParameterRange::GetName
const Aws::String & GetName() const
Definition: CategoricalHyperParameterRange.h:45
Aws::Personalize::Model::CategoricalHyperParameterRange::WithValues
CategoricalHyperParameterRange & WithValues(const Aws::Vector< Aws::String > &value)
Definition: CategoricalHyperParameterRange.h:106
Aws::Personalize::Model::CategoricalHyperParameterRange::SetName
void SetName(const Aws::String &value)
Definition: CategoricalHyperParameterRange.h:55
Aws::Personalize::Model::CategoricalHyperParameterRange::SetName
void SetName(const char *value)
Definition: CategoricalHyperParameterRange.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CategoricalHyperParameterRange
Definition: CategoricalHyperParameterRange.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CategoricalHyperParameterRange::AddValues
CategoricalHyperParameterRange & AddValues(const Aws::String &value)
Definition: CategoricalHyperParameterRange.h:116
Aws::Personalize::Model::CategoricalHyperParameterRange::WithName
CategoricalHyperParameterRange & WithName(Aws::String &&value)
Definition: CategoricalHyperParameterRange.h:75
Aws::Personalize::Model::CategoricalHyperParameterRange::WithName
CategoricalHyperParameterRange & WithName(const Aws::String &value)
Definition: CategoricalHyperParameterRange.h:70
Personalize_EXPORTS.h
Aws::Personalize::Model::CategoricalHyperParameterRange::AddValues
CategoricalHyperParameterRange & AddValues(Aws::String &&value)
Definition: CategoricalHyperParameterRange.h:121
Aws::Personalize::Model::CategoricalHyperParameterRange::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: CategoricalHyperParameterRange.h:96
Aws::Personalize::Model::CategoricalHyperParameterRange::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CategoricalHyperParameterRange.h:50