AWS SDK for C++

AWS SDK for C++ Version 1.11.798

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
61 inline int GetTrainingFrequency() const { return m_trainingFrequency; }
62 inline bool TrainingFrequencyHasBeenSet() const { return m_trainingFrequencyHasBeenSet; }
63 inline void SetTrainingFrequency(int value) {
64 m_trainingFrequencyHasBeenSet = true;
65 m_trainingFrequency = value;
66 }
69 return *this;
70 }
72
74
78 inline const InferenceConfig& GetInferenceConfig() const { return m_inferenceConfig; }
79 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
80 template <typename InferenceConfigT = InferenceConfig>
81 void SetInferenceConfig(InferenceConfigT&& value) {
82 m_inferenceConfigHasBeenSet = true;
83 m_inferenceConfig = std::forward<InferenceConfigT>(value);
84 }
85 template <typename InferenceConfigT = InferenceConfig>
86 RecommenderConfig& WithInferenceConfig(InferenceConfigT&& value) {
87 SetInferenceConfig(std::forward<InferenceConfigT>(value));
88 return *this;
89 }
91
93
101 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIncludedColumns() const { return m_includedColumns; }
102 inline bool IncludedColumnsHasBeenSet() const { return m_includedColumnsHasBeenSet; }
103 template <typename IncludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
104 void SetIncludedColumns(IncludedColumnsT&& value) {
105 m_includedColumnsHasBeenSet = true;
106 m_includedColumns = std::forward<IncludedColumnsT>(value);
107 }
108 template <typename IncludedColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
109 RecommenderConfig& WithIncludedColumns(IncludedColumnsT&& value) {
110 SetIncludedColumns(std::forward<IncludedColumnsT>(value));
111 return *this;
112 }
113 template <typename IncludedColumnsKeyT = Aws::String, typename IncludedColumnsValueT = Aws::Vector<Aws::String>>
114 RecommenderConfig& AddIncludedColumns(IncludedColumnsKeyT&& key, IncludedColumnsValueT&& value) {
115 m_includedColumnsHasBeenSet = true;
116 m_includedColumns.emplace(std::forward<IncludedColumnsKeyT>(key), std::forward<IncludedColumnsValueT>(value));
117 return *this;
118 }
120 private:
121 EventsConfig m_eventsConfig;
122
123 int m_trainingFrequency{0};
124
125 InferenceConfig m_inferenceConfig;
126
128 bool m_eventsConfigHasBeenSet = false;
129 bool m_trainingFrequencyHasBeenSet = false;
130 bool m_inferenceConfigHasBeenSet = false;
131 bool m_includedColumnsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace CustomerProfiles
136} // 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
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 & WithEventsConfig(EventsConfigT &&value)
void SetIncludedColumns(IncludedColumnsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue