AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
RecommenderConfig.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
31 public:
32 AWS_CONNECT_API RecommenderConfig() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDomainName() const { return m_domainName; }
42 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
43 template <typename DomainNameT = Aws::String>
44 void SetDomainName(DomainNameT&& value) {
45 m_domainNameHasBeenSet = true;
46 m_domainName = std::forward<DomainNameT>(value);
47 }
48 template <typename DomainNameT = Aws::String>
49 RecommenderConfig& WithDomainName(DomainNameT&& value) {
50 SetDomainName(std::forward<DomainNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRecommenderName() const { return m_recommenderName; }
60 inline bool RecommenderNameHasBeenSet() const { return m_recommenderNameHasBeenSet; }
61 template <typename RecommenderNameT = Aws::String>
62 void SetRecommenderName(RecommenderNameT&& value) {
63 m_recommenderNameHasBeenSet = true;
64 m_recommenderName = std::forward<RecommenderNameT>(value);
65 }
66 template <typename RecommenderNameT = Aws::String>
67 RecommenderConfig& WithRecommenderName(RecommenderNameT&& value) {
68 SetRecommenderName(std::forward<RecommenderNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
79 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
80 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
81 void SetContext(ContextT&& value) {
82 m_contextHasBeenSet = true;
83 m_context = std::forward<ContextT>(value);
84 }
85 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
86 RecommenderConfig& WithContext(ContextT&& value) {
87 SetContext(std::forward<ContextT>(value));
88 return *this;
89 }
90 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
91 RecommenderConfig& AddContext(ContextKeyT&& key, ContextValueT&& value) {
92 m_contextHasBeenSet = true;
93 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_domainName;
99
100 Aws::String m_recommenderName;
101
103 bool m_domainNameHasBeenSet = false;
104 bool m_recommenderNameHasBeenSet = false;
105 bool m_contextHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Connect
110} // namespace Aws
void SetRecommenderName(RecommenderNameT &&value)
AWS_CONNECT_API RecommenderConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
void SetDomainName(DomainNameT &&value)
RecommenderConfig & WithDomainName(DomainNameT &&value)
RecommenderConfig & WithContext(ContextT &&value)
AWS_CONNECT_API RecommenderConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDomainName() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API RecommenderConfig()=default
RecommenderConfig & AddContext(ContextKeyT &&key, ContextValueT &&value)
RecommenderConfig & WithRecommenderName(RecommenderNameT &&value)
const Aws::String & GetRecommenderName() const
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