AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SolutionConfig.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/model/HPOConfig.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/personalize/model/AutoMLConfig.h>
12#include <aws/personalize/model/EventsConfig.h>
13#include <aws/personalize/model/OptimizationObjective.h>
14#include <aws/personalize/model/TrainingDataConfig.h>
15#include <aws/personalize/model/AutoTrainingConfig.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Personalize
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_PERSONALIZE_API SolutionConfig() = default;
43 AWS_PERSONALIZE_API SolutionConfig(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PERSONALIZE_API SolutionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetEventValueThreshold() const { return m_eventValueThreshold; }
54 inline bool EventValueThresholdHasBeenSet() const { return m_eventValueThresholdHasBeenSet; }
55 template<typename EventValueThresholdT = Aws::String>
56 void SetEventValueThreshold(EventValueThresholdT&& value) { m_eventValueThresholdHasBeenSet = true; m_eventValueThreshold = std::forward<EventValueThresholdT>(value); }
57 template<typename EventValueThresholdT = Aws::String>
58 SolutionConfig& WithEventValueThreshold(EventValueThresholdT&& value) { SetEventValueThreshold(std::forward<EventValueThresholdT>(value)); return *this;}
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) { m_hpoConfigHasBeenSet = true; m_hpoConfig = std::forward<HpoConfigT>(value); }
69 template<typename HpoConfigT = HPOConfig>
70 SolutionConfig& WithHpoConfig(HpoConfigT&& value) { SetHpoConfig(std::forward<HpoConfigT>(value)); return *this;}
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetAlgorithmHyperParameters() const { return m_algorithmHyperParameters; }
78 inline bool AlgorithmHyperParametersHasBeenSet() const { return m_algorithmHyperParametersHasBeenSet; }
79 template<typename AlgorithmHyperParametersT = Aws::Map<Aws::String, Aws::String>>
80 void SetAlgorithmHyperParameters(AlgorithmHyperParametersT&& value) { m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters = std::forward<AlgorithmHyperParametersT>(value); }
81 template<typename AlgorithmHyperParametersT = Aws::Map<Aws::String, Aws::String>>
82 SolutionConfig& WithAlgorithmHyperParameters(AlgorithmHyperParametersT&& value) { SetAlgorithmHyperParameters(std::forward<AlgorithmHyperParametersT>(value)); return *this;}
83 template<typename AlgorithmHyperParametersKeyT = Aws::String, typename AlgorithmHyperParametersValueT = Aws::String>
84 SolutionConfig& AddAlgorithmHyperParameters(AlgorithmHyperParametersKeyT&& key, AlgorithmHyperParametersValueT&& value) {
85 m_algorithmHyperParametersHasBeenSet = true; m_algorithmHyperParameters.emplace(std::forward<AlgorithmHyperParametersKeyT>(key), std::forward<AlgorithmHyperParametersValueT>(value)); return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetFeatureTransformationParameters() const { return m_featureTransformationParameters; }
94 inline bool FeatureTransformationParametersHasBeenSet() const { return m_featureTransformationParametersHasBeenSet; }
95 template<typename FeatureTransformationParametersT = Aws::Map<Aws::String, Aws::String>>
96 void SetFeatureTransformationParameters(FeatureTransformationParametersT&& value) { m_featureTransformationParametersHasBeenSet = true; m_featureTransformationParameters = std::forward<FeatureTransformationParametersT>(value); }
97 template<typename FeatureTransformationParametersT = Aws::Map<Aws::String, Aws::String>>
98 SolutionConfig& WithFeatureTransformationParameters(FeatureTransformationParametersT&& value) { SetFeatureTransformationParameters(std::forward<FeatureTransformationParametersT>(value)); return *this;}
99 template<typename FeatureTransformationParametersKeyT = Aws::String, typename FeatureTransformationParametersValueT = Aws::String>
100 SolutionConfig& AddFeatureTransformationParameters(FeatureTransformationParametersKeyT&& key, FeatureTransformationParametersValueT&& value) {
101 m_featureTransformationParametersHasBeenSet = true; m_featureTransformationParameters.emplace(std::forward<FeatureTransformationParametersKeyT>(key), std::forward<FeatureTransformationParametersValueT>(value)); return *this;
102 }
104
106
111 inline const AutoMLConfig& GetAutoMLConfig() const { return m_autoMLConfig; }
112 inline bool AutoMLConfigHasBeenSet() const { return m_autoMLConfigHasBeenSet; }
113 template<typename AutoMLConfigT = AutoMLConfig>
114 void SetAutoMLConfig(AutoMLConfigT&& value) { m_autoMLConfigHasBeenSet = true; m_autoMLConfig = std::forward<AutoMLConfigT>(value); }
115 template<typename AutoMLConfigT = AutoMLConfig>
116 SolutionConfig& WithAutoMLConfig(AutoMLConfigT&& value) { SetAutoMLConfig(std::forward<AutoMLConfigT>(value)); return *this;}
118
120
125 inline const EventsConfig& GetEventsConfig() const { return m_eventsConfig; }
126 inline bool EventsConfigHasBeenSet() const { return m_eventsConfigHasBeenSet; }
127 template<typename EventsConfigT = EventsConfig>
128 void SetEventsConfig(EventsConfigT&& value) { m_eventsConfigHasBeenSet = true; m_eventsConfig = std::forward<EventsConfigT>(value); }
129 template<typename EventsConfigT = EventsConfig>
130 SolutionConfig& WithEventsConfig(EventsConfigT&& value) { SetEventsConfig(std::forward<EventsConfigT>(value)); return *this;}
132
134
140 inline const OptimizationObjective& GetOptimizationObjective() const { return m_optimizationObjective; }
141 inline bool OptimizationObjectiveHasBeenSet() const { return m_optimizationObjectiveHasBeenSet; }
142 template<typename OptimizationObjectiveT = OptimizationObjective>
143 void SetOptimizationObjective(OptimizationObjectiveT&& value) { m_optimizationObjectiveHasBeenSet = true; m_optimizationObjective = std::forward<OptimizationObjectiveT>(value); }
144 template<typename OptimizationObjectiveT = OptimizationObjective>
145 SolutionConfig& WithOptimizationObjective(OptimizationObjectiveT&& value) { SetOptimizationObjective(std::forward<OptimizationObjectiveT>(value)); return *this;}
147
149
153 inline const TrainingDataConfig& GetTrainingDataConfig() const { return m_trainingDataConfig; }
154 inline bool TrainingDataConfigHasBeenSet() const { return m_trainingDataConfigHasBeenSet; }
155 template<typename TrainingDataConfigT = TrainingDataConfig>
156 void SetTrainingDataConfig(TrainingDataConfigT&& value) { m_trainingDataConfigHasBeenSet = true; m_trainingDataConfig = std::forward<TrainingDataConfigT>(value); }
157 template<typename TrainingDataConfigT = TrainingDataConfig>
158 SolutionConfig& WithTrainingDataConfig(TrainingDataConfigT&& value) { SetTrainingDataConfig(std::forward<TrainingDataConfigT>(value)); return *this;}
160
162
165 inline const AutoTrainingConfig& GetAutoTrainingConfig() const { return m_autoTrainingConfig; }
166 inline bool AutoTrainingConfigHasBeenSet() const { return m_autoTrainingConfigHasBeenSet; }
167 template<typename AutoTrainingConfigT = AutoTrainingConfig>
168 void SetAutoTrainingConfig(AutoTrainingConfigT&& value) { m_autoTrainingConfigHasBeenSet = true; m_autoTrainingConfig = std::forward<AutoTrainingConfigT>(value); }
169 template<typename AutoTrainingConfigT = AutoTrainingConfig>
170 SolutionConfig& WithAutoTrainingConfig(AutoTrainingConfigT&& value) { SetAutoTrainingConfig(std::forward<AutoTrainingConfigT>(value)); return *this;}
172 private:
173
174 Aws::String m_eventValueThreshold;
175 bool m_eventValueThresholdHasBeenSet = false;
176
177 HPOConfig m_hpoConfig;
178 bool m_hpoConfigHasBeenSet = false;
179
180 Aws::Map<Aws::String, Aws::String> m_algorithmHyperParameters;
181 bool m_algorithmHyperParametersHasBeenSet = false;
182
183 Aws::Map<Aws::String, Aws::String> m_featureTransformationParameters;
184 bool m_featureTransformationParametersHasBeenSet = false;
185
186 AutoMLConfig m_autoMLConfig;
187 bool m_autoMLConfigHasBeenSet = false;
188
189 EventsConfig m_eventsConfig;
190 bool m_eventsConfigHasBeenSet = false;
191
192 OptimizationObjective m_optimizationObjective;
193 bool m_optimizationObjectiveHasBeenSet = false;
194
195 TrainingDataConfig m_trainingDataConfig;
196 bool m_trainingDataConfigHasBeenSet = false;
197
198 AutoTrainingConfig m_autoTrainingConfig;
199 bool m_autoTrainingConfigHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Personalize
204} // 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