AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
29 public:
30 AWS_CUSTOMERPROFILES_API RecommenderConfig() = default;
31 AWS_CUSTOMERPROFILES_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API RecommenderConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const EventsConfig& GetEventsConfig() const { return m_eventsConfig; }
40 inline bool EventsConfigHasBeenSet() const { return m_eventsConfigHasBeenSet; }
41 template <typename EventsConfigT = EventsConfig>
42 void SetEventsConfig(EventsConfigT&& value) {
43 m_eventsConfigHasBeenSet = true;
44 m_eventsConfig = std::forward<EventsConfigT>(value);
45 }
46 template <typename EventsConfigT = EventsConfig>
47 RecommenderConfig& WithEventsConfig(EventsConfigT&& value) {
48 SetEventsConfig(std::forward<EventsConfigT>(value));
49 return *this;
50 }
52
54
57 inline int GetTrainingFrequency() const { return m_trainingFrequency; }
58 inline bool TrainingFrequencyHasBeenSet() const { return m_trainingFrequencyHasBeenSet; }
59 inline void SetTrainingFrequency(int value) {
60 m_trainingFrequencyHasBeenSet = true;
61 m_trainingFrequency = value;
62 }
65 return *this;
66 }
68 private:
69 EventsConfig m_eventsConfig;
70
71 int m_trainingFrequency{0};
72 bool m_eventsConfigHasBeenSet = false;
73 bool m_trainingFrequencyHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CustomerProfiles
78} // namespace Aws
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API RecommenderConfig()=default
AWS_CUSTOMERPROFILES_API RecommenderConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommenderConfig & WithTrainingFrequency(int value)
AWS_CUSTOMERPROFILES_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue)
RecommenderConfig & WithEventsConfig(EventsConfigT &&value)
Aws::Utils::Json::JsonValue JsonValue