AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
SuggestRequest.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/SuggestAdditionalFeature.h>
12#include <aws/geo-places/model/SuggestFilter.h>
13#include <aws/geo-places/model/SuggestIntendedUse.h>
14#include <aws/geo-places/model/SuggestTravelMode.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 SuggestRequest() = 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 "Suggest"; }
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 SuggestRequest& WithQueryText(QueryTextT&& value) {
57 SetQueryText(std::forward<QueryTextT>(value));
58 return *this;
59 }
61
63
67 inline int GetMaxResults() const { return m_maxResults; }
68 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
69 inline void SetMaxResults(int value) {
70 m_maxResultsHasBeenSet = true;
71 m_maxResults = value;
72 }
73 inline SuggestRequest& WithMaxResults(int value) {
74 SetMaxResults(value);
75 return *this;
76 }
78
80
87 inline int GetMaxQueryRefinements() const { return m_maxQueryRefinements; }
88 inline bool MaxQueryRefinementsHasBeenSet() const { return m_maxQueryRefinementsHasBeenSet; }
89 inline void SetMaxQueryRefinements(int value) {
90 m_maxQueryRefinementsHasBeenSet = true;
91 m_maxQueryRefinements = value;
92 }
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 SuggestRequest& WithBiasPosition(BiasPositionT&& value) {
116 SetBiasPosition(std::forward<BiasPositionT>(value));
117 return *this;
118 }
119 inline SuggestRequest& AddBiasPosition(double value) {
120 m_biasPositionHasBeenSet = true;
121 m_biasPosition.push_back(value);
122 return *this;
123 }
125
127
131 inline const SuggestFilter& GetFilter() const { return m_filter; }
132 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
133 template <typename FilterT = SuggestFilter>
134 void SetFilter(FilterT&& value) {
135 m_filterHasBeenSet = true;
136 m_filter = std::forward<FilterT>(value);
137 }
138 template <typename FilterT = SuggestFilter>
139 SuggestRequest& WithFilter(FilterT&& value) {
140 SetFilter(std::forward<FilterT>(value));
141 return *this;
142 }
144
146
153 inline const Aws::Vector<SuggestAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
154 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
155 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
156 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
157 m_additionalFeaturesHasBeenSet = true;
158 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
159 }
160 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
161 SuggestRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
162 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
163 return *this;
164 }
166 m_additionalFeaturesHasBeenSet = true;
167 m_additionalFeatures.push_back(value);
168 return *this;
169 }
171
173
184 inline const Aws::String& GetLanguage() const { return m_language; }
185 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
186 template <typename LanguageT = Aws::String>
187 void SetLanguage(LanguageT&& value) {
188 m_languageHasBeenSet = true;
189 m_language = std::forward<LanguageT>(value);
190 }
191 template <typename LanguageT = Aws::String>
192 SuggestRequest& WithLanguage(LanguageT&& value) {
193 SetLanguage(std::forward<LanguageT>(value));
194 return *this;
195 }
197
199
208 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
209 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
210 template <typename PoliticalViewT = Aws::String>
211 void SetPoliticalView(PoliticalViewT&& value) {
212 m_politicalViewHasBeenSet = true;
213 m_politicalView = std::forward<PoliticalViewT>(value);
214 }
215 template <typename PoliticalViewT = Aws::String>
216 SuggestRequest& WithPoliticalView(PoliticalViewT&& value) {
217 SetPoliticalView(std::forward<PoliticalViewT>(value));
218 return *this;
219 }
221
223
228 inline SuggestIntendedUse GetIntendedUse() const { return m_intendedUse; }
229 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
231 m_intendedUseHasBeenSet = true;
232 m_intendedUse = value;
233 }
235 SetIntendedUse(value);
236 return *this;
237 }
239
241
246 inline SuggestTravelMode GetTravelMode() const { return m_travelMode; }
247 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
248 inline void SetTravelMode(SuggestTravelMode value) {
249 m_travelModeHasBeenSet = true;
250 m_travelMode = value;
251 }
253 SetTravelMode(value);
254 return *this;
255 }
257
259
263 inline const Aws::String& GetKey() const { return m_key; }
264 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
265 template <typename KeyT = Aws::String>
266 void SetKey(KeyT&& value) {
267 m_keyHasBeenSet = true;
268 m_key = std::forward<KeyT>(value);
269 }
270 template <typename KeyT = Aws::String>
271 SuggestRequest& WithKey(KeyT&& value) {
272 SetKey(std::forward<KeyT>(value));
273 return *this;
274 }
276 private:
277 Aws::String m_queryText;
278
279 int m_maxResults{0};
280
281 int m_maxQueryRefinements{0};
282
283 Aws::Vector<double> m_biasPosition;
284
285 SuggestFilter m_filter;
286
287 Aws::Vector<SuggestAdditionalFeature> m_additionalFeatures;
288
289 Aws::String m_language;
290
291 Aws::String m_politicalView;
292
294
296
297 Aws::String m_key;
298 bool m_queryTextHasBeenSet = false;
299 bool m_maxResultsHasBeenSet = false;
300 bool m_maxQueryRefinementsHasBeenSet = false;
301 bool m_biasPositionHasBeenSet = false;
302 bool m_filterHasBeenSet = false;
303 bool m_additionalFeaturesHasBeenSet = false;
304 bool m_languageHasBeenSet = false;
305 bool m_politicalViewHasBeenSet = false;
306 bool m_intendedUseHasBeenSet = false;
307 bool m_travelModeHasBeenSet = false;
308 bool m_keyHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace GeoPlaces
313} // namespace Aws
void SetBiasPosition(BiasPositionT &&value)
SuggestIntendedUse GetIntendedUse() const
SuggestRequest & AddBiasPosition(double value)
SuggestRequest & AddAdditionalFeatures(SuggestAdditionalFeature value)
SuggestRequest & WithQueryText(QueryTextT &&value)
SuggestRequest & WithLanguage(LanguageT &&value)
SuggestRequest & WithMaxResults(int value)
void SetPoliticalView(PoliticalViewT &&value)
SuggestRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
SuggestRequest & WithMaxQueryRefinements(int value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetKey() const
const SuggestFilter & GetFilter() const
SuggestRequest & WithKey(KeyT &&value)
SuggestRequest & WithTravelMode(SuggestTravelMode value)
const Aws::String & GetLanguage() const
const Aws::String & GetPoliticalView() const
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SuggestTravelMode GetTravelMode() const
const Aws::String & GetQueryText() const
void SetIntendedUse(SuggestIntendedUse value)
void SetQueryText(QueryTextT &&value)
virtual const char * GetServiceRequestName() const override
SuggestRequest & WithBiasPosition(BiasPositionT &&value)
AWS_GEOPLACES_API SuggestRequest()=default
const Aws::Vector< double > & GetBiasPosition() const
SuggestRequest & WithPoliticalView(PoliticalViewT &&value)
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
const Aws::Vector< SuggestAdditionalFeature > & GetAdditionalFeatures() const
SuggestRequest & WithIntendedUse(SuggestIntendedUse value)
SuggestRequest & WithFilter(FilterT &&value)
void SetTravelMode(SuggestTravelMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector