AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetPersonalizedRankingRequest.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/personalize-runtime/PersonalizeRuntimeRequest.h>
11#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PersonalizeRuntime {
17namespace Model {
18
22 public:
23 AWS_PERSONALIZERUNTIME_API GetPersonalizedRankingRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetPersonalizedRanking"; }
30
31 AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetCampaignArn() const { return m_campaignArn; }
39 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
40 template <typename CampaignArnT = Aws::String>
41 void SetCampaignArn(CampaignArnT&& value) {
42 m_campaignArnHasBeenSet = true;
43 m_campaignArn = std::forward<CampaignArnT>(value);
44 }
45 template <typename CampaignArnT = Aws::String>
47 SetCampaignArn(std::forward<CampaignArnT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::Vector<Aws::String>& GetInputList() const { return m_inputList; }
60 inline bool InputListHasBeenSet() const { return m_inputListHasBeenSet; }
61 template <typename InputListT = Aws::Vector<Aws::String>>
62 void SetInputList(InputListT&& value) {
63 m_inputListHasBeenSet = true;
64 m_inputList = std::forward<InputListT>(value);
65 }
66 template <typename InputListT = Aws::Vector<Aws::String>>
68 SetInputList(std::forward<InputListT>(value));
69 return *this;
70 }
71 template <typename InputListT = Aws::String>
73 m_inputListHasBeenSet = true;
74 m_inputList.emplace_back(std::forward<InputListT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetUserId() const { return m_userId; }
85 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
86 template <typename UserIdT = Aws::String>
87 void SetUserId(UserIdT&& value) {
88 m_userIdHasBeenSet = true;
89 m_userId = std::forward<UserIdT>(value);
90 }
91 template <typename UserIdT = Aws::String>
93 SetUserId(std::forward<UserIdT>(value));
94 return *this;
95 }
97
99
105 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
106 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
107 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
108 void SetContext(ContextT&& value) {
109 m_contextHasBeenSet = true;
110 m_context = std::forward<ContextT>(value);
111 }
112 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
114 SetContext(std::forward<ContextT>(value));
115 return *this;
116 }
117 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
118 GetPersonalizedRankingRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
119 m_contextHasBeenSet = true;
120 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
121 return *this;
122 }
124
126
133 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
134 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
135 template <typename FilterArnT = Aws::String>
136 void SetFilterArn(FilterArnT&& value) {
137 m_filterArnHasBeenSet = true;
138 m_filterArn = std::forward<FilterArnT>(value);
139 }
140 template <typename FilterArnT = Aws::String>
142 SetFilterArn(std::forward<FilterArnT>(value));
143 return *this;
144 }
146
148
162 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const { return m_filterValues; }
163 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
164 template <typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
165 void SetFilterValues(FilterValuesT&& value) {
166 m_filterValuesHasBeenSet = true;
167 m_filterValues = std::forward<FilterValuesT>(value);
168 }
169 template <typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
171 SetFilterValues(std::forward<FilterValuesT>(value));
172 return *this;
173 }
174 template <typename FilterValuesKeyT = Aws::String, typename FilterValuesValueT = Aws::String>
175 GetPersonalizedRankingRequest& AddFilterValues(FilterValuesKeyT&& key, FilterValuesValueT&& value) {
176 m_filterValuesHasBeenSet = true;
177 m_filterValues.emplace(std::forward<FilterValuesKeyT>(key), std::forward<FilterValuesValueT>(value));
178 return *this;
179 }
181
183
193 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMetadataColumns() const { return m_metadataColumns; }
194 inline bool MetadataColumnsHasBeenSet() const { return m_metadataColumnsHasBeenSet; }
195 template <typename MetadataColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
196 void SetMetadataColumns(MetadataColumnsT&& value) {
197 m_metadataColumnsHasBeenSet = true;
198 m_metadataColumns = std::forward<MetadataColumnsT>(value);
199 }
200 template <typename MetadataColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
202 SetMetadataColumns(std::forward<MetadataColumnsT>(value));
203 return *this;
204 }
205 template <typename MetadataColumnsKeyT = Aws::String, typename MetadataColumnsValueT = Aws::Vector<Aws::String>>
206 GetPersonalizedRankingRequest& AddMetadataColumns(MetadataColumnsKeyT&& key, MetadataColumnsValueT&& value) {
207 m_metadataColumnsHasBeenSet = true;
208 m_metadataColumns.emplace(std::forward<MetadataColumnsKeyT>(key), std::forward<MetadataColumnsValueT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_campaignArn;
214
215 Aws::Vector<Aws::String> m_inputList;
216
217 Aws::String m_userId;
218
220
221 Aws::String m_filterArn;
222
224
226 bool m_campaignArnHasBeenSet = false;
227 bool m_inputListHasBeenSet = false;
228 bool m_userIdHasBeenSet = false;
229 bool m_contextHasBeenSet = false;
230 bool m_filterArnHasBeenSet = false;
231 bool m_filterValuesHasBeenSet = false;
232 bool m_metadataColumnsHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace PersonalizeRuntime
237} // namespace Aws
GetPersonalizedRankingRequest & AddFilterValues(FilterValuesKeyT &&key, FilterValuesValueT &&value)
GetPersonalizedRankingRequest & WithCampaignArn(CampaignArnT &&value)
GetPersonalizedRankingRequest & WithInputList(InputListT &&value)
GetPersonalizedRankingRequest & WithMetadataColumns(MetadataColumnsT &&value)
GetPersonalizedRankingRequest & AddInputList(InputListT &&value)
AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override
GetPersonalizedRankingRequest & WithFilterArn(FilterArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilterValues() const
AWS_PERSONALIZERUNTIME_API GetPersonalizedRankingRequest()=default
GetPersonalizedRankingRequest & AddMetadataColumns(MetadataColumnsKeyT &&key, MetadataColumnsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
GetPersonalizedRankingRequest & WithFilterValues(FilterValuesT &&value)
GetPersonalizedRankingRequest & AddContext(ContextKeyT &&key, ContextValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMetadataColumns() 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
std::vector< T, Aws::Allocator< T > > Vector