AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CampaignConfig.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Personalize
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PERSONALIZE_API CampaignConfig();
36 AWS_PERSONALIZE_API CampaignConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PERSONALIZE_API CampaignConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
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 CampaignConfig& AddItemExplorationConfig(const Aws::String& key, const Aws::String& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, value); return *this; }
58 inline CampaignConfig& AddItemExplorationConfig(Aws::String&& key, const Aws::String& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::move(key), value); return *this; }
59 inline CampaignConfig& AddItemExplorationConfig(const Aws::String& key, Aws::String&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, std::move(value)); return *this; }
60 inline CampaignConfig& AddItemExplorationConfig(Aws::String&& key, Aws::String&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::move(key), std::move(value)); return *this; }
61 inline CampaignConfig& AddItemExplorationConfig(const char* key, Aws::String&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, std::move(value)); return *this; }
62 inline CampaignConfig& AddItemExplorationConfig(Aws::String&& key, const char* value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::move(key), value); return *this; }
63 inline CampaignConfig& AddItemExplorationConfig(const char* key, const char* value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(key, value); return *this; }
65
67
79 inline bool GetEnableMetadataWithRecommendations() const{ return m_enableMetadataWithRecommendations; }
80 inline bool EnableMetadataWithRecommendationsHasBeenSet() const { return m_enableMetadataWithRecommendationsHasBeenSet; }
81 inline void SetEnableMetadataWithRecommendations(bool value) { m_enableMetadataWithRecommendationsHasBeenSet = true; m_enableMetadataWithRecommendations = value; }
84
86
97 inline bool GetSyncWithLatestSolutionVersion() const{ return m_syncWithLatestSolutionVersion; }
98 inline bool SyncWithLatestSolutionVersionHasBeenSet() const { return m_syncWithLatestSolutionVersionHasBeenSet; }
99 inline void SetSyncWithLatestSolutionVersion(bool value) { m_syncWithLatestSolutionVersionHasBeenSet = true; m_syncWithLatestSolutionVersion = value; }
102 private:
103
104 Aws::Map<Aws::String, Aws::String> m_itemExplorationConfig;
105 bool m_itemExplorationConfigHasBeenSet = false;
106
107 bool m_enableMetadataWithRecommendations;
108 bool m_enableMetadataWithRecommendationsHasBeenSet = false;
109
110 bool m_syncWithLatestSolutionVersion;
111 bool m_syncWithLatestSolutionVersionHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Personalize
116} // namespace Aws
AWS_PERSONALIZE_API CampaignConfig(Aws::Utils::Json::JsonView jsonValue)
CampaignConfig & WithItemExplorationConfig(const Aws::Map< Aws::String, Aws::String > &value)
void SetItemExplorationConfig(Aws::Map< Aws::String, Aws::String > &&value)
CampaignConfig & AddItemExplorationConfig(Aws::String &&key, Aws::String &&value)
CampaignConfig & AddItemExplorationConfig(const char *key, const char *value)
CampaignConfig & AddItemExplorationConfig(const Aws::String &key, const Aws::String &value)
CampaignConfig & AddItemExplorationConfig(const Aws::String &key, Aws::String &&value)
CampaignConfig & WithSyncWithLatestSolutionVersion(bool value)
CampaignConfig & AddItemExplorationConfig(Aws::String &&key, const Aws::String &value)
AWS_PERSONALIZE_API CampaignConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CampaignConfig & AddItemExplorationConfig(const char *key, Aws::String &&value)
void SetItemExplorationConfig(const Aws::Map< Aws::String, Aws::String > &value)
CampaignConfig & AddItemExplorationConfig(Aws::String &&key, const char *value)
CampaignConfig & WithItemExplorationConfig(Aws::Map< Aws::String, Aws::String > &&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)
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