AWS SDK for C++  1.9.108
AWS SDK for C++
DefaultCategoricalHyperParameterRange.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 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline DefaultCategoricalHyperParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline DefaultCategoricalHyperParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline DefaultCategoricalHyperParameterRange& WithName(const char* value) { SetName(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
89 
93  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
94 
98  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
99 
103  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
104 
108  inline DefaultCategoricalHyperParameterRange& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
109 
113  inline DefaultCategoricalHyperParameterRange& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
114 
118  inline DefaultCategoricalHyperParameterRange& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
119 
123  inline DefaultCategoricalHyperParameterRange& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
124 
128  inline DefaultCategoricalHyperParameterRange& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
129 
130 
134  inline bool GetIsTunable() const{ return m_isTunable; }
135 
139  inline bool IsTunableHasBeenSet() const { return m_isTunableHasBeenSet; }
140 
144  inline void SetIsTunable(bool value) { m_isTunableHasBeenSet = true; m_isTunable = value; }
145 
149  inline DefaultCategoricalHyperParameterRange& WithIsTunable(bool value) { SetIsTunable(value); return *this;}
150 
151  private:
152 
153  Aws::String m_name;
154  bool m_nameHasBeenSet;
155 
156  Aws::Vector<Aws::String> m_values;
157  bool m_valuesHasBeenSet;
158 
159  bool m_isTunable;
160  bool m_isTunableHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace Personalize
165 } // namespace Aws
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: DefaultCategoricalHyperParameterRange.h:88
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::AddValues
DefaultCategoricalHyperParameterRange & AddValues(const Aws::String &value)
Definition: DefaultCategoricalHyperParameterRange.h:118
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::AddValues
DefaultCategoricalHyperParameterRange & AddValues(const char *value)
Definition: DefaultCategoricalHyperParameterRange.h:128
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::operator=
DefaultCategoricalHyperParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::WithName
DefaultCategoricalHyperParameterRange & WithName(Aws::String &&value)
Definition: DefaultCategoricalHyperParameterRange.h:77
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::DefaultCategoricalHyperParameterRange
DefaultCategoricalHyperParameterRange()
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::SetName
void SetName(const char *value)
Definition: DefaultCategoricalHyperParameterRange.h:67
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::GetIsTunable
bool GetIsTunable() const
Definition: DefaultCategoricalHyperParameterRange.h:134
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
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::GetName
const Aws::String & GetName() const
Definition: DefaultCategoricalHyperParameterRange.h:47
AWSVector.h
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::WithValues
DefaultCategoricalHyperParameterRange & WithValues(const Aws::Vector< Aws::String > &value)
Definition: DefaultCategoricalHyperParameterRange.h:108
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::SetName
void SetName(Aws::String &&value)
Definition: DefaultCategoricalHyperParameterRange.h:62
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::WithValues
DefaultCategoricalHyperParameterRange & WithValues(Aws::Vector< Aws::String > &&value)
Definition: DefaultCategoricalHyperParameterRange.h:113
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::WithIsTunable
DefaultCategoricalHyperParameterRange & WithIsTunable(bool value)
Definition: DefaultCategoricalHyperParameterRange.h:149
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: DefaultCategoricalHyperParameterRange.h:103
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::WithName
DefaultCategoricalHyperParameterRange & WithName(const Aws::String &value)
Definition: DefaultCategoricalHyperParameterRange.h:72
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: DefaultCategoricalHyperParameterRange.h:98
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange
Definition: DefaultCategoricalHyperParameterRange.h:36
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::AddValues
DefaultCategoricalHyperParameterRange & AddValues(Aws::String &&value)
Definition: DefaultCategoricalHyperParameterRange.h:123
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DefaultCategoricalHyperParameterRange.h:52
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::SetIsTunable
void SetIsTunable(bool value)
Definition: DefaultCategoricalHyperParameterRange.h:144
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::DefaultCategoricalHyperParameterRange::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: DefaultCategoricalHyperParameterRange.h:93
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::WithName
DefaultCategoricalHyperParameterRange & WithName(const char *value)
Definition: DefaultCategoricalHyperParameterRange.h:82
Personalize_EXPORTS.h
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::SetName
void SetName(const Aws::String &value)
Definition: DefaultCategoricalHyperParameterRange.h:57
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::DefaultCategoricalHyperParameterRange
DefaultCategoricalHyperParameterRange(Aws::Utils::Json::JsonView jsonValue)
Aws::Personalize::Model::DefaultCategoricalHyperParameterRange::IsTunableHasBeenSet
bool IsTunableHasBeenSet() const
Definition: DefaultCategoricalHyperParameterRange.h:139