AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRecommenderConfiguration.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_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 Pinpoint
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PINPOINT_API CreateRecommenderConfiguration() = default;
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
64 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
65 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
66 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
67 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
68 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
69 CreateRecommenderConfiguration& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
70 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
71 CreateRecommenderConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
72 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
73 }
75
77
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 CreateRecommenderConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template<typename NameT = Aws::String>
99 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
100 template<typename NameT = Aws::String>
101 CreateRecommenderConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
103
105
119 inline const Aws::String& GetRecommendationProviderIdType() const { return m_recommendationProviderIdType; }
120 inline bool RecommendationProviderIdTypeHasBeenSet() const { return m_recommendationProviderIdTypeHasBeenSet; }
121 template<typename RecommendationProviderIdTypeT = Aws::String>
122 void SetRecommendationProviderIdType(RecommendationProviderIdTypeT&& value) { m_recommendationProviderIdTypeHasBeenSet = true; m_recommendationProviderIdType = std::forward<RecommendationProviderIdTypeT>(value); }
123 template<typename RecommendationProviderIdTypeT = Aws::String>
124 CreateRecommenderConfiguration& WithRecommendationProviderIdType(RecommendationProviderIdTypeT&& value) { SetRecommendationProviderIdType(std::forward<RecommendationProviderIdTypeT>(value)); return *this;}
126
128
133 inline const Aws::String& GetRecommendationProviderRoleArn() const { return m_recommendationProviderRoleArn; }
134 inline bool RecommendationProviderRoleArnHasBeenSet() const { return m_recommendationProviderRoleArnHasBeenSet; }
135 template<typename RecommendationProviderRoleArnT = Aws::String>
136 void SetRecommendationProviderRoleArn(RecommendationProviderRoleArnT&& value) { m_recommendationProviderRoleArnHasBeenSet = true; m_recommendationProviderRoleArn = std::forward<RecommendationProviderRoleArnT>(value); }
137 template<typename RecommendationProviderRoleArnT = Aws::String>
138 CreateRecommenderConfiguration& WithRecommendationProviderRoleArn(RecommendationProviderRoleArnT&& value) { SetRecommendationProviderRoleArn(std::forward<RecommendationProviderRoleArnT>(value)); return *this;}
140
142
147 inline const Aws::String& GetRecommendationProviderUri() const { return m_recommendationProviderUri; }
148 inline bool RecommendationProviderUriHasBeenSet() const { return m_recommendationProviderUriHasBeenSet; }
149 template<typename RecommendationProviderUriT = Aws::String>
150 void SetRecommendationProviderUri(RecommendationProviderUriT&& value) { m_recommendationProviderUriHasBeenSet = true; m_recommendationProviderUri = std::forward<RecommendationProviderUriT>(value); }
151 template<typename RecommendationProviderUriT = Aws::String>
152 CreateRecommenderConfiguration& WithRecommendationProviderUri(RecommendationProviderUriT&& value) { SetRecommendationProviderUri(std::forward<RecommendationProviderUriT>(value)); return *this;}
154
156
161 inline const Aws::String& GetRecommendationTransformerUri() const { return m_recommendationTransformerUri; }
162 inline bool RecommendationTransformerUriHasBeenSet() const { return m_recommendationTransformerUriHasBeenSet; }
163 template<typename RecommendationTransformerUriT = Aws::String>
164 void SetRecommendationTransformerUri(RecommendationTransformerUriT&& value) { m_recommendationTransformerUriHasBeenSet = true; m_recommendationTransformerUri = std::forward<RecommendationTransformerUriT>(value); }
165 template<typename RecommendationTransformerUriT = Aws::String>
166 CreateRecommenderConfiguration& WithRecommendationTransformerUri(RecommendationTransformerUriT&& value) { SetRecommendationTransformerUri(std::forward<RecommendationTransformerUriT>(value)); return *this;}
168
170
181 inline const Aws::String& GetRecommendationsDisplayName() const { return m_recommendationsDisplayName; }
182 inline bool RecommendationsDisplayNameHasBeenSet() const { return m_recommendationsDisplayNameHasBeenSet; }
183 template<typename RecommendationsDisplayNameT = Aws::String>
184 void SetRecommendationsDisplayName(RecommendationsDisplayNameT&& value) { m_recommendationsDisplayNameHasBeenSet = true; m_recommendationsDisplayName = std::forward<RecommendationsDisplayNameT>(value); }
185 template<typename RecommendationsDisplayNameT = Aws::String>
186 CreateRecommenderConfiguration& WithRecommendationsDisplayName(RecommendationsDisplayNameT&& value) { SetRecommendationsDisplayName(std::forward<RecommendationsDisplayNameT>(value)); return *this;}
188
190
200 inline int GetRecommendationsPerMessage() const { return m_recommendationsPerMessage; }
201 inline bool RecommendationsPerMessageHasBeenSet() const { return m_recommendationsPerMessageHasBeenSet; }
202 inline void SetRecommendationsPerMessage(int value) { m_recommendationsPerMessageHasBeenSet = true; m_recommendationsPerMessage = value; }
205 private:
206
208 bool m_attributesHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
213 Aws::String m_name;
214 bool m_nameHasBeenSet = false;
215
216 Aws::String m_recommendationProviderIdType;
217 bool m_recommendationProviderIdTypeHasBeenSet = false;
218
219 Aws::String m_recommendationProviderRoleArn;
220 bool m_recommendationProviderRoleArnHasBeenSet = false;
221
222 Aws::String m_recommendationProviderUri;
223 bool m_recommendationProviderUriHasBeenSet = false;
224
225 Aws::String m_recommendationTransformerUri;
226 bool m_recommendationTransformerUriHasBeenSet = false;
227
228 Aws::String m_recommendationsDisplayName;
229 bool m_recommendationsDisplayNameHasBeenSet = false;
230
231 int m_recommendationsPerMessage{0};
232 bool m_recommendationsPerMessageHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace Pinpoint
237} // namespace Aws
CreateRecommenderConfiguration & WithName(NameT &&value)
void SetRecommendationProviderUri(RecommendationProviderUriT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
CreateRecommenderConfiguration & WithRecommendationProviderIdType(RecommendationProviderIdTypeT &&value)
void SetRecommendationProviderIdType(RecommendationProviderIdTypeT &&value)
CreateRecommenderConfiguration & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
AWS_PINPOINT_API CreateRecommenderConfiguration()=default
CreateRecommenderConfiguration & WithRecommendationsDisplayName(RecommendationsDisplayNameT &&value)
CreateRecommenderConfiguration & WithRecommendationsPerMessage(int value)
void SetRecommendationTransformerUri(RecommendationTransformerUriT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CreateRecommenderConfiguration & WithAttributes(AttributesT &&value)
CreateRecommenderConfiguration & WithRecommendationTransformerUri(RecommendationTransformerUriT &&value)
CreateRecommenderConfiguration & WithRecommendationProviderUri(RecommendationProviderUriT &&value)
AWS_PINPOINT_API CreateRecommenderConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecommendationProviderRoleArn(RecommendationProviderRoleArnT &&value)
void SetRecommendationsDisplayName(RecommendationsDisplayNameT &&value)
AWS_PINPOINT_API CreateRecommenderConfiguration(Aws::Utils::Json::JsonView jsonValue)
CreateRecommenderConfiguration & WithRecommendationProviderRoleArn(RecommendationProviderRoleArnT &&value)
CreateRecommenderConfiguration & WithDescription(DescriptionT &&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