AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
SearchTextRequest.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/geo-places/GeoPlacesRequest.h>
10#include <aws/geo-places/GeoPlaces_EXPORTS.h>
11#include <aws/geo-places/model/SearchTextAdditionalFeature.h>
12#include <aws/geo-places/model/SearchTextFilter.h>
13#include <aws/geo-places/model/SearchTextIntendedUse.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace GeoPlaces {
22namespace Model {
23
27 public:
28 AWS_GEOPLACES_API SearchTextRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SearchText"; }
35
36 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
37
38 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
47 inline const Aws::String& GetQueryText() const { return m_queryText; }
48 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
49 template <typename QueryTextT = Aws::String>
50 void SetQueryText(QueryTextT&& value) {
51 m_queryTextHasBeenSet = true;
52 m_queryText = std::forward<QueryTextT>(value);
53 }
54 template <typename QueryTextT = Aws::String>
55 SearchTextRequest& WithQueryText(QueryTextT&& value) {
56 SetQueryText(std::forward<QueryTextT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetQueryId() const { return m_queryId; }
70 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
71 template <typename QueryIdT = Aws::String>
72 void SetQueryId(QueryIdT&& value) {
73 m_queryIdHasBeenSet = true;
74 m_queryId = std::forward<QueryIdT>(value);
75 }
76 template <typename QueryIdT = Aws::String>
77 SearchTextRequest& WithQueryId(QueryIdT&& value) {
78 SetQueryId(std::forward<QueryIdT>(value));
79 return *this;
80 }
82
84
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) {
90 m_maxResultsHasBeenSet = true;
91 m_maxResults = value;
92 }
93 inline SearchTextRequest& WithMaxResults(int value) {
94 SetMaxResults(value);
95 return *this;
96 }
98
100
107 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
108 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
109 template <typename BiasPositionT = Aws::Vector<double>>
110 void SetBiasPosition(BiasPositionT&& value) {
111 m_biasPositionHasBeenSet = true;
112 m_biasPosition = std::forward<BiasPositionT>(value);
113 }
114 template <typename BiasPositionT = Aws::Vector<double>>
115 SearchTextRequest& WithBiasPosition(BiasPositionT&& value) {
116 SetBiasPosition(std::forward<BiasPositionT>(value));
117 return *this;
118 }
119 inline SearchTextRequest& AddBiasPosition(double value) {
120 m_biasPositionHasBeenSet = true;
121 m_biasPosition.push_back(value);
122 return *this;
123 }
125
127
131 inline const SearchTextFilter& GetFilter() const { return m_filter; }
132 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
133 template <typename FilterT = SearchTextFilter>
134 void SetFilter(FilterT&& value) {
135 m_filterHasBeenSet = true;
136 m_filter = std::forward<FilterT>(value);
137 }
138 template <typename FilterT = SearchTextFilter>
139 SearchTextRequest& WithFilter(FilterT&& value) {
140 SetFilter(std::forward<FilterT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::Vector<SearchTextAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
151 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
152 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
153 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
154 m_additionalFeaturesHasBeenSet = true;
155 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
156 }
157 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
158 SearchTextRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
159 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
160 return *this;
161 }
163 m_additionalFeaturesHasBeenSet = true;
164 m_additionalFeatures.push_back(value);
165 return *this;
166 }
168
170
176 inline const Aws::String& GetLanguage() const { return m_language; }
177 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
178 template <typename LanguageT = Aws::String>
179 void SetLanguage(LanguageT&& value) {
180 m_languageHasBeenSet = true;
181 m_language = std::forward<LanguageT>(value);
182 }
183 template <typename LanguageT = Aws::String>
184 SearchTextRequest& WithLanguage(LanguageT&& value) {
185 SetLanguage(std::forward<LanguageT>(value));
186 return *this;
187 }
189
191
196 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
197 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
198 template <typename PoliticalViewT = Aws::String>
199 void SetPoliticalView(PoliticalViewT&& value) {
200 m_politicalViewHasBeenSet = true;
201 m_politicalView = std::forward<PoliticalViewT>(value);
202 }
203 template <typename PoliticalViewT = Aws::String>
204 SearchTextRequest& WithPoliticalView(PoliticalViewT&& value) {
205 SetPoliticalView(std::forward<PoliticalViewT>(value));
206 return *this;
207 }
209
211
220 inline SearchTextIntendedUse GetIntendedUse() const { return m_intendedUse; }
221 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
223 m_intendedUseHasBeenSet = true;
224 m_intendedUse = value;
225 }
227 SetIntendedUse(value);
228 return *this;
229 }
231
233
237 inline const Aws::String& GetNextToken() const { return m_nextToken; }
238 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
239 template <typename NextTokenT = Aws::String>
240 void SetNextToken(NextTokenT&& value) {
241 m_nextTokenHasBeenSet = true;
242 m_nextToken = std::forward<NextTokenT>(value);
243 }
244 template <typename NextTokenT = Aws::String>
245 SearchTextRequest& WithNextToken(NextTokenT&& value) {
246 SetNextToken(std::forward<NextTokenT>(value));
247 return *this;
248 }
250
252
256 inline const Aws::String& GetKey() const { return m_key; }
257 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
258 template <typename KeyT = Aws::String>
259 void SetKey(KeyT&& value) {
260 m_keyHasBeenSet = true;
261 m_key = std::forward<KeyT>(value);
262 }
263 template <typename KeyT = Aws::String>
264 SearchTextRequest& WithKey(KeyT&& value) {
265 SetKey(std::forward<KeyT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_queryText;
271 bool m_queryTextHasBeenSet = false;
272
273 Aws::String m_queryId;
274 bool m_queryIdHasBeenSet = false;
275
276 int m_maxResults{0};
277 bool m_maxResultsHasBeenSet = false;
278
279 Aws::Vector<double> m_biasPosition;
280 bool m_biasPositionHasBeenSet = false;
281
282 SearchTextFilter m_filter;
283 bool m_filterHasBeenSet = false;
284
285 Aws::Vector<SearchTextAdditionalFeature> m_additionalFeatures;
286 bool m_additionalFeaturesHasBeenSet = false;
287
288 Aws::String m_language;
289 bool m_languageHasBeenSet = false;
290
291 Aws::String m_politicalView;
292 bool m_politicalViewHasBeenSet = false;
293
295 bool m_intendedUseHasBeenSet = false;
296
297 Aws::String m_nextToken;
298 bool m_nextTokenHasBeenSet = false;
299
300 Aws::String m_key;
301 bool m_keyHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace GeoPlaces
306} // namespace Aws
const Aws::Vector< double > & GetBiasPosition() const
AWS_GEOPLACES_API SearchTextRequest()=default
SearchTextRequest & WithKey(KeyT &&value)
SearchTextRequest & AddAdditionalFeatures(SearchTextAdditionalFeature value)
SearchTextRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
void SetPoliticalView(PoliticalViewT &&value)
SearchTextRequest & WithLanguage(LanguageT &&value)
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SearchTextRequest & WithQueryId(QueryIdT &&value)
SearchTextRequest & AddBiasPosition(double value)
SearchTextRequest & WithPoliticalView(PoliticalViewT &&value)
SearchTextIntendedUse GetIntendedUse() const
const Aws::Vector< SearchTextAdditionalFeature > & GetAdditionalFeatures() const
SearchTextRequest & WithFilter(FilterT &&value)
const SearchTextFilter & GetFilter() const
SearchTextRequest & WithQueryText(QueryTextT &&value)
void SetIntendedUse(SearchTextIntendedUse value)
void SetBiasPosition(BiasPositionT &&value)
const Aws::String & GetQueryText() const
SearchTextRequest & WithBiasPosition(BiasPositionT &&value)
const Aws::String & GetPoliticalView() const
SearchTextRequest & WithMaxResults(int value)
SearchTextRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
SearchTextRequest & WithIntendedUse(SearchTextIntendedUse value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector