AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 GetActionRecommendationsRequest& WithCampaignArn(const Aws::String& value) { SetCampaignArn(value); return *this;}
48 inline GetActionRecommendationsRequest& WithCampaignArn(Aws::String&& value) { SetCampaignArn(std::move(value)); return *this;}
49 inline GetActionRecommendationsRequest& WithCampaignArn(const char* value) { SetCampaignArn(value); return *this;}
51
53
56 inline const Aws::String& GetUserId() const{ return m_userId; }
57 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
58 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
59 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
60 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
61 inline GetActionRecommendationsRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
62 inline GetActionRecommendationsRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
63 inline GetActionRecommendationsRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
65
67
70 inline int GetNumResults() const{ return m_numResults; }
71 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
72 inline void SetNumResults(int value) { m_numResultsHasBeenSet = true; m_numResults = value; }
73 inline GetActionRecommendationsRequest& WithNumResults(int value) { SetNumResults(value); return *this;}
75
77
84 inline const Aws::String& GetFilterArn() const{ return m_filterArn; }
85 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
86 inline void SetFilterArn(const Aws::String& value) { m_filterArnHasBeenSet = true; m_filterArn = value; }
87 inline void SetFilterArn(Aws::String&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::move(value); }
88 inline void SetFilterArn(const char* value) { m_filterArnHasBeenSet = true; m_filterArn.assign(value); }
89 inline GetActionRecommendationsRequest& WithFilterArn(const Aws::String& value) { SetFilterArn(value); return *this;}
90 inline GetActionRecommendationsRequest& WithFilterArn(Aws::String&& value) { SetFilterArn(std::move(value)); return *this;}
91 inline GetActionRecommendationsRequest& WithFilterArn(const char* value) { SetFilterArn(value); return *this;}
93
95
109 inline const Aws::Map<Aws::String, Aws::String>& GetFilterValues() const{ return m_filterValues; }
110 inline bool FilterValuesHasBeenSet() const { return m_filterValuesHasBeenSet; }
111 inline void SetFilterValues(const Aws::Map<Aws::String, Aws::String>& value) { m_filterValuesHasBeenSet = true; m_filterValues = value; }
112 inline void SetFilterValues(Aws::Map<Aws::String, Aws::String>&& value) { m_filterValuesHasBeenSet = true; m_filterValues = std::move(value); }
115 inline GetActionRecommendationsRequest& AddFilterValues(const Aws::String& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
116 inline GetActionRecommendationsRequest& AddFilterValues(Aws::String&& key, const Aws::String& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
117 inline GetActionRecommendationsRequest& AddFilterValues(const Aws::String& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
118 inline GetActionRecommendationsRequest& AddFilterValues(Aws::String&& key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), std::move(value)); return *this; }
119 inline GetActionRecommendationsRequest& AddFilterValues(const char* key, Aws::String&& value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, std::move(value)); return *this; }
120 inline GetActionRecommendationsRequest& AddFilterValues(Aws::String&& key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(std::move(key), value); return *this; }
121 inline GetActionRecommendationsRequest& AddFilterValues(const char* key, const char* value) { m_filterValuesHasBeenSet = true; m_filterValues.emplace(key, value); return *this; }
123 private:
124
125 Aws::String m_campaignArn;
126 bool m_campaignArnHasBeenSet = false;
127
128 Aws::String m_userId;
129 bool m_userIdHasBeenSet = false;
130
131 int m_numResults;
132 bool m_numResultsHasBeenSet = false;
133
134 Aws::String m_filterArn;
135 bool m_filterArnHasBeenSet = false;
136
138 bool m_filterValuesHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace PersonalizeRuntime
143} // namespace Aws
GetActionRecommendationsRequest & WithFilterArn(Aws::String &&value)
GetActionRecommendationsRequest & WithFilterArn(const Aws::String &value)
GetActionRecommendationsRequest & AddFilterValues(Aws::String &&key, const Aws::String &value)
GetActionRecommendationsRequest & WithCampaignArn(const Aws::String &value)
GetActionRecommendationsRequest & AddFilterValues(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilterValues() const
GetActionRecommendationsRequest & WithUserId(const Aws::String &value)
GetActionRecommendationsRequest & WithCampaignArn(const char *value)
GetActionRecommendationsRequest & WithUserId(Aws::String &&value)
AWS_PERSONALIZERUNTIME_API Aws::String SerializePayload() const override
GetActionRecommendationsRequest & WithFilterValues(Aws::Map< Aws::String, Aws::String > &&value)
GetActionRecommendationsRequest & AddFilterValues(const Aws::String &key, Aws::String &&value)
GetActionRecommendationsRequest & WithCampaignArn(Aws::String &&value)
GetActionRecommendationsRequest & WithFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
GetActionRecommendationsRequest & AddFilterValues(const Aws::String &key, const Aws::String &value)
GetActionRecommendationsRequest & WithFilterArn(const char *value)
GetActionRecommendationsRequest & AddFilterValues(const char *key, const char *value)
GetActionRecommendationsRequest & WithUserId(const char *value)
void SetFilterValues(const Aws::Map< Aws::String, Aws::String > &value)
GetActionRecommendationsRequest & AddFilterValues(Aws::String &&key, const char *value)
GetActionRecommendationsRequest & AddFilterValues(Aws::String &&key, 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