AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetActionRecommendationsRequest.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 <utility>
12
13namespace Aws
14{
15namespace PersonalizeRuntime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PERSONALIZERUNTIME_API GetActionRecommendationsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetActionRecommendations"; }
32
33 AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override;
34
35
37
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 GetActionRecommendationsRequest& WithCampaignArn(CampaignArnT&& value) { SetCampaignArn(std::forward<CampaignArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetUserId() const { return m_userId; }
55 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
56 template<typename UserIdT = Aws::String>
57 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
58 template<typename UserIdT = Aws::String>
59 GetActionRecommendationsRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
61
63
66 inline int GetNumResults() const { return m_numResults; }
67 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
68 inline void SetNumResults(int value) { m_numResultsHasBeenSet = true; m_numResults = value; }
69 inline GetActionRecommendationsRequest& WithNumResults(int value) { SetNumResults(value); return *this;}
71
73
80 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
81 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
82 template<typename FilterArnT = Aws::String>
83 void SetFilterArn(FilterArnT&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::forward<FilterArnT>(value); }
84 template<typename FilterArnT = Aws::String>
85 GetActionRecommendationsRequest& WithFilterArn(FilterArnT&& value) { SetFilterArn(std::forward<FilterArnT>(value)); return *this;}
87
89
103 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const { return m_filterValues; }
104 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
105 template<typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
106 void SetFilterValues(FilterValuesT&& value) { m_filterValuesHasBeenSet = true; m_filterValues = std::forward<FilterValuesT>(value); }
107 template<typename FilterValuesT = Aws::Map<Aws::String, Aws::String>>
108 GetActionRecommendationsRequest& WithFilterValues(FilterValuesT&& value) { SetFilterValues(std::forward<FilterValuesT>(value)); return *this;}
109 template<typename FilterValuesKeyT = Aws::String, typename FilterValuesValueT = Aws::String>
110 GetActionRecommendationsRequest& AddFilterValues(FilterValuesKeyT&& key, FilterValuesValueT&& value) {
111 m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::forward<FilterValuesKeyT>(key), std::forward<FilterValuesValueT>(value)); return *this;
112 }
114 private:
115
116 Aws::String m_campaignArn;
117 bool m_campaignArnHasBeenSet = false;
118
119 Aws::String m_userId;
120 bool m_userIdHasBeenSet = false;
121
122 int m_numResults{0};
123 bool m_numResultsHasBeenSet = false;
124
125 Aws::String m_filterArn;
126 bool m_filterArnHasBeenSet = false;
127
129 bool m_filterValuesHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace PersonalizeRuntime
134} // 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