AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPersonalizedRankingRequest.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/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PersonalizeRuntime
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZERUNTIME_API GetPersonalizedRankingRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetPersonalizedRanking"; }
33
34 AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetCampaignArn() const{ return m_campaignArn; }
43 inline bool CampaignArnHasBeenSet() const { return m_campaignArnHasBeenSet; }
44 inline void SetCampaignArn(const Aws::String& value) { m_campaignArnHasBeenSet = true; m_campaignArn = value; }
45 inline void SetCampaignArn(Aws::String&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::move(value); }
46 inline void SetCampaignArn(const char* value) { m_campaignArnHasBeenSet = true; m_campaignArn.assign(value); }
47 inline GetPersonalizedRankingRequest& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
48 inline GetPersonalizedRankingRequest& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
49 inline GetPersonalizedRankingRequest& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
51
53
59 inline const Aws::Vector<Aws::String>& GetInputList() const{ return m_inputList; }
60 inline bool InputListHasBeenSet() const { return m_inputListHasBeenSet; }
61 inline void SetInputList(const Aws::Vector<Aws::String>& value) { m_inputListHasBeenSet = true; m_inputList = value; }
62 inline void SetInputList(Aws::Vector<Aws::String>&& value) { m_inputListHasBeenSet = true; m_inputList = std::move(value); }
64 inline GetPersonalizedRankingRequest& WithInputList(Aws::Vector<Aws::String>&& value) { SetInputList(std::move(value)); return *this;}
65 inline GetPersonalizedRankingRequest& AddInputList(const Aws::String& value) { m_inputListHasBeenSet = true; m_inputList.push_back(value); return *this; }
66 inline GetPersonalizedRankingRequest& AddInputList(Aws::String&& value) { m_inputListHasBeenSet = true; m_inputList.push_back(std::move(value)); return *this; }
67 inline GetPersonalizedRankingRequest& AddInputList(const char* value) { m_inputListHasBeenSet = true; m_inputList.push_back(value); return *this; }
69
71
75 inline const Aws::String& GetUserId() const{ return m_userId; }
76 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
77 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
78 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
79 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
80 inline GetPersonalizedRankingRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
81 inline GetPersonalizedRankingRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
82 inline GetPersonalizedRankingRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
84
86
92 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
93 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
94 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
95 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
98 inline GetPersonalizedRankingRequest& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
99 inline GetPersonalizedRankingRequest& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
100 inline GetPersonalizedRankingRequest& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
101 inline GetPersonalizedRankingRequest& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
102 inline GetPersonalizedRankingRequest& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
103 inline GetPersonalizedRankingRequest& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
104 inline GetPersonalizedRankingRequest& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
106
108
115 inline const Aws::String& GetFilterArn() const{ return m_filterArn; }
116 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
117 inline void SetFilterArn(const Aws::String& value) { m_filterArnHasBeenSet = true; m_filterArn = value; }
118 inline void SetFilterArn(Aws::String&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::move(value); }
119 inline void SetFilterArn(const char* value) { m_filterArnHasBeenSet = true; m_filterArn.assign(value); }
120 inline GetPersonalizedRankingRequest& WithFilterArn(const Aws::String& value) { SetFilterArn(value); return *this;}
121 inline GetPersonalizedRankingRequest& WithFilterArn(Aws::String&& value) { SetFilterArn(std::move(value)); return *this;}
122 inline GetPersonalizedRankingRequest& WithFilterArn(const char* value) { SetFilterArn(value); return *this;}
124
126
140 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const{ return m_filterValues; }
141 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
142 inline void SetFilterValues(const Aws::Map<Aws::String, Aws::String>& value) { m_filterValuesHasBeenSet = true; m_filterValues = value; }
143 inline void SetFilterValues(Aws::Map<Aws::String, Aws::String>&& value) { m_filterValuesHasBeenSet = true; m_filterValues = std::move(value); }
146 inline GetPersonalizedRankingRequest& AddFilterValues(const Aws::String& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
147 inline GetPersonalizedRankingRequest& AddFilterValues(Aws::String&& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
148 inline GetPersonalizedRankingRequest& AddFilterValues(const Aws::String& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
149 inline GetPersonalizedRankingRequest& AddFilterValues(Aws::String&& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), std::move(value)); return *this; }
150 inline GetPersonalizedRankingRequest& AddFilterValues(const char* key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
151 inline GetPersonalizedRankingRequest& AddFilterValues(Aws::String&& key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
152 inline GetPersonalizedRankingRequest& AddFilterValues(const char* key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
154
156
166 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMetadataColumns() const{ return m_metadataColumns; }
167 inline bool MetadataColumnsHasBeenSet() const { return m_metadataColumnsHasBeenSet; }
168 inline void SetMetadataColumns(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns = value; }
169 inline void SetMetadataColumns(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns = std::move(value); }
172 inline GetPersonalizedRankingRequest& AddMetadataColumns(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, value); return *this; }
173 inline GetPersonalizedRankingRequest& AddMetadataColumns(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(std::move(key), value); return *this; }
174 inline GetPersonalizedRankingRequest& AddMetadataColumns(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, std::move(value)); return *this; }
175 inline GetPersonalizedRankingRequest& AddMetadataColumns(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(std::move(key), std::move(value)); return *this; }
176 inline GetPersonalizedRankingRequest& AddMetadataColumns(const char* key, Aws::Vector<Aws::String>&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, std::move(value)); return *this; }
177 inline GetPersonalizedRankingRequest& AddMetadataColumns(const char* key, const Aws::Vector<Aws::String>& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(key, value); return *this; }
179 private:
180
181 Aws::String m_campaignArn;
182 bool m_campaignArnHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_inputList;
185 bool m_inputListHasBeenSet = false;
186
187 Aws::String m_userId;
188 bool m_userIdHasBeenSet = false;
189
191 bool m_contextHasBeenSet = false;
192
193 Aws::String m_filterArn;
194 bool m_filterArnHasBeenSet = false;
195
197 bool m_filterValuesHasBeenSet = false;
198
200 bool m_metadataColumnsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace PersonalizeRuntime
205} // namespace Aws
void SetMetadataColumns(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
GetPersonalizedRankingRequest & AddContext(Aws::String &&key, Aws::String &&value)
GetPersonalizedRankingRequest & WithCampaignArn(const Aws::String &value)
GetPersonalizedRankingRequest & WithFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
GetPersonalizedRankingRequest & AddFilterValues(const Aws::String &key, Aws::String &&value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
GetPersonalizedRankingRequest & AddFilterValues(const char *key, const char *value)
GetPersonalizedRankingRequest & AddInputList(const Aws::String &value)
GetPersonalizedRankingRequest & AddMetadataColumns(const Aws::String &key, Aws::Vector< Aws::String > &&value)
GetPersonalizedRankingRequest & WithFilterArn(const Aws::String &value)
GetPersonalizedRankingRequest & WithInputList(Aws::Vector< Aws::String > &&value)
GetPersonalizedRankingRequest & WithInputList(const Aws::Vector< Aws::String > &value)
GetPersonalizedRankingRequest & AddContext(const Aws::String &key, Aws::String &&value)
GetPersonalizedRankingRequest & AddContext(Aws::String &&key, const char *value)
GetPersonalizedRankingRequest & AddFilterValues(Aws::String &&key, const char *value)
GetPersonalizedRankingRequest & AddContext(const char *key, const char *value)
GetPersonalizedRankingRequest & AddMetadataColumns(Aws::String &&key, Aws::Vector< Aws::String > &&value)
AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetFilterValues() const
GetPersonalizedRankingRequest & WithMetadataColumns(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
GetPersonalizedRankingRequest & AddInputList(const char *value)
GetPersonalizedRankingRequest & AddMetadataColumns(Aws::String &&key, const Aws::Vector< Aws::String > &value)
GetPersonalizedRankingRequest & AddMetadataColumns(const char *key, Aws::Vector< Aws::String > &&value)
GetPersonalizedRankingRequest & WithUserId(const char *value)
GetPersonalizedRankingRequest & WithCampaignArn(const char *value)
GetPersonalizedRankingRequest & WithUserId(Aws::String &&value)
GetPersonalizedRankingRequest & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
GetPersonalizedRankingRequest & AddInputList(Aws::String &&value)
GetPersonalizedRankingRequest & AddFilterValues(const Aws::String &key, const Aws::String &value)
GetPersonalizedRankingRequest & WithFilterArn(const char *value)
void SetFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
GetPersonalizedRankingRequest & AddFilterValues(Aws::String &&key, const Aws::String &value)
GetPersonalizedRankingRequest & AddFilterValues(Aws::String &&key, Aws::String &&value)
GetPersonalizedRankingRequest & AddMetadataColumns(const Aws::String &key, const Aws::Vector< Aws::String > &value)
GetPersonalizedRankingRequest & AddMetadataColumns(const char *key, const Aws::Vector< Aws::String > &value)
GetPersonalizedRankingRequest & WithMetadataColumns(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetMetadataColumns(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
GetPersonalizedRankingRequest & WithUserId(const Aws::String &value)
GetPersonalizedRankingRequest & WithFilterArn(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
GetPersonalizedRankingRequest & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
GetPersonalizedRankingRequest & AddFilterValues(const char *key, Aws::String &&value)
GetPersonalizedRankingRequest & WithCampaignArn(Aws::String &&value)
GetPersonalizedRankingRequest & WithFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetMetadataColumns() const
GetPersonalizedRankingRequest & AddContext(Aws::String &&key, const Aws::String &value)
GetPersonalizedRankingRequest & AddContext(const char *key, Aws::String &&value)
GetPersonalizedRankingRequest & AddContext(const Aws::String &key, const Aws::String &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