AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 HyperParameterSpecification& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 HyperParameterSpecification& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
73 inline ParameterType GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(ParameterType value) { m_typeHasBeenSet = true; m_type = value; }
76 inline HyperParameterSpecification& WithType(ParameterType value) { SetType(value); return *this;}
78
80
83 inline const ParameterRange& GetRange() const { return m_range; }
84 inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
85 template<typename RangeT = ParameterRange>
86 void SetRange(RangeT&& value) { m_rangeHasBeenSet = true; m_range = std::forward<RangeT>(value); }
87 template<typename RangeT = ParameterRange>
88 HyperParameterSpecification& WithRange(RangeT&& value) { SetRange(std::forward<RangeT>(value)); return *this;}
90
92
96 inline bool GetIsTunable() const { return m_isTunable; }
97 inline bool IsTunableHasBeenSet() const { return m_isTunableHasBeenSet; }
98 inline void SetIsTunable(bool value) { m_isTunableHasBeenSet = true; m_isTunable = value; }
99 inline HyperParameterSpecification& WithIsTunable(bool value) { SetIsTunable(value); return *this;}
101
103
106 inline bool GetIsRequired() const { return m_isRequired; }
107 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
108 inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; }
109 inline HyperParameterSpecification& WithIsRequired(bool value) { SetIsRequired(value); return *this;}
111
113
117 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
118 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
119 template<typename DefaultValueT = Aws::String>
120 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
121 template<typename DefaultValueT = Aws::String>
122 HyperParameterSpecification& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
124 private:
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_description;
130 bool m_descriptionHasBeenSet = false;
131
133 bool m_typeHasBeenSet = false;
134
135 ParameterRange m_range;
136 bool m_rangeHasBeenSet = false;
137
138 bool m_isTunable{false};
139 bool m_isTunableHasBeenSet = false;
140
141 bool m_isRequired{false};
142 bool m_isRequiredHasBeenSet = false;
143
144 Aws::String m_defaultValue;
145 bool m_defaultValueHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SageMaker
150} // 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