AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DefaultCategoricalHyperParameterRange.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize
23{
24namespace Model
25{
26
36 {
37 public:
41 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline DefaultCategoricalHyperParameterRange& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline DefaultCategoricalHyperParameterRange& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline DefaultCategoricalHyperParameterRange& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
63 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
64 inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
65 inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
67 inline DefaultCategoricalHyperParameterRange& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
68 inline DefaultCategoricalHyperParameterRange& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
69 inline DefaultCategoricalHyperParameterRange& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
70 inline DefaultCategoricalHyperParameterRange& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
72
74
77 inline bool GetIsTunable() const{ return m_isTunable; }
78 inline bool IsTunableHasBeenSet() const { return m_isTunableHasBeenSet; }
79 inline void SetIsTunable(bool value) { m_isTunableHasBeenSet = true; m_isTunable = value; }
80 inline DefaultCategoricalHyperParameterRange& WithIsTunable(bool value) { SetIsTunable(value); return *this;}
82 private:
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
88 bool m_valuesHasBeenSet = false;
89
90 bool m_isTunable;
91 bool m_isTunableHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Personalize
96} // namespace Aws
DefaultCategoricalHyperParameterRange & WithName(const Aws::String &value)
DefaultCategoricalHyperParameterRange & WithValues(Aws::Vector< Aws::String > &&value)
DefaultCategoricalHyperParameterRange & WithName(const char *value)
AWS_PERSONALIZE_API DefaultCategoricalHyperParameterRange & operator=(Aws::Utils::Json::JsonView jsonValue)
DefaultCategoricalHyperParameterRange & AddValues(const char *value)
AWS_PERSONALIZE_API DefaultCategoricalHyperParameterRange(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultCategoricalHyperParameterRange & WithValues(const Aws::Vector< Aws::String > &value)
DefaultCategoricalHyperParameterRange & AddValues(Aws::String &&value)
DefaultCategoricalHyperParameterRange & AddValues(const Aws::String &value)
DefaultCategoricalHyperParameterRange & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue