AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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/EventsConfig.h>
12#include <aws/customer-profiles/model/InferenceConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles {
24namespace Model {
25
33 public:
34 AWS_CUSTOMERPROFILES_API RecommenderConfig() = default;
35 AWS_CUSTOMERPROFILES_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API RecommenderConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const EventsConfig& GetEventsConfig() const { return m_eventsConfig; }
44 inline bool EventsConfigHasBeenSet() const { return m_eventsConfigHasBeenSet; }
45 template <typename EventsConfigT = EventsConfig>
46 void SetEventsConfig(EventsConfigT&& value) {
47 m_eventsConfigHasBeenSet = true;
48 m_eventsConfig = std::forward<EventsConfigT>(value);
49 }
50 template <typename EventsConfigT = EventsConfig>
51 RecommenderConfig& WithEventsConfig(EventsConfigT&& value) {
52 SetEventsConfig(std::forward<EventsConfigT>(value));
53 return *this;
54 }
56
58
62 inline int GetTrainingFrequency() const { return m_trainingFrequency; }
63 inline bool TrainingFrequencyHasBeenSet() const { return m_trainingFrequencyHasBeenSet; }
64 inline void SetTrainingFrequency(int value) {
65 m_trainingFrequencyHasBeenSet = true;
66 m_trainingFrequency = value;
67 }
70 return *this;
71 }
73
75
79 inline const InferenceConfig& GetInferenceConfig() const { return m_inferenceConfig; }
80 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
81 template <typename InferenceConfigT = InferenceConfig>
82 void SetInferenceConfig(InferenceConfigT&& value) {
83 m_inferenceConfigHasBeenSet = true;
84 m_inferenceConfig = std::forward<InferenceConfigT>(value);
85 }
86 template <typename InferenceConfigT = InferenceConfig>
87 RecommenderConfig& WithInferenceConfig(InferenceConfigT&& value) {
88 SetInferenceConfig(std::forward<InferenceConfigT>(value));
89 return *this;
90 }
92
94
105 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIncludedColumns() const { return m_includedColumns; }
106 inline bool IncludedColumnsHasBeenSet() const { return m_includedColumnsHasBeenSet; }
107 template <typename IncludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
108 void SetIncludedColumns(IncludedColumnsT&& value) {
109 m_includedColumnsHasBeenSet = true;
110 m_includedColumns = std::forward<IncludedColumnsT>(value);
111 }
112 template <typename IncludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
113 RecommenderConfig& WithIncludedColumns(IncludedColumnsT&& value) {
114 SetIncludedColumns(std::forward<IncludedColumnsT>(value));
115 return *this;
116 }
117 template <typename IncludedColumnsKeyT = Aws::String, typename IncludedColumnsValueT = Aws::Vector<Aws::String>>
118 RecommenderConfig& AddIncludedColumns(IncludedColumnsKeyT&& key, IncludedColumnsValueT&& value) {
119 m_includedColumnsHasBeenSet = true;
120 m_includedColumns.emplace(std::forward<IncludedColumnsKeyT>(key), std::forward<IncludedColumnsValueT>(value));
121 return *this;
122 }
124
126
137 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetExcludedColumns() const { return m_excludedColumns; }
138 inline bool ExcludedColumnsHasBeenSet() const { return m_excludedColumnsHasBeenSet; }
139 template <typename ExcludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
140 void SetExcludedColumns(ExcludedColumnsT&& value) {
141 m_excludedColumnsHasBeenSet = true;
142 m_excludedColumns = std::forward<ExcludedColumnsT>(value);
143 }
144 template <typename ExcludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
145 RecommenderConfig& WithExcludedColumns(ExcludedColumnsT&& value) {
146 SetExcludedColumns(std::forward<ExcludedColumnsT>(value));
147 return *this;
148 }
149 template <typename ExcludedColumnsKeyT = Aws::String, typename ExcludedColumnsValueT = Aws::Vector<Aws::String>>
150 RecommenderConfig& AddExcludedColumns(ExcludedColumnsKeyT&& key, ExcludedColumnsValueT&& value) {
151 m_excludedColumnsHasBeenSet = true;
152 m_excludedColumns.emplace(std::forward<ExcludedColumnsKeyT>(key), std::forward<ExcludedColumnsValueT>(value));
153 return *this;
154 }
156 private:
157 EventsConfig m_eventsConfig;
158
159 int m_trainingFrequency{0};
160
161 InferenceConfig m_inferenceConfig;
162
164
166 bool m_eventsConfigHasBeenSet = false;
167 bool m_trainingFrequencyHasBeenSet = false;
168 bool m_inferenceConfigHasBeenSet = false;
169 bool m_includedColumnsHasBeenSet = false;
170 bool m_excludedColumnsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CustomerProfiles
175} // namespace Aws
RecommenderConfig & WithIncludedColumns(IncludedColumnsT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInferenceConfig(InferenceConfigT &&value)
AWS_CUSTOMERPROFILES_API RecommenderConfig()=default
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIncludedColumns() const
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)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue