AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommenderConfig.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/personalize/model/TrainingDataConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_PERSONALIZE_API RecommenderConfig();
37 AWS_PERSONALIZE_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline const Aws::Map<Aws::String, Aws::String>& GetItemExplorationConfig() const{ return m_itemExplorationConfig; }
52 inline bool ItemExplorationConfigHasBeenSet() const { return m_itemExplorationConfigHasBeenSet; }
53 inline void SetItemExplorationConfig(const Aws::Map<Aws::String, Aws::String>& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig = value; }
54 inline void SetItemExplorationConfig(Aws::Map<Aws::String, Aws::String>&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig = std::move(value); }
57 inline RecommenderConfig& AddItemExplorationConfig(const Aws::String& key, const Aws::String& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, value); return *this; }
58 inline RecommenderConfig& AddItemExplorationConfig(Aws::String&& key, const Aws::String& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::move(key), value); return *this; }
59 inline RecommenderConfig& AddItemExplorationConfig(const Aws::String& key, Aws::String&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, std::move(value)); return *this; }
60 inline RecommenderConfig& AddItemExplorationConfig(Aws::String&& key, Aws::String&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::move(key), std::move(value)); return *this; }
61 inline RecommenderConfig& AddItemExplorationConfig(const char* key, Aws::String&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, std::move(value)); return *this; }
62 inline RecommenderConfig& AddItemExplorationConfig(Aws::String&& key, const char* value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::move(key), value); return *this; }
63 inline RecommenderConfig& AddItemExplorationConfig(const char* key, const char* value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, value); return *this; }
65
67
75 inline int GetMinRecommendationRequestsPerSecond() const{ return m_minRecommendationRequestsPerSecond; }
76 inline bool MinRecommendationRequestsPerSecondHasBeenSet() const { return m_minRecommendationRequestsPerSecondHasBeenSet; }
77 inline void SetMinRecommendationRequestsPerSecond(int value) { m_minRecommendationRequestsPerSecondHasBeenSet = true; m_minRecommendationRequestsPerSecond = value; }
80
82
86 inline const TrainingDataConfig& GetTrainingDataConfig() const{ return m_trainingDataConfig; }
87 inline bool TrainingDataConfigHasBeenSet() const { return m_trainingDataConfigHasBeenSet; }
88 inline void SetTrainingDataConfig(const TrainingDataConfig& value) { m_trainingDataConfigHasBeenSet = true; m_trainingDataConfig = value; }
89 inline void SetTrainingDataConfig(TrainingDataConfig&& value) { m_trainingDataConfigHasBeenSet = true; m_trainingDataConfig = std::move(value); }
91 inline RecommenderConfig& WithTrainingDataConfig(TrainingDataConfig&& value) { SetTrainingDataConfig(std::move(value)); return *this;}
93
95
107 inline bool GetEnableMetadataWithRecommendations() const{ return m_enableMetadataWithRecommendations; }
108 inline bool EnableMetadataWithRecommendationsHasBeenSet() const { return m_enableMetadataWithRecommendationsHasBeenSet; }
109 inline void SetEnableMetadataWithRecommendations(bool value) { m_enableMetadataWithRecommendationsHasBeenSet = true; m_enableMetadataWithRecommendations = value; }
112 private:
113
114 Aws::Map<Aws::String, Aws::String> m_itemExplorationConfig;
115 bool m_itemExplorationConfigHasBeenSet = false;
116
117 int m_minRecommendationRequestsPerSecond;
118 bool m_minRecommendationRequestsPerSecondHasBeenSet = false;
119
120 TrainingDataConfig m_trainingDataConfig;
121 bool m_trainingDataConfigHasBeenSet = false;
122
123 bool m_enableMetadataWithRecommendations;
124 bool m_enableMetadataWithRecommendationsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Personalize
129} // namespace Aws
AWS_PERSONALIZE_API RecommenderConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommenderConfig & WithTrainingDataConfig(TrainingDataConfig &&value)
RecommenderConfig & AddItemExplorationConfig(Aws::String &&key, const char *value)
RecommenderConfig & WithEnableMetadataWithRecommendations(bool value)
const TrainingDataConfig & GetTrainingDataConfig() const
void SetTrainingDataConfig(TrainingDataConfig &&value)
RecommenderConfig & WithItemExplorationConfig(Aws::Map< Aws::String, Aws::String > &&value)
RecommenderConfig & WithTrainingDataConfig(const TrainingDataConfig &value)
RecommenderConfig & AddItemExplorationConfig(const char *key, Aws::String &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
RecommenderConfig & AddItemExplorationConfig(Aws::String &&key, const Aws::String &value)
RecommenderConfig & AddItemExplorationConfig(const Aws::String &key, Aws::String &&value)
RecommenderConfig & AddItemExplorationConfig(const char *key, const char *value)
void SetTrainingDataConfig(const TrainingDataConfig &value)
RecommenderConfig & AddItemExplorationConfig(const Aws::String &key, const Aws::String &value)
RecommenderConfig & WithMinRecommendationRequestsPerSecond(int value)
void SetItemExplorationConfig(const Aws::Map< Aws::String, Aws::String > &value)
RecommenderConfig & AddItemExplorationConfig(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetItemExplorationConfig() const
AWS_PERSONALIZE_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue)
RecommenderConfig & WithItemExplorationConfig(const Aws::Map< Aws::String, Aws::String > &value)
void SetItemExplorationConfig(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue