AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CampaignConfig.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/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/RankingInfluenceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize {
22namespace Model {
23
30 public:
31 AWS_PERSONALIZE_API CampaignConfig() = default;
32 AWS_PERSONALIZE_API CampaignConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PERSONALIZE_API CampaignConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline const Aws::Map<Aws::String, Aws::String>& GetItemExplorationConfig() const { return m_itemExplorationConfig; }
47 inline bool ItemExplorationConfigHasBeenSet() const { return m_itemExplorationConfigHasBeenSet; }
48 template <typename ItemExplorationConfigT = Aws::Map<Aws::String, Aws::String>>
49 void SetItemExplorationConfig(ItemExplorationConfigT&& value) {
50 m_itemExplorationConfigHasBeenSet = true;
51 m_itemExplorationConfig = std::forward<ItemExplorationConfigT>(value);
52 }
53 template <typename ItemExplorationConfigT = Aws::Map<Aws::String, Aws::String>>
54 CampaignConfig& WithItemExplorationConfig(ItemExplorationConfigT&& value) {
55 SetItemExplorationConfig(std::forward<ItemExplorationConfigT>(value));
56 return *this;
57 }
58 template <typename ItemExplorationConfigKeyT = Aws::String, typename ItemExplorationConfigValueT = Aws::String>
59 CampaignConfig& AddItemExplorationConfig(ItemExplorationConfigKeyT&& key, ItemExplorationConfigValueT&& value) {
60 m_itemExplorationConfigHasBeenSet = true;
61 m_itemExplorationConfig.emplace(std::forward<ItemExplorationConfigKeyT>(key), std::forward<ItemExplorationConfigValueT>(value));
62 return *this;
63 }
65
67
79 inline bool GetEnableMetadataWithRecommendations() const { return m_enableMetadataWithRecommendations; }
80 inline bool EnableMetadataWithRecommendationsHasBeenSet() const { return m_enableMetadataWithRecommendationsHasBeenSet; }
81 inline void SetEnableMetadataWithRecommendations(bool value) {
82 m_enableMetadataWithRecommendationsHasBeenSet = true;
83 m_enableMetadataWithRecommendations = value;
84 }
87 return *this;
88 }
90
92
103 inline bool GetSyncWithLatestSolutionVersion() const { return m_syncWithLatestSolutionVersion; }
104 inline bool SyncWithLatestSolutionVersionHasBeenSet() const { return m_syncWithLatestSolutionVersionHasBeenSet; }
105 inline void SetSyncWithLatestSolutionVersion(bool value) {
106 m_syncWithLatestSolutionVersionHasBeenSet = true;
107 m_syncWithLatestSolutionVersion = value;
108 }
111 return *this;
112 }
114
116
123 inline const Aws::Map<RankingInfluenceType, double>& GetRankingInfluence() const { return m_rankingInfluence; }
124 inline bool RankingInfluenceHasBeenSet() const { return m_rankingInfluenceHasBeenSet; }
125 template <typename RankingInfluenceT = Aws::Map<RankingInfluenceType, double>>
126 void SetRankingInfluence(RankingInfluenceT&& value) {
127 m_rankingInfluenceHasBeenSet = true;
128 m_rankingInfluence = std::forward<RankingInfluenceT>(value);
129 }
130 template <typename RankingInfluenceT = Aws::Map<RankingInfluenceType, double>>
131 CampaignConfig& WithRankingInfluence(RankingInfluenceT&& value) {
132 SetRankingInfluence(std::forward<RankingInfluenceT>(value));
133 return *this;
134 }
136 m_rankingInfluenceHasBeenSet = true;
137 m_rankingInfluence.emplace(key, value);
138 return *this;
139 }
141 private:
142 Aws::Map<Aws::String, Aws::String> m_itemExplorationConfig;
143
144 bool m_enableMetadataWithRecommendations{false};
145
146 bool m_syncWithLatestSolutionVersion{false};
147
149 bool m_itemExplorationConfigHasBeenSet = false;
150 bool m_enableMetadataWithRecommendationsHasBeenSet = false;
151 bool m_syncWithLatestSolutionVersionHasBeenSet = false;
152 bool m_rankingInfluenceHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Personalize
157} // namespace Aws
AWS_PERSONALIZE_API CampaignConfig(Aws::Utils::Json::JsonView jsonValue)
CampaignConfig & AddRankingInfluence(RankingInfluenceType key, double value)
CampaignConfig & AddItemExplorationConfig(ItemExplorationConfigKeyT &&key, ItemExplorationConfigValueT &&value)
void SetRankingInfluence(RankingInfluenceT &&value)
CampaignConfig & WithSyncWithLatestSolutionVersion(bool value)
AWS_PERSONALIZE_API CampaignConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API CampaignConfig()=default
const Aws::Map< RankingInfluenceType, double > & GetRankingInfluence() const
CampaignConfig & WithRankingInfluence(RankingInfluenceT &&value)
void SetItemExplorationConfig(ItemExplorationConfigT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetItemExplorationConfig() const
void SetEnableMetadataWithRecommendations(bool value)
CampaignConfig & WithEnableMetadataWithRecommendations(bool value)
CampaignConfig & WithItemExplorationConfig(ItemExplorationConfigT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue