AWS SDK for C++

AWS SDK for C++ Version 1.11.867

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#include <aws/geo-places/model/SearchTextTravelMode.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Http {
20class URI;
21} // namespace Http
22namespace GeoPlaces {
23namespace Model {
24
28 public:
29 AWS_GEOPLACES_API SearchTextRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SearchText"; }
36
37 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
38
39 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
48 inline const Aws::String& GetQueryText() const { return m_queryText; }
49 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
50 template <typename QueryTextT = Aws::String>
51 void SetQueryText(QueryTextT&& value) {
52 m_queryTextHasBeenSet = true;
53 m_queryText = std::forward<QueryTextT>(value);
54 }
55 template <typename QueryTextT = Aws::String>
56 SearchTextRequest& WithQueryText(QueryTextT&& value) {
57 SetQueryText(std::forward<QueryTextT>(value));
58 return *this;
59 }
61
63
72 inline const Aws::String& GetQueryId() const { return m_queryId; }
73 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
74 template <typename QueryIdT = Aws::String>
75 void SetQueryId(QueryIdT&& value) {
76 m_queryIdHasBeenSet = true;
77 m_queryId = std::forward<QueryIdT>(value);
78 }
79 template <typename QueryIdT = Aws::String>
80 SearchTextRequest& WithQueryId(QueryIdT&& value) {
81 SetQueryId(std::forward<QueryIdT>(value));
82 return *this;
83 }
85
87
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) {
94 m_maxResultsHasBeenSet = true;
95 m_maxResults = value;
96 }
97 inline SearchTextRequest& WithMaxResults(int value) {
98 SetMaxResults(value);
99 return *this;
100 }
102
104
111 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
112 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
113 template <typename BiasPositionT = Aws::Vector<double>>
114 void SetBiasPosition(BiasPositionT&& value) {
115 m_biasPositionHasBeenSet = true;
116 m_biasPosition = std::forward<BiasPositionT>(value);
117 }
118 template <typename BiasPositionT = Aws::Vector<double>>
119 SearchTextRequest& WithBiasPosition(BiasPositionT&& value) {
120 SetBiasPosition(std::forward<BiasPositionT>(value));
121 return *this;
122 }
123 inline SearchTextRequest& AddBiasPosition(double value) {
124 m_biasPositionHasBeenSet = true;
125 m_biasPosition.push_back(value);
126 return *this;
127 }
129
131
135 inline const SearchTextFilter& GetFilter() const { return m_filter; }
136 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
137 template <typename FilterT = SearchTextFilter>
138 void SetFilter(FilterT&& value) {
139 m_filterHasBeenSet = true;
140 m_filter = std::forward<FilterT>(value);
141 }
142 template <typename FilterT = SearchTextFilter>
143 SearchTextRequest& WithFilter(FilterT&& value) {
144 SetFilter(std::forward<FilterT>(value));
145 return *this;
146 }
148
150
157 inline const Aws::Vector<SearchTextAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
158 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
159 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
160 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
161 m_additionalFeaturesHasBeenSet = true;
162 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
163 }
164 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
165 SearchTextRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
166 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
167 return *this;
168 }
170 m_additionalFeaturesHasBeenSet = true;
171 m_additionalFeatures.push_back(value);
172 return *this;
173 }
175
177
188 inline const Aws::String& GetLanguage() const { return m_language; }
189 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
190 template <typename LanguageT = Aws::String>
191 void SetLanguage(LanguageT&& value) {
192 m_languageHasBeenSet = true;
193 m_language = std::forward<LanguageT>(value);
194 }
195 template <typename LanguageT = Aws::String>
196 SearchTextRequest& WithLanguage(LanguageT&& value) {
197 SetLanguage(std::forward<LanguageT>(value));
198 return *this;
199 }
201
203
212 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
213 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
214 template <typename PoliticalViewT = Aws::String>
215 void SetPoliticalView(PoliticalViewT&& value) {
216 m_politicalViewHasBeenSet = true;
217 m_politicalView = std::forward<PoliticalViewT>(value);
218 }
219 template <typename PoliticalViewT = Aws::String>
220 SearchTextRequest& WithPoliticalView(PoliticalViewT&& value) {
221 SetPoliticalView(std::forward<PoliticalViewT>(value));
222 return *this;
223 }
225
227
237 inline SearchTextIntendedUse GetIntendedUse() const { return m_intendedUse; }
238 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
240 m_intendedUseHasBeenSet = true;
241 m_intendedUse = value;
242 }
244 SetIntendedUse(value);
245 return *this;
246 }
248
250
254 inline const Aws::String& GetNextToken() const { return m_nextToken; }
255 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
256 template <typename NextTokenT = Aws::String>
257 void SetNextToken(NextTokenT&& value) {
258 m_nextTokenHasBeenSet = true;
259 m_nextToken = std::forward<NextTokenT>(value);
260 }
261 template <typename NextTokenT = Aws::String>
262 SearchTextRequest& WithNextToken(NextTokenT&& value) {
263 SetNextToken(std::forward<NextTokenT>(value));
264 return *this;
265 }
267
269
274 inline SearchTextTravelMode GetTravelMode() const { return m_travelMode; }
275 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
277 m_travelModeHasBeenSet = true;
278 m_travelMode = value;
279 }
281 SetTravelMode(value);
282 return *this;
283 }
285
287
291 inline const Aws::String& GetKey() const { return m_key; }
292 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
293 template <typename KeyT = Aws::String>
294 void SetKey(KeyT&& value) {
295 m_keyHasBeenSet = true;
296 m_key = std::forward<KeyT>(value);
297 }
298 template <typename KeyT = Aws::String>
299 SearchTextRequest& WithKey(KeyT&& value) {
300 SetKey(std::forward<KeyT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_queryText;
306
307 Aws::String m_queryId;
308
309 int m_maxResults{0};
310
311 Aws::Vector<double> m_biasPosition;
312
313 SearchTextFilter m_filter;
314
315 Aws::Vector<SearchTextAdditionalFeature> m_additionalFeatures;
316
317 Aws::String m_language;
318
319 Aws::String m_politicalView;
320
322
323 Aws::String m_nextToken;
324
326
327 Aws::String m_key;
328 bool m_queryTextHasBeenSet = false;
329 bool m_queryIdHasBeenSet = false;
330 bool m_maxResultsHasBeenSet = false;
331 bool m_biasPositionHasBeenSet = false;
332 bool m_filterHasBeenSet = false;
333 bool m_additionalFeaturesHasBeenSet = false;
334 bool m_languageHasBeenSet = false;
335 bool m_politicalViewHasBeenSet = false;
336 bool m_intendedUseHasBeenSet = false;
337 bool m_nextTokenHasBeenSet = false;
338 bool m_travelModeHasBeenSet = false;
339 bool m_keyHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace GeoPlaces
344} // 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)
SearchTextRequest & WithTravelMode(SearchTextTravelMode 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)
SearchTextTravelMode GetTravelMode() const
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)
void SetTravelMode(SearchTextTravelMode 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