AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
RecommenderConfig.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/EventsConfig.h>
9#include <aws/customer-profiles/model/InferenceConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API RecommenderConfig() = default;
32 AWS_CUSTOMERPROFILES_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API RecommenderConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const EventsConfig& GetEventsConfig() const { return m_eventsConfig; }
41 inline bool EventsConfigHasBeenSet() const { return m_eventsConfigHasBeenSet; }
42 template <typename EventsConfigT = EventsConfig>
43 void SetEventsConfig(EventsConfigT&& value) {
44 m_eventsConfigHasBeenSet = true;
45 m_eventsConfig = std::forward<EventsConfigT>(value);
46 }
47 template <typename EventsConfigT = EventsConfig>
48 RecommenderConfig& WithEventsConfig(EventsConfigT&& value) {
49 SetEventsConfig(std::forward<EventsConfigT>(value));
50 return *this;
51 }
53
55
58 inline int GetTrainingFrequency() const { return m_trainingFrequency; }
59 inline bool TrainingFrequencyHasBeenSet() const { return m_trainingFrequencyHasBeenSet; }
60 inline void SetTrainingFrequency(int value) {
61 m_trainingFrequencyHasBeenSet = true;
62 m_trainingFrequency = value;
63 }
66 return *this;
67 }
69
71
75 inline const InferenceConfig& GetInferenceConfig() const { return m_inferenceConfig; }
76 inline bool InferenceConfigHasBeenSet() const { return m_inferenceConfigHasBeenSet; }
77 template <typename InferenceConfigT = InferenceConfig>
78 void SetInferenceConfig(InferenceConfigT&& value) {
79 m_inferenceConfigHasBeenSet = true;
80 m_inferenceConfig = std::forward<InferenceConfigT>(value);
81 }
82 template <typename InferenceConfigT = InferenceConfig>
83 RecommenderConfig& WithInferenceConfig(InferenceConfigT&& value) {
84 SetInferenceConfig(std::forward<InferenceConfigT>(value));
85 return *this;
86 }
88 private:
89 EventsConfig m_eventsConfig;
90
91 int m_trainingFrequency{0};
92
93 InferenceConfig m_inferenceConfig;
94 bool m_eventsConfigHasBeenSet = false;
95 bool m_trainingFrequencyHasBeenSet = false;
96 bool m_inferenceConfigHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CustomerProfiles
101} // namespace Aws
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInferenceConfig(InferenceConfigT &&value)
AWS_CUSTOMERPROFILES_API RecommenderConfig()=default
const InferenceConfig & GetInferenceConfig() const
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)
Aws::Utils::Json::JsonValue JsonValue