AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
HyperParameterSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ParameterRange.h>
10#include <aws/sagemaker/model/ParameterType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API HyperParameterSpecification() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
79 inline ParameterType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(ParameterType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
95 inline const ParameterRange& GetRange() const { return m_range; }
96 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
97 template <typename RangeT = ParameterRange>
98 void SetRange(RangeT&& value) {
99 m_rangeHasBeenSet = true;
100 m_range = std::forward<RangeT>(value);
101 }
102 template <typename RangeT = ParameterRange>
104 SetRange(std::forward<RangeT>(value));
105 return *this;
106 }
108
110
114 inline bool GetIsTunable() const { return m_isTunable; }
115 inline bool IsTunableHasBeenSet() const { return m_isTunableHasBeenSet; }
116 inline void SetIsTunable(bool value) {
117 m_isTunableHasBeenSet = true;
118 m_isTunable = value;
119 }
121 SetIsTunable(value);
122 return *this;
123 }
125
127
130 inline bool GetIsRequired() const { return m_isRequired; }
131 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
132 inline void SetIsRequired(bool value) {
133 m_isRequiredHasBeenSet = true;
134 m_isRequired = value;
135 }
137 SetIsRequired(value);
138 return *this;
139 }
141
143
147 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
148 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
149 template <typename DefaultValueT = Aws::String>
150 void SetDefaultValue(DefaultValueT&& value) {
151 m_defaultValueHasBeenSet = true;
152 m_defaultValue = std::forward<DefaultValueT>(value);
153 }
154 template <typename DefaultValueT = Aws::String>
156 SetDefaultValue(std::forward<DefaultValueT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_name;
162
163 Aws::String m_description;
164
166
167 ParameterRange m_range;
168
169 bool m_isTunable{false};
170
171 bool m_isRequired{false};
172
173 Aws::String m_defaultValue;
174 bool m_nameHasBeenSet = false;
175 bool m_descriptionHasBeenSet = false;
176 bool m_typeHasBeenSet = false;
177 bool m_rangeHasBeenSet = false;
178 bool m_isTunableHasBeenSet = false;
179 bool m_isRequiredHasBeenSet = false;
180 bool m_defaultValueHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace SageMaker
185} // namespace Aws
HyperParameterSpecification & WithDescription(DescriptionT &&value)
HyperParameterSpecification & WithType(ParameterType value)
HyperParameterSpecification & WithRange(RangeT &&value)
AWS_SAGEMAKER_API HyperParameterSpecification()=default
HyperParameterSpecification & WithIsRequired(bool value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API HyperParameterSpecification(Aws::Utils::Json::JsonView jsonValue)
HyperParameterSpecification & WithDefaultValue(DefaultValueT &&value)
HyperParameterSpecification & WithName(NameT &&value)
AWS_SAGEMAKER_API HyperParameterSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterSpecification & WithIsTunable(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue