AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SearchProfilesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/AdditionalSearchKey.h>
12#include <aws/customer-profiles/model/LogicalOperator.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace CustomerProfiles {
21namespace Model {
22
26 public:
27 AWS_CUSTOMERPROFILES_API SearchProfilesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SearchProfiles"; }
34
35 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
36
37 AWS_CUSTOMERPROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
45 template <typename NextTokenT = Aws::String>
46 void SetNextToken(NextTokenT&& value) {
47 m_nextTokenHasBeenSet = true;
48 m_nextToken = std::forward<NextTokenT>(value);
49 }
50 template <typename NextTokenT = Aws::String>
51 SearchProfilesRequest& WithNextToken(NextTokenT&& value) {
52 SetNextToken(std::forward<NextTokenT>(value));
53 return *this;
54 }
56
58
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) {
65 m_maxResultsHasBeenSet = true;
66 m_maxResults = value;
67 }
69 SetMaxResults(value);
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDomainName() const { return m_domainName; }
79 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
80 template <typename DomainNameT = Aws::String>
81 void SetDomainName(DomainNameT&& value) {
82 m_domainNameHasBeenSet = true;
83 m_domainName = std::forward<DomainNameT>(value);
84 }
85 template <typename DomainNameT = Aws::String>
86 SearchProfilesRequest& WithDomainName(DomainNameT&& value) {
87 SetDomainName(std::forward<DomainNameT>(value));
88 return *this;
89 }
91
93
101 inline const Aws::String& GetKeyName() const { return m_keyName; }
102 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
103 template <typename KeyNameT = Aws::String>
104 void SetKeyName(KeyNameT&& value) {
105 m_keyNameHasBeenSet = true;
106 m_keyName = std::forward<KeyNameT>(value);
107 }
108 template <typename KeyNameT = Aws::String>
110 SetKeyName(std::forward<KeyNameT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
120 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
121 template <typename ValuesT = Aws::Vector<Aws::String>>
122 void SetValues(ValuesT&& value) {
123 m_valuesHasBeenSet = true;
124 m_values = std::forward<ValuesT>(value);
125 }
126 template <typename ValuesT = Aws::Vector<Aws::String>>
128 SetValues(std::forward<ValuesT>(value));
129 return *this;
130 }
131 template <typename ValuesT = Aws::String>
133 m_valuesHasBeenSet = true;
134 m_values.emplace_back(std::forward<ValuesT>(value));
135 return *this;
136 }
138
140
149 inline const Aws::Vector<AdditionalSearchKey>& GetAdditionalSearchKeys() const { return m_additionalSearchKeys; }
150 inline bool AdditionalSearchKeysHasBeenSet() const { return m_additionalSearchKeysHasBeenSet; }
151 template <typename AdditionalSearchKeysT = Aws::Vector<AdditionalSearchKey>>
152 void SetAdditionalSearchKeys(AdditionalSearchKeysT&& value) {
153 m_additionalSearchKeysHasBeenSet = true;
154 m_additionalSearchKeys = std::forward<AdditionalSearchKeysT>(value);
155 }
156 template <typename AdditionalSearchKeysT = Aws::Vector<AdditionalSearchKey>>
157 SearchProfilesRequest& WithAdditionalSearchKeys(AdditionalSearchKeysT&& value) {
158 SetAdditionalSearchKeys(std::forward<AdditionalSearchKeysT>(value));
159 return *this;
160 }
161 template <typename AdditionalSearchKeysT = AdditionalSearchKey>
162 SearchProfilesRequest& AddAdditionalSearchKeys(AdditionalSearchKeysT&& value) {
163 m_additionalSearchKeysHasBeenSet = true;
164 m_additionalSearchKeys.emplace_back(std::forward<AdditionalSearchKeysT>(value));
165 return *this;
166 }
168
170
182 inline LogicalOperator GetLogicalOperator() const { return m_logicalOperator; }
183 inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; }
185 m_logicalOperatorHasBeenSet = true;
186 m_logicalOperator = value;
187 }
189 SetLogicalOperator(value);
190 return *this;
191 }
193 private:
194 Aws::String m_nextToken;
195
196 int m_maxResults{0};
197
198 Aws::String m_domainName;
199
200 Aws::String m_keyName;
201
203
204 Aws::Vector<AdditionalSearchKey> m_additionalSearchKeys;
205
206 LogicalOperator m_logicalOperator{LogicalOperator::NOT_SET};
207 bool m_nextTokenHasBeenSet = false;
208 bool m_maxResultsHasBeenSet = false;
209 bool m_domainNameHasBeenSet = false;
210 bool m_keyNameHasBeenSet = false;
211 bool m_valuesHasBeenSet = false;
212 bool m_additionalSearchKeysHasBeenSet = false;
213 bool m_logicalOperatorHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace CustomerProfiles
218} // namespace Aws
AWS_CUSTOMERPROFILES_API SearchProfilesRequest()=default
SearchProfilesRequest & AddAdditionalSearchKeys(AdditionalSearchKeysT &&value)
const Aws::Vector< Aws::String > & GetValues() const
SearchProfilesRequest & WithLogicalOperator(LogicalOperator value)
const Aws::Vector< AdditionalSearchKey > & GetAdditionalSearchKeys() const
SearchProfilesRequest & AddValues(ValuesT &&value)
SearchProfilesRequest & WithDomainName(DomainNameT &&value)
SearchProfilesRequest & WithNextToken(NextTokenT &&value)
void SetAdditionalSearchKeys(AdditionalSearchKeysT &&value)
AWS_CUSTOMERPROFILES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
SearchProfilesRequest & WithValues(ValuesT &&value)
SearchProfilesRequest & WithAdditionalSearchKeys(AdditionalSearchKeysT &&value)
virtual const char * GetServiceRequestName() const override
SearchProfilesRequest & WithKeyName(KeyNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector