AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace GeoPlaces {
22namespace Model {
23
27 public:
28 AWS_GEOPLACES_API SuggestRequest() = 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 "Suggest"; }
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 SuggestRequest& WithQueryText(QueryTextT&& value) {
56 SetQueryText(std::forward<QueryTextT>(value));
57 return *this;
58 }
60
62
66 inline int GetMaxResults() const { return m_maxResults; }
67 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
68 inline void SetMaxResults(int value) {
69 m_maxResultsHasBeenSet = true;
70 m_maxResults = value;
71 }
72 inline SuggestRequest& WithMaxResults(int value) {
73 SetMaxResults(value);
74 return *this;
75 }
77
79
86 inline int GetMaxQueryRefinements() const { return m_maxQueryRefinements; }
87 inline bool MaxQueryRefinementsHasBeenSet() const { return m_maxQueryRefinementsHasBeenSet; }
88 inline void SetMaxQueryRefinements(int value) {
89 m_maxQueryRefinementsHasBeenSet = true;
90 m_maxQueryRefinements = value;
91 }
94 return *this;
95 }
97
99
106 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
107 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
108 template <typename BiasPositionT = Aws::Vector<double>>
109 void SetBiasPosition(BiasPositionT&& value) {
110 m_biasPositionHasBeenSet = true;
111 m_biasPosition = std::forward<BiasPositionT>(value);
112 }
113 template <typename BiasPositionT = Aws::Vector<double>>
114 SuggestRequest& WithBiasPosition(BiasPositionT&& value) {
115 SetBiasPosition(std::forward<BiasPositionT>(value));
116 return *this;
117 }
118 inline SuggestRequest& AddBiasPosition(double value) {
119 m_biasPositionHasBeenSet = true;
120 m_biasPosition.push_back(value);
121 return *this;
122 }
124
126
130 inline const SuggestFilter& GetFilter() const { return m_filter; }
131 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
132 template <typename FilterT = SuggestFilter>
133 void SetFilter(FilterT&& value) {
134 m_filterHasBeenSet = true;
135 m_filter = std::forward<FilterT>(value);
136 }
137 template <typename FilterT = SuggestFilter>
138 SuggestRequest& WithFilter(FilterT&& value) {
139 SetFilter(std::forward<FilterT>(value));
140 return *this;
141 }
143
145
152 inline const Aws::Vector<SuggestAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
153 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
154 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
155 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
156 m_additionalFeaturesHasBeenSet = true;
157 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
158 }
159 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
160 SuggestRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
161 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
162 return *this;
163 }
165 m_additionalFeaturesHasBeenSet = true;
166 m_additionalFeatures.push_back(value);
167 return *this;
168 }
170
172
182 inline const Aws::String& GetLanguage() const { return m_language; }
183 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
184 template <typename LanguageT = Aws::String>
185 void SetLanguage(LanguageT&& value) {
186 m_languageHasBeenSet = true;
187 m_language = std::forward<LanguageT>(value);
188 }
189 template <typename LanguageT = Aws::String>
190 SuggestRequest& WithLanguage(LanguageT&& value) {
191 SetLanguage(std::forward<LanguageT>(value));
192 return *this;
193 }
195
197
206 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
207 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
208 template <typename PoliticalViewT = Aws::String>
209 void SetPoliticalView(PoliticalViewT&& value) {
210 m_politicalViewHasBeenSet = true;
211 m_politicalView = std::forward<PoliticalViewT>(value);
212 }
213 template <typename PoliticalViewT = Aws::String>
214 SuggestRequest& WithPoliticalView(PoliticalViewT&& value) {
215 SetPoliticalView(std::forward<PoliticalViewT>(value));
216 return *this;
217 }
219
221
226 inline SuggestIntendedUse GetIntendedUse() const { return m_intendedUse; }
227 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
229 m_intendedUseHasBeenSet = true;
230 m_intendedUse = value;
231 }
233 SetIntendedUse(value);
234 return *this;
235 }
237
239
243 inline const Aws::String& GetKey() const { return m_key; }
244 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
245 template <typename KeyT = Aws::String>
246 void SetKey(KeyT&& value) {
247 m_keyHasBeenSet = true;
248 m_key = std::forward<KeyT>(value);
249 }
250 template <typename KeyT = Aws::String>
251 SuggestRequest& WithKey(KeyT&& value) {
252 SetKey(std::forward<KeyT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_queryText;
258
259 int m_maxResults{0};
260
261 int m_maxQueryRefinements{0};
262
263 Aws::Vector<double> m_biasPosition;
264
265 SuggestFilter m_filter;
266
267 Aws::Vector<SuggestAdditionalFeature> m_additionalFeatures;
268
269 Aws::String m_language;
270
271 Aws::String m_politicalView;
272
274
275 Aws::String m_key;
276 bool m_queryTextHasBeenSet = false;
277 bool m_maxResultsHasBeenSet = false;
278 bool m_maxQueryRefinementsHasBeenSet = false;
279 bool m_biasPositionHasBeenSet = false;
280 bool m_filterHasBeenSet = false;
281 bool m_additionalFeaturesHasBeenSet = false;
282 bool m_languageHasBeenSet = false;
283 bool m_politicalViewHasBeenSet = false;
284 bool m_intendedUseHasBeenSet = false;
285 bool m_keyHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace GeoPlaces
290} // 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)
const Aws::String & GetLanguage() const
const Aws::String & GetPoliticalView() const
AWS_GEOPLACES_API Aws::String SerializePayload() const override
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector