AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SolutionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/AutoMLConfig.h>
11#include <aws/personalize/model/AutoTrainingConfig.h>
12#include <aws/personalize/model/EventsConfig.h>
13#include <aws/personalize/model/HPOConfig.h>
14#include <aws/personalize/model/OptimizationObjective.h>
15#include <aws/personalize/model/TrainingDataConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Personalize {
27namespace Model {
28
36 public:
37 AWS_PERSONALIZE_API SolutionConfig() = default;
38 AWS_PERSONALIZE_API SolutionConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API SolutionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetEventValueThreshold() const { return m_eventValueThreshold; }
48 inline bool EventValueThresholdHasBeenSet() const { return m_eventValueThresholdHasBeenSet; }
49 template <typename EventValueThresholdT = Aws::String>
50 void SetEventValueThreshold(EventValueThresholdT&& value) {
51 m_eventValueThresholdHasBeenSet = true;
52 m_eventValueThreshold = std::forward<EventValueThresholdT>(value);
53 }
54 template <typename EventValueThresholdT = Aws::String>
55 SolutionConfig& WithEventValueThreshold(EventValueThresholdT&& value) {
56 SetEventValueThreshold(std::forward<EventValueThresholdT>(value));
57 return *this;
58 }
60
62
65 inline const HPOConfig& GetHpoConfig() const { return m_hpoConfig; }
66 inline bool HpoConfigHasBeenSet() const { return m_hpoConfigHasBeenSet; }
67 template <typename HpoConfigT = HPOConfig>
68 void SetHpoConfig(HpoConfigT&& value) {
69 m_hpoConfigHasBeenSet = true;
70 m_hpoConfig = std::forward<HpoConfigT>(value);
71 }
72 template <typename HpoConfigT = HPOConfig>
73 SolutionConfig& WithHpoConfig(HpoConfigT&& value) {
74 SetHpoConfig(std::forward<HpoConfigT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetAlgorithmHyperParameters() const { return m_algorithmHyperParameters; }
84 inline bool AlgorithmHyperParametersHasBeenSet() const { return m_algorithmHyperParametersHasBeenSet; }
85 template <typename AlgorithmHyperParametersT = Aws::Map<Aws::String, Aws::String>>
86 void SetAlgorithmHyperParameters(AlgorithmHyperParametersT&& value) {
87 m_algorithmHyperParametersHasBeenSet = true;
88 m_algorithmHyperParameters = std::forward<AlgorithmHyperParametersT>(value);
89 }
90 template <typename AlgorithmHyperParametersT = Aws::Map<Aws::String, Aws::String>>
91 SolutionConfig& WithAlgorithmHyperParameters(AlgorithmHyperParametersT&& value) {
92 SetAlgorithmHyperParameters(std::forward<AlgorithmHyperParametersT>(value));
93 return *this;
94 }
95 template <typename AlgorithmHyperParametersKeyT = Aws::String, typename AlgorithmHyperParametersValueT = Aws::String>
96 SolutionConfig& AddAlgorithmHyperParameters(AlgorithmHyperParametersKeyT&& key, AlgorithmHyperParametersValueT&& value) {
97 m_algorithmHyperParametersHasBeenSet = true;
98 m_algorithmHyperParameters.emplace(std::forward<AlgorithmHyperParametersKeyT>(key),
99 std::forward<AlgorithmHyperParametersValueT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetFeatureTransformationParameters() const { return m_featureTransformationParameters; }
109 inline bool FeatureTransformationParametersHasBeenSet() const { return m_featureTransformationParametersHasBeenSet; }
110 template <typename FeatureTransformationParametersT = Aws::Map<Aws::String, Aws::String>>
111 void SetFeatureTransformationParameters(FeatureTransformationParametersT&& value) {
112 m_featureTransformationParametersHasBeenSet = true;
113 m_featureTransformationParameters = std::forward<FeatureTransformationParametersT>(value);
114 }
115 template <typename FeatureTransformationParametersT = Aws::Map<Aws::String, Aws::String>>
116 SolutionConfig& WithFeatureTransformationParameters(FeatureTransformationParametersT&& value) {
117 SetFeatureTransformationParameters(std::forward<FeatureTransformationParametersT>(value));
118 return *this;
119 }
120 template <typename FeatureTransformationParametersKeyT = Aws::String, typename FeatureTransformationParametersValueT = Aws::String>
121 SolutionConfig& AddFeatureTransformationParameters(FeatureTransformationParametersKeyT&& key,
122 FeatureTransformationParametersValueT&& value) {
123 m_featureTransformationParametersHasBeenSet = true;
124 m_featureTransformationParameters.emplace(std::forward<FeatureTransformationParametersKeyT>(key),
125 std::forward<FeatureTransformationParametersValueT>(value));
126 return *this;
127 }
129
131
136 inline const AutoMLConfig& GetAutoMLConfig() const { return m_autoMLConfig; }
137 inline bool AutoMLConfigHasBeenSet() const { return m_autoMLConfigHasBeenSet; }
138 template <typename AutoMLConfigT = AutoMLConfig>
139 void SetAutoMLConfig(AutoMLConfigT&& value) {
140 m_autoMLConfigHasBeenSet = true;
141 m_autoMLConfig = std::forward<AutoMLConfigT>(value);
142 }
143 template <typename AutoMLConfigT = AutoMLConfig>
144 SolutionConfig& WithAutoMLConfig(AutoMLConfigT&& value) {
145 SetAutoMLConfig(std::forward<AutoMLConfigT>(value));
146 return *this;
147 }
149
151
156 inline const EventsConfig& GetEventsConfig() const { return m_eventsConfig; }
157 inline bool EventsConfigHasBeenSet() const { return m_eventsConfigHasBeenSet; }
158 template <typename EventsConfigT = EventsConfig>
159 void SetEventsConfig(EventsConfigT&& value) {
160 m_eventsConfigHasBeenSet = true;
161 m_eventsConfig = std::forward<EventsConfigT>(value);
162 }
163 template <typename EventsConfigT = EventsConfig>
164 SolutionConfig& WithEventsConfig(EventsConfigT&& value) {
165 SetEventsConfig(std::forward<EventsConfigT>(value));
166 return *this;
167 }
169
171
177 inline const OptimizationObjective& GetOptimizationObjective() const { return m_optimizationObjective; }
178 inline bool OptimizationObjectiveHasBeenSet() const { return m_optimizationObjectiveHasBeenSet; }
179 template <typename OptimizationObjectiveT = OptimizationObjective>
180 void SetOptimizationObjective(OptimizationObjectiveT&& value) {
181 m_optimizationObjectiveHasBeenSet = true;
182 m_optimizationObjective = std::forward<OptimizationObjectiveT>(value);
183 }
184 template <typename OptimizationObjectiveT = OptimizationObjective>
185 SolutionConfig& WithOptimizationObjective(OptimizationObjectiveT&& value) {
186 SetOptimizationObjective(std::forward<OptimizationObjectiveT>(value));
187 return *this;
188 }
190
192
196 inline const TrainingDataConfig& GetTrainingDataConfig() const { return m_trainingDataConfig; }
197 inline bool TrainingDataConfigHasBeenSet() const { return m_trainingDataConfigHasBeenSet; }
198 template <typename TrainingDataConfigT = TrainingDataConfig>
199 void SetTrainingDataConfig(TrainingDataConfigT&& value) {
200 m_trainingDataConfigHasBeenSet = true;
201 m_trainingDataConfig = std::forward<TrainingDataConfigT>(value);
202 }
203 template <typename TrainingDataConfigT = TrainingDataConfig>
204 SolutionConfig& WithTrainingDataConfig(TrainingDataConfigT&& value) {
205 SetTrainingDataConfig(std::forward<TrainingDataConfigT>(value));
206 return *this;
207 }
209
211
214 inline const AutoTrainingConfig& GetAutoTrainingConfig() const { return m_autoTrainingConfig; }
215 inline bool AutoTrainingConfigHasBeenSet() const { return m_autoTrainingConfigHasBeenSet; }
216 template <typename AutoTrainingConfigT = AutoTrainingConfig>
217 void SetAutoTrainingConfig(AutoTrainingConfigT&& value) {
218 m_autoTrainingConfigHasBeenSet = true;
219 m_autoTrainingConfig = std::forward<AutoTrainingConfigT>(value);
220 }
221 template <typename AutoTrainingConfigT = AutoTrainingConfig>
222 SolutionConfig& WithAutoTrainingConfig(AutoTrainingConfigT&& value) {
223 SetAutoTrainingConfig(std::forward<AutoTrainingConfigT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_eventValueThreshold;
229
230 HPOConfig m_hpoConfig;
231
232 Aws::Map<Aws::String, Aws::String> m_algorithmHyperParameters;
233
234 Aws::Map<Aws::String, Aws::String> m_featureTransformationParameters;
235
236 AutoMLConfig m_autoMLConfig;
237
238 EventsConfig m_eventsConfig;
239
240 OptimizationObjective m_optimizationObjective;
241
242 TrainingDataConfig m_trainingDataConfig;
243
244 AutoTrainingConfig m_autoTrainingConfig;
245 bool m_eventValueThresholdHasBeenSet = false;
246 bool m_hpoConfigHasBeenSet = false;
247 bool m_algorithmHyperParametersHasBeenSet = false;
248 bool m_featureTransformationParametersHasBeenSet = false;
249 bool m_autoMLConfigHasBeenSet = false;
250 bool m_eventsConfigHasBeenSet = false;
251 bool m_optimizationObjectiveHasBeenSet = false;
252 bool m_trainingDataConfigHasBeenSet = false;
253 bool m_autoTrainingConfigHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace Personalize
258} // namespace Aws
void SetOptimizationObjective(OptimizationObjectiveT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const AutoMLConfig & GetAutoMLConfig() const
SolutionConfig & WithAutoMLConfig(AutoMLConfigT &&value)
AWS_PERSONALIZE_API SolutionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const OptimizationObjective & GetOptimizationObjective() const
void SetAutoTrainingConfig(AutoTrainingConfigT &&value)
SolutionConfig & WithOptimizationObjective(OptimizationObjectiveT &&value)
void SetEventsConfig(EventsConfigT &&value)
SolutionConfig & WithAutoTrainingConfig(AutoTrainingConfigT &&value)
const Aws::String & GetEventValueThreshold() const
void SetTrainingDataConfig(TrainingDataConfigT &&value)
SolutionConfig & WithEventsConfig(EventsConfigT &&value)
const EventsConfig & GetEventsConfig() const
SolutionConfig & AddAlgorithmHyperParameters(AlgorithmHyperParametersKeyT &&key, AlgorithmHyperParametersValueT &&value)
void SetAutoMLConfig(AutoMLConfigT &&value)
SolutionConfig & WithHpoConfig(HpoConfigT &&value)
const TrainingDataConfig & GetTrainingDataConfig() const
SolutionConfig & WithAlgorithmHyperParameters(AlgorithmHyperParametersT &&value)
void SetHpoConfig(HpoConfigT &&value)
const AutoTrainingConfig & GetAutoTrainingConfig() const
AWS_PERSONALIZE_API SolutionConfig(Aws::Utils::Json::JsonView jsonValue)
void SetAlgorithmHyperParameters(AlgorithmHyperParametersT &&value)
AWS_PERSONALIZE_API SolutionConfig()=default
SolutionConfig & WithTrainingDataConfig(TrainingDataConfigT &&value)
SolutionConfig & WithFeatureTransformationParameters(FeatureTransformationParametersT &&value)
SolutionConfig & WithEventValueThreshold(EventValueThresholdT &&value)
const HPOConfig & GetHpoConfig() const
void SetEventValueThreshold(EventValueThresholdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAlgorithmHyperParameters() const
SolutionConfig & AddFeatureTransformationParameters(FeatureTransformationParametersKeyT &&key, FeatureTransformationParametersValueT &&value)
void SetFeatureTransformationParameters(FeatureTransformationParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFeatureTransformationParameters() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue