AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
RecommenderConfig.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/DiversityConfig.h>
12#include <aws/customer-profiles/model/EventsConfig.h>
13#include <aws/customer-profiles/model/InferenceConfig.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CustomerProfiles {
25namespace Model {
26
34 public:
35 AWS_CUSTOMERPROFILES_API RecommenderConfig() = default;
36 AWS_CUSTOMERPROFILES_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API RecommenderConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const EventsConfig& GetEventsConfig() const { return m_eventsConfig; }
45 inline bool EventsConfigHasBeenSet() const { return m_eventsConfigHasBeenSet; }
46 template <typename EventsConfigT = EventsConfig>
47 void SetEventsConfig(EventsConfigT&& value) {
48 m_eventsConfigHasBeenSet = true;
49 m_eventsConfig = std::forward<EventsConfigT>(value);
50 }
51 template <typename EventsConfigT = EventsConfig>
52 RecommenderConfig& WithEventsConfig(EventsConfigT&& value) {
53 SetEventsConfig(std::forward<EventsConfigT>(value));
54 return *this;
55 }
57
59
63 inline int GetTrainingFrequency() const { return m_trainingFrequency; }
64 inline bool TrainingFrequencyHasBeenSet() const { return m_trainingFrequencyHasBeenSet; }
65 inline void SetTrainingFrequency(int value) {
66 m_trainingFrequencyHasBeenSet = true;
67 m_trainingFrequency = value;
68 }
71 return *this;
72 }
74
76
80 inline const InferenceConfig& GetInferenceConfig() const { return m_inferenceConfig; }
81 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
82 template <typename InferenceConfigT = InferenceConfig>
83 void SetInferenceConfig(InferenceConfigT&& value) {
84 m_inferenceConfigHasBeenSet = true;
85 m_inferenceConfig = std::forward<InferenceConfigT>(value);
86 }
87 template <typename InferenceConfigT = InferenceConfig>
88 RecommenderConfig& WithInferenceConfig(InferenceConfigT&& value) {
89 SetInferenceConfig(std::forward<InferenceConfigT>(value));
90 return *this;
91 }
93
95
106 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIncludedColumns() const { return m_includedColumns; }
107 inline bool IncludedColumnsHasBeenSet() const { return m_includedColumnsHasBeenSet; }
108 template <typename IncludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
109 void SetIncludedColumns(IncludedColumnsT&& value) {
110 m_includedColumnsHasBeenSet = true;
111 m_includedColumns = std::forward<IncludedColumnsT>(value);
112 }
113 template <typename IncludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
114 RecommenderConfig& WithIncludedColumns(IncludedColumnsT&& value) {
115 SetIncludedColumns(std::forward<IncludedColumnsT>(value));
116 return *this;
117 }
118 template <typename IncludedColumnsKeyT = Aws::String, typename IncludedColumnsValueT = Aws::Vector<Aws::String>>
119 RecommenderConfig& AddIncludedColumns(IncludedColumnsKeyT&& key, IncludedColumnsValueT&& value) {
120 m_includedColumnsHasBeenSet = true;
121 m_includedColumns.emplace(std::forward<IncludedColumnsKeyT>(key), std::forward<IncludedColumnsValueT>(value));
122 return *this;
123 }
125
127
138 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetExcludedColumns() const { return m_excludedColumns; }
139 inline bool ExcludedColumnsHasBeenSet() const { return m_excludedColumnsHasBeenSet; }
140 template <typename ExcludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
141 void SetExcludedColumns(ExcludedColumnsT&& value) {
142 m_excludedColumnsHasBeenSet = true;
143 m_excludedColumns = std::forward<ExcludedColumnsT>(value);
144 }
145 template <typename ExcludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
146 RecommenderConfig& WithExcludedColumns(ExcludedColumnsT&& value) {
147 SetExcludedColumns(std::forward<ExcludedColumnsT>(value));
148 return *this;
149 }
150 template <typename ExcludedColumnsKeyT = Aws::String, typename ExcludedColumnsValueT = Aws::Vector<Aws::String>>
151 RecommenderConfig& AddExcludedColumns(ExcludedColumnsKeyT&& key, ExcludedColumnsValueT&& value) {
152 m_excludedColumnsHasBeenSet = true;
153 m_excludedColumns.emplace(std::forward<ExcludedColumnsKeyT>(key), std::forward<ExcludedColumnsValueT>(value));
154 return *this;
155 }
157
159
164 inline const DiversityConfig& GetDiversityConfig() const { return m_diversityConfig; }
165 inline bool DiversityConfigHasBeenSet() const { return m_diversityConfigHasBeenSet; }
166 template <typename DiversityConfigT = DiversityConfig>
167 void SetDiversityConfig(DiversityConfigT&& value) {
168 m_diversityConfigHasBeenSet = true;
169 m_diversityConfig = std::forward<DiversityConfigT>(value);
170 }
171 template <typename DiversityConfigT = DiversityConfig>
172 RecommenderConfig& WithDiversityConfig(DiversityConfigT&& value) {
173 SetDiversityConfig(std::forward<DiversityConfigT>(value));
174 return *this;
175 }
177 private:
178 EventsConfig m_eventsConfig;
179
180 int m_trainingFrequency{0};
181
182 InferenceConfig m_inferenceConfig;
183
185
187
188 DiversityConfig m_diversityConfig;
189 bool m_eventsConfigHasBeenSet = false;
190 bool m_trainingFrequencyHasBeenSet = false;
191 bool m_inferenceConfigHasBeenSet = false;
192 bool m_includedColumnsHasBeenSet = false;
193 bool m_excludedColumnsHasBeenSet = false;
194 bool m_diversityConfigHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace CustomerProfiles
199} // namespace Aws
RecommenderConfig & WithIncludedColumns(IncludedColumnsT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInferenceConfig(InferenceConfigT &&value)
AWS_CUSTOMERPROFILES_API RecommenderConfig()=default
void SetDiversityConfig(DiversityConfigT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIncludedColumns() const
RecommenderConfig & WithDiversityConfig(DiversityConfigT &&value)
RecommenderConfig & AddExcludedColumns(ExcludedColumnsKeyT &&key, ExcludedColumnsValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetExcludedColumns() const
const InferenceConfig & GetInferenceConfig() const
RecommenderConfig & AddIncludedColumns(IncludedColumnsKeyT &&key, IncludedColumnsValueT &&value)
AWS_CUSTOMERPROFILES_API RecommenderConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommenderConfig & WithTrainingFrequency(int value)
RecommenderConfig & WithInferenceConfig(InferenceConfigT &&value)
AWS_CUSTOMERPROFILES_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue)
RecommenderConfig & WithExcludedColumns(ExcludedColumnsT &&value)
RecommenderConfig & WithEventsConfig(EventsConfigT &&value)
void SetIncludedColumns(IncludedColumnsT &&value)
void SetExcludedColumns(ExcludedColumnsT &&value)
const DiversityConfig & GetDiversityConfig() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue