AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ItemExplorationConfigT = Aws::Map<Aws::String, Aws::String>>
54 void SetItemExplorationConfig(ItemExplorationConfigT&& value) { m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig = std::forward<ItemExplorationConfigT>(value); }
55 template<typename ItemExplorationConfigT = Aws::Map<Aws::String, Aws::String>>
56 CampaignConfig& WithItemExplorationConfig(ItemExplorationConfigT&& value) { SetItemExplorationConfig(std::forward<ItemExplorationConfigT>(value)); return *this;}
57 template<typename ItemExplorationConfigKeyT = Aws::String, typename ItemExplorationConfigValueT = Aws::String>
58 CampaignConfig& AddItemExplorationConfig(ItemExplorationConfigKeyT&& key, ItemExplorationConfigValueT&& value) {
59 m_itemExplorationConfigHasBeenSet = true; m_itemExplorationConfig.emplace(std::forward<ItemExplorationConfigKeyT>(key), std::forward<ItemExplorationConfigValueT>(value)); return *this;
60 }
62
64
76 inline bool GetEnableMetadataWithRecommendations() const { return m_enableMetadataWithRecommendations; }
77 inline bool EnableMetadataWithRecommendationsHasBeenSet() const { return m_enableMetadataWithRecommendationsHasBeenSet; }
78 inline void SetEnableMetadataWithRecommendations(bool value) { m_enableMetadataWithRecommendationsHasBeenSet = true; m_enableMetadataWithRecommendations = value; }
81
83
94 inline bool GetSyncWithLatestSolutionVersion() const { return m_syncWithLatestSolutionVersion; }
95 inline bool SyncWithLatestSolutionVersionHasBeenSet() const { return m_syncWithLatestSolutionVersionHasBeenSet; }
96 inline void SetSyncWithLatestSolutionVersion(bool value) { m_syncWithLatestSolutionVersionHasBeenSet = true; m_syncWithLatestSolutionVersion = value; }
99 private:
100
101 Aws::Map<Aws::String, Aws::String> m_itemExplorationConfig;
102 bool m_itemExplorationConfigHasBeenSet = false;
103
104 bool m_enableMetadataWithRecommendations{false};
105 bool m_enableMetadataWithRecommendationsHasBeenSet = false;
106
107 bool m_syncWithLatestSolutionVersion{false};
108 bool m_syncWithLatestSolutionVersionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Personalize
113} // namespace Aws
AWS_PERSONALIZE_API CampaignConfig(Aws::Utils::Json::JsonView jsonValue)
CampaignConfig & AddItemExplorationConfig(ItemExplorationConfigKeyT &&key, ItemExplorationConfigValueT &&value)
CampaignConfig & WithSyncWithLatestSolutionVersion(bool value)
AWS_PERSONALIZE_API CampaignConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API CampaignConfig()=default
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