AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
71 inline const Aws::String& GetQueryId() const { return m_queryId; }
72 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
73 template <typename QueryIdT = Aws::String>
74 void SetQueryId(QueryIdT&& value) {
75 m_queryIdHasBeenSet = true;
76 m_queryId = std::forward<QueryIdT>(value);
77 }
78 template <typename QueryIdT = Aws::String>
79 SearchTextRequest& WithQueryId(QueryIdT&& value) {
80 SetQueryId(std::forward<QueryIdT>(value));
81 return *this;
82 }
84
86
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
96 inline SearchTextRequest& WithMaxResults(int value) {
97 SetMaxResults(value);
98 return *this;
99 }
101
103
110 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
111 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
112 template <typename BiasPositionT = Aws::Vector<double>>
113 void SetBiasPosition(BiasPositionT&& value) {
114 m_biasPositionHasBeenSet = true;
115 m_biasPosition = std::forward<BiasPositionT>(value);
116 }
117 template <typename BiasPositionT = Aws::Vector<double>>
118 SearchTextRequest& WithBiasPosition(BiasPositionT&& value) {
119 SetBiasPosition(std::forward<BiasPositionT>(value));
120 return *this;
121 }
122 inline SearchTextRequest& AddBiasPosition(double value) {
123 m_biasPositionHasBeenSet = true;
124 m_biasPosition.push_back(value);
125 return *this;
126 }
128
130
134 inline const SearchTextFilter& GetFilter() const { return m_filter; }
135 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
136 template <typename FilterT = SearchTextFilter>
137 void SetFilter(FilterT&& value) {
138 m_filterHasBeenSet = true;
139 m_filter = std::forward<FilterT>(value);
140 }
141 template <typename FilterT = SearchTextFilter>
142 SearchTextRequest& WithFilter(FilterT&& value) {
143 SetFilter(std::forward<FilterT>(value));
144 return *this;
145 }
147
149
156 inline const Aws::Vector<SearchTextAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
157 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
158 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
159 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
160 m_additionalFeaturesHasBeenSet = true;
161 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
162 }
163 template <typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
164 SearchTextRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
165 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
166 return *this;
167 }
169 m_additionalFeaturesHasBeenSet = true;
170 m_additionalFeatures.push_back(value);
171 return *this;
172 }
174
176
186 inline const Aws::String& GetLanguage() const { return m_language; }
187 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
188 template <typename LanguageT = Aws::String>
189 void SetLanguage(LanguageT&& value) {
190 m_languageHasBeenSet = true;
191 m_language = std::forward<LanguageT>(value);
192 }
193 template <typename LanguageT = Aws::String>
194 SearchTextRequest& WithLanguage(LanguageT&& value) {
195 SetLanguage(std::forward<LanguageT>(value));
196 return *this;
197 }
199
201
210 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
211 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
212 template <typename PoliticalViewT = Aws::String>
213 void SetPoliticalView(PoliticalViewT&& value) {
214 m_politicalViewHasBeenSet = true;
215 m_politicalView = std::forward<PoliticalViewT>(value);
216 }
217 template <typename PoliticalViewT = Aws::String>
218 SearchTextRequest& WithPoliticalView(PoliticalViewT&& value) {
219 SetPoliticalView(std::forward<PoliticalViewT>(value));
220 return *this;
221 }
223
225
235 inline SearchTextIntendedUse GetIntendedUse() const { return m_intendedUse; }
236 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
238 m_intendedUseHasBeenSet = true;
239 m_intendedUse = value;
240 }
242 SetIntendedUse(value);
243 return *this;
244 }
246
248
252 inline const Aws::String& GetNextToken() const { return m_nextToken; }
253 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
254 template <typename NextTokenT = Aws::String>
255 void SetNextToken(NextTokenT&& value) {
256 m_nextTokenHasBeenSet = true;
257 m_nextToken = std::forward<NextTokenT>(value);
258 }
259 template <typename NextTokenT = Aws::String>
260 SearchTextRequest& WithNextToken(NextTokenT&& value) {
261 SetNextToken(std::forward<NextTokenT>(value));
262 return *this;
263 }
265
267
271 inline const Aws::String& GetKey() const { return m_key; }
272 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
273 template <typename KeyT = Aws::String>
274 void SetKey(KeyT&& value) {
275 m_keyHasBeenSet = true;
276 m_key = std::forward<KeyT>(value);
277 }
278 template <typename KeyT = Aws::String>
279 SearchTextRequest& WithKey(KeyT&& value) {
280 SetKey(std::forward<KeyT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_queryText;
286
287 Aws::String m_queryId;
288
289 int m_maxResults{0};
290
291 Aws::Vector<double> m_biasPosition;
292
293 SearchTextFilter m_filter;
294
295 Aws::Vector<SearchTextAdditionalFeature> m_additionalFeatures;
296
297 Aws::String m_language;
298
299 Aws::String m_politicalView;
300
302
303 Aws::String m_nextToken;
304
305 Aws::String m_key;
306 bool m_queryTextHasBeenSet = false;
307 bool m_queryIdHasBeenSet = false;
308 bool m_maxResultsHasBeenSet = false;
309 bool m_biasPositionHasBeenSet = false;
310 bool m_filterHasBeenSet = false;
311 bool m_additionalFeaturesHasBeenSet = false;
312 bool m_languageHasBeenSet = false;
313 bool m_politicalViewHasBeenSet = false;
314 bool m_intendedUseHasBeenSet = false;
315 bool m_nextTokenHasBeenSet = false;
316 bool m_keyHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace GeoPlaces
321} // 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