AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
GetProfileRecommendationsRequest.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/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CustomerProfiles {
16namespace Model {
17
21 public:
22 AWS_CUSTOMERPROFILES_API GetProfileRecommendationsRequest() = 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 "GetProfileRecommendations"; }
29
30 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDomainName() const { return m_domainName; }
37 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
38 template <typename DomainNameT = Aws::String>
39 void SetDomainName(DomainNameT&& value) {
40 m_domainNameHasBeenSet = true;
41 m_domainName = std::forward<DomainNameT>(value);
42 }
43 template <typename DomainNameT = Aws::String>
45 SetDomainName(std::forward<DomainNameT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetProfileId() const { return m_profileId; }
56 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
57 template <typename ProfileIdT = Aws::String>
58 void SetProfileId(ProfileIdT&& value) {
59 m_profileIdHasBeenSet = true;
60 m_profileId = std::forward<ProfileIdT>(value);
61 }
62 template <typename ProfileIdT = Aws::String>
64 SetProfileId(std::forward<ProfileIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetRecommenderName() const { return m_recommenderName; }
74 inline bool RecommenderNameHasBeenSet() const { return m_recommenderNameHasBeenSet; }
75 template <typename RecommenderNameT = Aws::String>
76 void SetRecommenderName(RecommenderNameT&& value) {
77 m_recommenderNameHasBeenSet = true;
78 m_recommenderName = std::forward<RecommenderNameT>(value);
79 }
80 template <typename RecommenderNameT = Aws::String>
82 SetRecommenderName(std::forward<RecommenderNameT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
93 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
94 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
95 void SetContext(ContextT&& value) {
96 m_contextHasBeenSet = true;
97 m_context = std::forward<ContextT>(value);
98 }
99 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
101 SetContext(std::forward<ContextT>(value));
102 return *this;
103 }
104 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
105 GetProfileRecommendationsRequest& AddContext(ContextKeyT&& key, ContextValueT&& value) {
106 m_contextHasBeenSet = true;
107 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
108 return *this;
109 }
111
113
116 inline int GetMaxResults() const { return m_maxResults; }
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 inline void SetMaxResults(int value) {
119 m_maxResultsHasBeenSet = true;
120 m_maxResults = value;
121 }
123 SetMaxResults(value);
124 return *this;
125 }
127 private:
128 Aws::String m_domainName;
129
130 Aws::String m_profileId;
131
132 Aws::String m_recommenderName;
133
135
136 int m_maxResults{0};
137 bool m_domainNameHasBeenSet = false;
138 bool m_profileIdHasBeenSet = false;
139 bool m_recommenderNameHasBeenSet = false;
140 bool m_contextHasBeenSet = false;
141 bool m_maxResultsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CustomerProfiles
146} // namespace Aws
GetProfileRecommendationsRequest & AddContext(ContextKeyT &&key, ContextValueT &&value)
AWS_CUSTOMERPROFILES_API GetProfileRecommendationsRequest()=default
GetProfileRecommendationsRequest & WithProfileId(ProfileIdT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetContext() const
GetProfileRecommendationsRequest & WithDomainName(DomainNameT &&value)
GetProfileRecommendationsRequest & WithRecommenderName(RecommenderNameT &&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