AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetRecommendationsRequest.h
1
6#pragma once
7#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
8#include <aws/personalize-runtime/PersonalizeRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize-runtime/model/Promotion.h>
13#include <utility>
14
15namespace Aws
16{
17namespace PersonalizeRuntime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZERUNTIME_API GetRecommendationsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetRecommendations"; }
34
35 AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
44 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
45 inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
46 inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
47 inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
48 inline GetRecommendationsRequest& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
49 inline GetRecommendationsRequest& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
50 inline GetRecommendationsRequest& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
52
54
58 inline const Aws::String& GetItemId() const{ return m_itemId; }
59 inline bool ItemIdHasBeenSet() const { return m_itemIdHasBeenSet; }
60 inline void SetItemId(const Aws::String& value) { m_itemIdHasBeenSet = true; m_itemId = value; }
61 inline void SetItemId(Aws::String&& value) { m_itemIdHasBeenSet = true; m_itemId = std::move(value); }
62 inline void SetItemId(const char* value) { m_itemIdHasBeenSet = true; m_itemId.assign(value); }
63 inline GetRecommendationsRequest& WithItemId(const Aws::String& value) { SetItemId(value); return *this;}
64 inline GetRecommendationsRequest& WithItemId(Aws::String&& value) { SetItemId(std::move(value)); return *this;}
65 inline GetRecommendationsRequest& WithItemId(const char* value) { SetItemId(value); return *this;}
67
69
73 inline const Aws::String& GetUserId() const{ return m_userId; }
74 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
75 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
76 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
77 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
78 inline GetRecommendationsRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
79 inline GetRecommendationsRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
80 inline GetRecommendationsRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
82
84
89 inline int GetNumResults() const{ return m_numResults; }
90 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
91 inline void SetNumResults(int value) { m_numResultsHasBeenSet = true; m_numResults = value; }
92 inline GetRecommendationsRequest& WithNumResults(int value) { SetNumResults(value); return *this;}
94
96
102 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
103 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
104 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
105 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
107 inline GetRecommendationsRequest& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
108 inline GetRecommendationsRequest& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
109 inline GetRecommendationsRequest& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
110 inline GetRecommendationsRequest& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
111 inline GetRecommendationsRequest& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
112 inline GetRecommendationsRequest& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
113 inline GetRecommendationsRequest& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
114 inline GetRecommendationsRequest& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
116
118
125 inline const Aws::String& GetFilterArn() const{ return m_filterArn; }
126 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
127 inline void SetFilterArn(const Aws::String& value) { m_filterArnHasBeenSet = true; m_filterArn = value; }
128 inline void SetFilterArn(Aws::String&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::move(value); }
129 inline void SetFilterArn(const char* value) { m_filterArnHasBeenSet = true; m_filterArn.assign(value); }
130 inline GetRecommendationsRequest& WithFilterArn(const Aws::String& value) { SetFilterArn(value); return *this;}
131 inline GetRecommendationsRequest& WithFilterArn(Aws::String&& value) { SetFilterArn(std::move(value)); return *this;}
132 inline GetRecommendationsRequest& WithFilterArn(const char* value) { SetFilterArn(value); return *this;}
134
136
150 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const{ return m_filterValues; }
151 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
152 inline void SetFilterValues(const Aws::Map<Aws::String, Aws::String>& value) { m_filterValuesHasBeenSet = true; m_filterValues = value; }
153 inline void SetFilterValues(Aws::Map<Aws::String, Aws::String>&& value) { m_filterValuesHasBeenSet = true; m_filterValues = std::move(value); }
156 inline GetRecommendationsRequest& AddFilterValues(const Aws::String& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
157 inline GetRecommendationsRequest& AddFilterValues(Aws::String&& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
158 inline GetRecommendationsRequest& AddFilterValues(const Aws::String& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
159 inline GetRecommendationsRequest& AddFilterValues(Aws::String&& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), std::move(value)); return *this; }
160 inline GetRecommendationsRequest& AddFilterValues(const char* key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
161 inline GetRecommendationsRequest& AddFilterValues(Aws::String&& key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
162 inline GetRecommendationsRequest& AddFilterValues(const char* key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
164
166
171 inline const Aws::String& GetRecommenderArn() const{ return m_recommenderArn; }
172 inline bool RecommenderArnHasBeenSet() const { return m_recommenderArnHasBeenSet; }
173 inline void SetRecommenderArn(const Aws::String& value) { m_recommenderArnHasBeenSet = true; m_recommenderArn = value; }
174 inline void SetRecommenderArn(Aws::String&& value) { m_recommenderArnHasBeenSet = true; m_recommenderArn = std::move(value); }
175 inline void SetRecommenderArn(const char* value) { m_recommenderArnHasBeenSet = true; m_recommenderArn.assign(value); }
176 inline GetRecommendationsRequest& WithRecommenderArn(const Aws::String& value) { SetRecommenderArn(value); return *this;}
177 inline GetRecommendationsRequest& WithRecommenderArn(Aws::String&& value) { SetRecommenderArn(std::move(value)); return *this;}
178 inline GetRecommendationsRequest& WithRecommenderArn(const char* value) { SetRecommenderArn(value); return *this;}
180
182
187 inline const Aws::Vector<Promotion>& GetPromotions() const{ return m_promotions; }
188 inline bool PromotionsHasBeenSet() const { return m_promotionsHasBeenSet; }
189 inline void SetPromotions(const Aws::Vector<Promotion>& value) { m_promotionsHasBeenSet = true; m_promotions = value; }
190 inline void SetPromotions(Aws::Vector<Promotion>&& value) { m_promotionsHasBeenSet = true; m_promotions = std::move(value); }
192 inline GetRecommendationsRequest& WithPromotions(Aws::Vector<Promotion>&& value) { SetPromotions(std::move(value)); return *this;}
193 inline GetRecommendationsRequest& AddPromotions(const Promotion& value) { m_promotionsHasBeenSet = true; m_promotions.push_back(value); return *this; }
194 inline GetRecommendationsRequest& AddPromotions(Promotion&& value) { m_promotionsHasBeenSet = true; m_promotions.push_back(std::move(value)); return *this; }
196
198
211 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMetadataColumns() const{ return m_metadataColumns; }
212 inline bool MetadataColumnsHasBeenSet() const { return m_metadataColumnsHasBeenSet; }
213 inline void SetMetadataColumns(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns = value; }
214 inline void SetMetadataColumns(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns = std::move(value); }
217 inline GetRecommendationsRequest& AddMetadataColumns(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, value); return *this; }
218 inline GetRecommendationsRequest& AddMetadataColumns(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(std::move(key), value); return *this; }
219 inline GetRecommendationsRequest& AddMetadataColumns(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, std::move(value)); return *this; }
220 inline GetRecommendationsRequest& AddMetadataColumns(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(std::move(key), std::move(value)); return *this; }
221 inline GetRecommendationsRequest& AddMetadataColumns(const char* key, Aws::Vector<Aws::String>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, std::move(value)); return *this; }
222 inline GetRecommendationsRequest& AddMetadataColumns(const char* key, const Aws::Vector<Aws::String>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, value); return *this; }
224 private:
225
226 Aws::String m_campaignArn;
227 bool m_campaignArnHasBeenSet = false;
228
229 Aws::String m_itemId;
230 bool m_itemIdHasBeenSet = false;
231
232 Aws::String m_userId;
233 bool m_userIdHasBeenSet = false;
234
235 int m_numResults;
236 bool m_numResultsHasBeenSet = false;
237
239 bool m_contextHasBeenSet = false;
240
241 Aws::String m_filterArn;
242 bool m_filterArnHasBeenSet = false;
243
245 bool m_filterValuesHasBeenSet = false;
246
247 Aws::String m_recommenderArn;
248 bool m_recommenderArnHasBeenSet = false;
249
250 Aws::Vector<Promotion> m_promotions;
251 bool m_promotionsHasBeenSet = false;
252
254 bool m_metadataColumnsHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace PersonalizeRuntime
259} // namespace Aws
GetRecommendationsRequest & AddFilterValues(const Aws::String &key, Aws::String &&value)
GetRecommendationsRequest & AddFilterValues(const char *key, Aws::String &&value)
GetRecommendationsRequest & AddMetadataColumns(const Aws::String &key, Aws::Vector< Aws::String > &&value)
GetRecommendationsRequest & WithFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
GetRecommendationsRequest & WithUserId(Aws::String &&value)
GetRecommendationsRequest & WithRecommenderArn(const Aws::String &value)
GetRecommendationsRequest & AddPromotions(const Promotion &value)
GetRecommendationsRequest & WithCampaignArn(Aws::String &&value)
GetRecommendationsRequest & AddContext(Aws::String &&key, Aws::String &&value)
GetRecommendationsRequest & AddFilterValues(const Aws::String &key, const Aws::String &value)
GetRecommendationsRequest & AddContext(Aws::String &&key, const Aws::String &value)
GetRecommendationsRequest & AddMetadataColumns(const char *key, const Aws::Vector< Aws::String > &value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
GetRecommendationsRequest & WithPromotions(const Aws::Vector< Promotion > &value)
GetRecommendationsRequest & AddMetadataColumns(const char *key, Aws::Vector< Aws::String > &&value)
GetRecommendationsRequest & WithFilterArn(const Aws::String &value)
GetRecommendationsRequest & WithRecommenderArn(const char *value)
AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override
GetRecommendationsRequest & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
GetRecommendationsRequest & WithMetadataColumns(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
GetRecommendationsRequest & AddPromotions(Promotion &&value)
GetRecommendationsRequest & AddFilterValues(Aws::String &&key, const char *value)
GetRecommendationsRequest & WithFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
GetRecommendationsRequest & WithRecommenderArn(Aws::String &&value)
GetRecommendationsRequest & AddFilterValues(Aws::String &&key, Aws::String &&value)
GetRecommendationsRequest & AddContext(const char *key, const char *value)
void SetFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
GetRecommendationsRequest & WithUserId(const Aws::String &value)
void SetMetadataColumns(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
GetRecommendationsRequest & AddFilterValues(Aws::String &&key, const Aws::String &value)
GetRecommendationsRequest & WithItemId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
GetRecommendationsRequest & AddContext(const char *key, Aws::String &&value)
GetRecommendationsRequest & WithFilterArn(const char *value)
void SetMetadataColumns(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
GetRecommendationsRequest & AddMetadataColumns(const Aws::String &key, const Aws::Vector< Aws::String > &value)
GetRecommendationsRequest & WithCampaignArn(const char *value)
GetRecommendationsRequest & WithCampaignArn(const Aws::String &value)
GetRecommendationsRequest & AddMetadataColumns(Aws::String &&key, Aws::Vector< Aws::String > &&value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
GetRecommendationsRequest & WithUserId(const char *value)
GetRecommendationsRequest & WithItemId(const Aws::String &value)
GetRecommendationsRequest & AddContext(const Aws::String &key, const Aws::String &value)
GetRecommendationsRequest & AddContext(Aws::String &&key, const char *value)
GetRecommendationsRequest & AddContext(const Aws::String &key, Aws::String &&value)
GetRecommendationsRequest & AddMetadataColumns(Aws::String &&key, const Aws::Vector< Aws::String > &value)
GetRecommendationsRequest & WithFilterArn(Aws::String &&value)
GetRecommendationsRequest & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
GetRecommendationsRequest & WithMetadataColumns(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
GetRecommendationsRequest & AddFilterValues(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMetadataColumns() const
const Aws::Map< Aws::String, Aws::String > & GetFilterValues() const
GetRecommendationsRequest & WithItemId(Aws::String &&value)
void SetFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
GetRecommendationsRequest & WithPromotions(Aws::Vector< Promotion > &&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
std::vector< T, Aws::Allocator< T > > Vector