AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BatchInferenceJobConfig.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
31 public:
32 AWS_PERSONALIZE_API BatchInferenceJobConfig() = default;
35 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::Map<Aws::String, Aws::String>& GetItemExplorationConfig() const { return m_itemExplorationConfig; }
46 inline bool ItemExplorationConfigHasBeenSet() const { return m_itemExplorationConfigHasBeenSet; }
47 template <typename ItemExplorationConfigT = Aws::Map<Aws::String, Aws::String>>
48 void SetItemExplorationConfig(ItemExplorationConfigT&& value) {
49 m_itemExplorationConfigHasBeenSet = true;
50 m_itemExplorationConfig = std::forward<ItemExplorationConfigT>(value);
51 }
52 template <typename ItemExplorationConfigT = Aws::Map<Aws::String, Aws::String>>
53 BatchInferenceJobConfig& WithItemExplorationConfig(ItemExplorationConfigT&& value) {
54 SetItemExplorationConfig(std::forward<ItemExplorationConfigT>(value));
55 return *this;
56 }
57 template <typename ItemExplorationConfigKeyT = Aws::String, typename ItemExplorationConfigValueT = Aws::String>
58 BatchInferenceJobConfig& AddItemExplorationConfig(ItemExplorationConfigKeyT&& key, ItemExplorationConfigValueT&& value) {
59 m_itemExplorationConfigHasBeenSet = true;
60 m_itemExplorationConfig.emplace(std::forward<ItemExplorationConfigKeyT>(key), std::forward<ItemExplorationConfigValueT>(value));
61 return *this;
62 }
64
66
73 inline const Aws::Map<RankingInfluenceType, double>& GetRankingInfluence() const { return m_rankingInfluence; }
74 inline bool RankingInfluenceHasBeenSet() const { return m_rankingInfluenceHasBeenSet; }
75 template <typename RankingInfluenceT = Aws::Map<RankingInfluenceType, double>>
76 void SetRankingInfluence(RankingInfluenceT&& value) {
77 m_rankingInfluenceHasBeenSet = true;
78 m_rankingInfluence = std::forward<RankingInfluenceT>(value);
79 }
80 template <typename RankingInfluenceT = Aws::Map<RankingInfluenceType, double>>
81 BatchInferenceJobConfig& WithRankingInfluence(RankingInfluenceT&& value) {
82 SetRankingInfluence(std::forward<RankingInfluenceT>(value));
83 return *this;
84 }
86 m_rankingInfluenceHasBeenSet = true;
87 m_rankingInfluence.emplace(key, value);
88 return *this;
89 }
91 private:
92 Aws::Map<Aws::String, Aws::String> m_itemExplorationConfig;
93
95 bool m_itemExplorationConfigHasBeenSet = false;
96 bool m_rankingInfluenceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Personalize
101} // namespace Aws
BatchInferenceJobConfig & AddRankingInfluence(RankingInfluenceType key, double value)
void SetItemExplorationConfig(ItemExplorationConfigT &&value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
BatchInferenceJobConfig & AddItemExplorationConfig(ItemExplorationConfigKeyT &&key, ItemExplorationConfigValueT &&value)
AWS_PERSONALIZE_API BatchInferenceJobConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_PERSONALIZE_API BatchInferenceJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetItemExplorationConfig() const
BatchInferenceJobConfig & WithItemExplorationConfig(ItemExplorationConfigT &&value)
const Aws::Map< RankingInfluenceType, double > & GetRankingInfluence() const
BatchInferenceJobConfig & WithRankingInfluence(RankingInfluenceT &&value)
AWS_PERSONALIZE_API BatchInferenceJobConfig()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue