AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HyperParameterSpecification.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/ParameterType.h>
10#include <aws/sagemaker/model/ParameterRange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API HyperParameterSpecification();
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline HyperParameterSpecification& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline HyperParameterSpecification& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline HyperParameterSpecification& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline HyperParameterSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline HyperParameterSpecification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline HyperParameterSpecification& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
77 inline const ParameterType& GetType() const{ return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(const ParameterType& value) { m_typeHasBeenSet = true; m_type = value; }
80 inline void SetType(ParameterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
81 inline HyperParameterSpecification& WithType(const ParameterType& value) { SetType(value); return *this;}
82 inline HyperParameterSpecification& WithType(ParameterType&& value) { SetType(std::move(value)); return *this;}
84
86
89 inline const ParameterRange& GetRange() const{ return m_range; }
90 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
91 inline void SetRange(const ParameterRange& value) { m_rangeHasBeenSet = true; m_range = value; }
92 inline void SetRange(ParameterRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
93 inline HyperParameterSpecification& WithRange(const ParameterRange& value) { SetRange(value); return *this;}
94 inline HyperParameterSpecification& WithRange(ParameterRange&& value) { SetRange(std::move(value)); return *this;}
96
98
102 inline bool GetIsTunable() const{ return m_isTunable; }
103 inline bool IsTunableHasBeenSet() const { return m_isTunableHasBeenSet; }
104 inline void SetIsTunable(bool value) { m_isTunableHasBeenSet = true; m_isTunable = value; }
105 inline HyperParameterSpecification& WithIsTunable(bool value) { SetIsTunable(value); return *this;}
107
109
112 inline bool GetIsRequired() const{ return m_isRequired; }
113 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
114 inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; }
115 inline HyperParameterSpecification& WithIsRequired(bool value) { SetIsRequired(value); return *this;}
117
119
123 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
124 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
125 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
126 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
127 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
128 inline HyperParameterSpecification& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
129 inline HyperParameterSpecification& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
130 inline HyperParameterSpecification& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
132 private:
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 ParameterType m_type;
141 bool m_typeHasBeenSet = false;
142
143 ParameterRange m_range;
144 bool m_rangeHasBeenSet = false;
145
146 bool m_isTunable;
147 bool m_isTunableHasBeenSet = false;
148
149 bool m_isRequired;
150 bool m_isRequiredHasBeenSet = false;
151
152 Aws::String m_defaultValue;
153 bool m_defaultValueHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace SageMaker
158} // namespace Aws
HyperParameterSpecification & WithType(ParameterType &&value)
HyperParameterSpecification & WithName(Aws::String &&value)
HyperParameterSpecification & WithName(const char *value)
HyperParameterSpecification & WithDescription(const char *value)
HyperParameterSpecification & WithType(const ParameterType &value)
HyperParameterSpecification & WithDefaultValue(Aws::String &&value)
HyperParameterSpecification & WithIsRequired(bool value)
HyperParameterSpecification & WithRange(const ParameterRange &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterSpecification & WithDescription(Aws::String &&value)
HyperParameterSpecification & WithDefaultValue(const Aws::String &value)
HyperParameterSpecification & WithRange(ParameterRange &&value)
HyperParameterSpecification & WithName(const Aws::String &value)
AWS_SAGEMAKER_API HyperParameterSpecification(Aws::Utils::Json::JsonView jsonValue)
HyperParameterSpecification & WithDefaultValue(const char *value)
HyperParameterSpecification & WithDescription(const Aws::String &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