AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetActionRecommendationsRequest.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/personalize-runtime/PersonalizeRuntimeRequest.h>
10#include <aws/personalize-runtime/PersonalizeRuntime_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PersonalizeRuntime {
16namespace Model {
17
21 public:
22 AWS_PERSONALIZERUNTIME_API GetActionRecommendationsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetActionRecommendations"; }
29
30 AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override;
31
33
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
56 inline const Aws::String& GetUserId() const { return m_userId; }
57 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
58 template <typename UserIdT = Aws::String>
59 void SetUserId(UserIdT&& value) {
60 m_userIdHasBeenSet = true;
61 m_userId = std::forward<UserIdT>(value);
62 }
63 template <typename UserIdT = Aws::String>
65 SetUserId(std::forward<UserIdT>(value));
66 return *this;
67 }
69
71
74 inline int GetNumResults() const { return m_numResults; }
75 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
76 inline void SetNumResults(int value) {
77 m_numResultsHasBeenSet = true;
78 m_numResults = value;
79 }
81 SetNumResults(value);
82 return *this;
83 }
85
87
94 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
95 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
96 template <typename FilterArnT = Aws::String>
97 void SetFilterArn(FilterArnT&& value) {
98 m_filterArnHasBeenSet = true;
99 m_filterArn = std::forward<FilterArnT>(value);
100 }
101 template <typename FilterArnT = Aws::String>
103 SetFilterArn(std::forward<FilterArnT>(value));
104 return *this;
105 }
107
109
123 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const { return m_filterValues; }
124 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
125 template <typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
126 void SetFilterValues(FilterValuesT&& value) {
127 m_filterValuesHasBeenSet = true;
128 m_filterValues = std::forward<FilterValuesT>(value);
129 }
130 template <typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
132 SetFilterValues(std::forward<FilterValuesT>(value));
133 return *this;
134 }
135 template <typename FilterValuesKeyT = Aws::String, typename FilterValuesValueT = Aws::String>
136 GetActionRecommendationsRequest& AddFilterValues(FilterValuesKeyT&& key, FilterValuesValueT&& value) {
137 m_filterValuesHasBeenSet = true;
138 m_filterValues.emplace(std::forward<FilterValuesKeyT>(key), std::forward<FilterValuesValueT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_campaignArn;
144
145 Aws::String m_userId;
146
147 int m_numResults{0};
148
149 Aws::String m_filterArn;
150
152 bool m_campaignArnHasBeenSet = false;
153 bool m_userIdHasBeenSet = false;
154 bool m_numResultsHasBeenSet = false;
155 bool m_filterArnHasBeenSet = false;
156 bool m_filterValuesHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace PersonalizeRuntime
161} // namespace Aws
GetActionRecommendationsRequest & WithFilterArn(FilterArnT &&value)
GetActionRecommendationsRequest & WithCampaignArn(CampaignArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilterValues() const
AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override
GetActionRecommendationsRequest & AddFilterValues(FilterValuesKeyT &&key, FilterValuesValueT &&value)
AWS_PERSONALIZERUNTIME_API GetActionRecommendationsRequest()=default
GetActionRecommendationsRequest & WithFilterValues(FilterValuesT &&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