AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CampaignArnT = Aws::String>
45 void SetCampaignArn(CampaignArnT&& value) { m_campaignArnHasBeenSet = true; m_campaignArn = std::forward<CampaignArnT>(value); }
46 template<typename CampaignArnT = Aws::String>
47 GetPersonalizedRankingRequest& WithCampaignArn(CampaignArnT&& value) { SetCampaignArn(std::forward<CampaignArnT>(value)); return *this;}
49
51
57 inline const Aws::Vector<Aws::String>& GetInputList() const { return m_inputList; }
58 inline bool InputListHasBeenSet() const { return m_inputListHasBeenSet; }
59 template<typename InputListT = Aws::Vector<Aws::String>>
60 void SetInputList(InputListT&& value) { m_inputListHasBeenSet = true; m_inputList = std::forward<InputListT>(value); }
61 template<typename InputListT = Aws::Vector<Aws::String>>
62 GetPersonalizedRankingRequest& WithInputList(InputListT&& value) { SetInputList(std::forward<InputListT>(value)); return *this;}
63 template<typename InputListT = Aws::String>
64 GetPersonalizedRankingRequest& AddInputList(InputListT&& value) { m_inputListHasBeenSet = true; m_inputList.emplace_back(std::forward<InputListT>(value)); return *this; }
66
68
72 inline const Aws::String& GetUserId() const { return m_userId; }
73 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
74 template<typename UserIdT = Aws::String>
75 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
76 template<typename UserIdT = Aws::String>
77 GetPersonalizedRankingRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
79
81
87 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
88 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
89 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
90 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
91 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
92 GetPersonalizedRankingRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
93 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
94 GetPersonalizedRankingRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
95 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
96 }
98
100
107 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
108 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
109 template<typename FilterArnT = Aws::String>
110 void SetFilterArn(FilterArnT&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::forward<FilterArnT>(value); }
111 template<typename FilterArnT = Aws::String>
112 GetPersonalizedRankingRequest& WithFilterArn(FilterArnT&& value) { SetFilterArn(std::forward<FilterArnT>(value)); return *this;}
114
116
130 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const { return m_filterValues; }
131 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
132 template<typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
133 void SetFilterValues(FilterValuesT&& value) { m_filterValuesHasBeenSet = true; m_filterValues = std::forward<FilterValuesT>(value); }
134 template<typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
135 GetPersonalizedRankingRequest& WithFilterValues(FilterValuesT&& value) { SetFilterValues(std::forward<FilterValuesT>(value)); return *this;}
136 template<typename FilterValuesKeyT = Aws::String, typename FilterValuesValueT = Aws::String>
137 GetPersonalizedRankingRequest& AddFilterValues(FilterValuesKeyT&& key, FilterValuesValueT&& value) {
138 m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::forward<FilterValuesKeyT>(key), std::forward<FilterValuesValueT>(value)); return *this;
139 }
141
143
153 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetMetadataColumns() const { return m_metadataColumns; }
154 inline bool MetadataColumnsHasBeenSet() const { return m_metadataColumnsHasBeenSet; }
155 template<typename MetadataColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
156 void SetMetadataColumns(MetadataColumnsT&& value) { m_metadataColumnsHasBeenSet = true; m_metadataColumns = std::forward<MetadataColumnsT>(value); }
157 template<typename MetadataColumnsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
158 GetPersonalizedRankingRequest& WithMetadataColumns(MetadataColumnsT&& value) { SetMetadataColumns(std::forward<MetadataColumnsT>(value)); return *this;}
159 template<typename MetadataColumnsKeyT = Aws::String, typename MetadataColumnsValueT = Aws::Vector<Aws::String>>
160 GetPersonalizedRankingRequest& AddMetadataColumns(MetadataColumnsKeyT&& key, MetadataColumnsValueT&& value) {
161 m_metadataColumnsHasBeenSet = true; m_metadataColumns.emplace(std::forward<MetadataColumnsKeyT>(key), std::forward<MetadataColumnsValueT>(value)); return *this;
162 }
164 private:
165
166 Aws::String m_campaignArn;
167 bool m_campaignArnHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_inputList;
170 bool m_inputListHasBeenSet = false;
171
172 Aws::String m_userId;
173 bool m_userIdHasBeenSet = false;
174
176 bool m_contextHasBeenSet = false;
177
178 Aws::String m_filterArn;
179 bool m_filterArnHasBeenSet = false;
180
182 bool m_filterValuesHasBeenSet = false;
183
185 bool m_metadataColumnsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace PersonalizeRuntime
190} // namespace Aws
GetPersonalizedRankingRequest & AddFilterValues(FilterValuesKeyT &&key, FilterValuesValueT &&value)
GetPersonalizedRankingRequest & WithCampaignArn(CampaignArnT &&value)
GetPersonalizedRankingRequest & WithContext(ContextT &&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