AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
88 inline int GetMaxResults() const { return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) {
91 m_maxResultsHasBeenSet = true;
92 m_maxResults = value;
93 }
94 inline SearchTextRequest& WithMaxResults(int value) {
95 SetMaxResults(value);
96 return *this;
97 }
99
101
108 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
109 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
110 template <typename BiasPositionT = Aws::Vector<double>>
111 void SetBiasPosition(BiasPositionT&& value) {
112 m_biasPositionHasBeenSet = true;
113 m_biasPosition = std::forward<BiasPositionT>(value);
114 }
115 template <typename BiasPositionT = Aws::Vector<double>>
116 SearchTextRequest& WithBiasPosition(BiasPositionT&& value) {
117 SetBiasPosition(std::forward<BiasPositionT>(value));
118 return *this;
119 }
120 inline SearchTextRequest& AddBiasPosition(double value) {
121 m_biasPositionHasBeenSet = true;
122 m_biasPosition.push_back(value);
123 return *this;
124 }
126
128
132 inline const SearchTextFilter& GetFilter() const { return m_filter; }
133 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
134 template <typename FilterT = SearchTextFilter>
135 void SetFilter(FilterT&& value) {
136 m_filterHasBeenSet = true;
137 m_filter = std::forward<FilterT>(value);
138 }
139 template <typename FilterT = SearchTextFilter>
140 SearchTextRequest& WithFilter(FilterT&& value) {
141 SetFilter(std::forward<FilterT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Vector<SearchTextAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
152 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
153 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
154 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
155 m_additionalFeaturesHasBeenSet = true;
156 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
157 }
158 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
159 SearchTextRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
160 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
161 return *this;
162 }
164 m_additionalFeaturesHasBeenSet = true;
165 m_additionalFeatures.push_back(value);
166 return *this;
167 }
169
171
177 inline const Aws::String& GetLanguage() const { return m_language; }
178 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
179 template <typename LanguageT = Aws::String>
180 void SetLanguage(LanguageT&& value) {
181 m_languageHasBeenSet = true;
182 m_language = std::forward<LanguageT>(value);
183 }
184 template <typename LanguageT = Aws::String>
185 SearchTextRequest& WithLanguage(LanguageT&& value) {
186 SetLanguage(std::forward<LanguageT>(value));
187 return *this;
188 }
190
192
197 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
198 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
199 template <typename PoliticalViewT = Aws::String>
200 void SetPoliticalView(PoliticalViewT&& value) {
201 m_politicalViewHasBeenSet = true;
202 m_politicalView = std::forward<PoliticalViewT>(value);
203 }
204 template <typename PoliticalViewT = Aws::String>
205 SearchTextRequest& WithPoliticalView(PoliticalViewT&& value) {
206 SetPoliticalView(std::forward<PoliticalViewT>(value));
207 return *this;
208 }
210
212
221 inline SearchTextIntendedUse GetIntendedUse() const { return m_intendedUse; }
222 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
224 m_intendedUseHasBeenSet = true;
225 m_intendedUse = value;
226 }
228 SetIntendedUse(value);
229 return *this;
230 }
232
234
238 inline const Aws::String& GetNextToken() const { return m_nextToken; }
239 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
240 template <typename NextTokenT = Aws::String>
241 void SetNextToken(NextTokenT&& value) {
242 m_nextTokenHasBeenSet = true;
243 m_nextToken = std::forward<NextTokenT>(value);
244 }
245 template <typename NextTokenT = Aws::String>
246 SearchTextRequest& WithNextToken(NextTokenT&& value) {
247 SetNextToken(std::forward<NextTokenT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::String& GetKey() const { return m_key; }
258 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
259 template <typename KeyT = Aws::String>
260 void SetKey(KeyT&& value) {
261 m_keyHasBeenSet = true;
262 m_key = std::forward<KeyT>(value);
263 }
264 template <typename KeyT = Aws::String>
265 SearchTextRequest& WithKey(KeyT&& value) {
266 SetKey(std::forward<KeyT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_queryText;
272
273 Aws::String m_queryId;
274
275 int m_maxResults{0};
276
277 Aws::Vector<double> m_biasPosition;
278
279 SearchTextFilter m_filter;
280
281 Aws::Vector<SearchTextAdditionalFeature> m_additionalFeatures;
282
283 Aws::String m_language;
284
285 Aws::String m_politicalView;
286
288
289 Aws::String m_nextToken;
290
291 Aws::String m_key;
292 bool m_queryTextHasBeenSet = false;
293 bool m_queryIdHasBeenSet = false;
294 bool m_maxResultsHasBeenSet = false;
295 bool m_biasPositionHasBeenSet = false;
296 bool m_filterHasBeenSet = false;
297 bool m_additionalFeaturesHasBeenSet = false;
298 bool m_languageHasBeenSet = false;
299 bool m_politicalViewHasBeenSet = false;
300 bool m_intendedUseHasBeenSet = false;
301 bool m_nextTokenHasBeenSet = false;
302 bool m_keyHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace GeoPlaces
307} // 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