AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
RecommendationDiversityConfig.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/customer-profiles/CustomerProfiles_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API RecommendationDiversityConfig() = default;
32 AWS_CUSTOMERPROFILES_API RecommendationDiversityConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
47 SetEnabled(value);
48 return *this;
49 }
51
53
59 inline const Aws::Map<Aws::String, int>& GetValues() const { return m_values; }
60 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
61 template <typename ValuesT = Aws::Map<Aws::String, int>>
62 void SetValues(ValuesT&& value) {
63 m_valuesHasBeenSet = true;
64 m_values = std::forward<ValuesT>(value);
65 }
66 template <typename ValuesT = Aws::Map<Aws::String, int>>
68 SetValues(std::forward<ValuesT>(value));
69 return *this;
70 }
72 m_valuesHasBeenSet = true;
73 m_values.emplace(key, value);
74 return *this;
75 }
77 private:
78 bool m_enabled{false};
79
81 bool m_enabledHasBeenSet = false;
82 bool m_valuesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CustomerProfiles
87} // namespace Aws
AWS_CUSTOMERPROFILES_API RecommendationDiversityConfig()=default
AWS_CUSTOMERPROFILES_API RecommendationDiversityConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationDiversityConfig & AddValues(Aws::String key, int value)
RecommendationDiversityConfig & WithValues(ValuesT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API RecommendationDiversityConfig(Aws::Utils::Json::JsonView jsonValue)
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