AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
83 inline int GetMaxQueryRefinements() const { return m_maxQueryRefinements; }
84 inline bool MaxQueryRefinementsHasBeenSet() const { return m_maxQueryRefinementsHasBeenSet; }
85 inline void SetMaxQueryRefinements(int value) {
86 m_maxQueryRefinementsHasBeenSet = true;
87 m_maxQueryRefinements = value;
88 }
91 return *this;
92 }
94
96
103 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
104 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
105 template <typename BiasPositionT = Aws::Vector<double>>
106 void SetBiasPosition(BiasPositionT&& value) {
107 m_biasPositionHasBeenSet = true;
108 m_biasPosition = std::forward<BiasPositionT>(value);
109 }
110 template <typename BiasPositionT = Aws::Vector<double>>
111 SuggestRequest& WithBiasPosition(BiasPositionT&& value) {
112 SetBiasPosition(std::forward<BiasPositionT>(value));
113 return *this;
114 }
115 inline SuggestRequest& AddBiasPosition(double value) {
116 m_biasPositionHasBeenSet = true;
117 m_biasPosition.push_back(value);
118 return *this;
119 }
121
123
127 inline const SuggestFilter& GetFilter() const { return m_filter; }
128 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
129 template <typename FilterT = SuggestFilter>
130 void SetFilter(FilterT&& value) {
131 m_filterHasBeenSet = true;
132 m_filter = std::forward<FilterT>(value);
133 }
134 template <typename FilterT = SuggestFilter>
135 SuggestRequest& WithFilter(FilterT&& value) {
136 SetFilter(std::forward<FilterT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Vector<SuggestAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
147 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
148 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
149 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
150 m_additionalFeaturesHasBeenSet = true;
151 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
152 }
153 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
154 SuggestRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
155 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
156 return *this;
157 }
159 m_additionalFeaturesHasBeenSet = true;
160 m_additionalFeatures.push_back(value);
161 return *this;
162 }
164
166
172 inline const Aws::String& GetLanguage() const { return m_language; }
173 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
174 template <typename LanguageT = Aws::String>
175 void SetLanguage(LanguageT&& value) {
176 m_languageHasBeenSet = true;
177 m_language = std::forward<LanguageT>(value);
178 }
179 template <typename LanguageT = Aws::String>
180 SuggestRequest& WithLanguage(LanguageT&& value) {
181 SetLanguage(std::forward<LanguageT>(value));
182 return *this;
183 }
185
187
192 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
193 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
194 template <typename PoliticalViewT = Aws::String>
195 void SetPoliticalView(PoliticalViewT&& value) {
196 m_politicalViewHasBeenSet = true;
197 m_politicalView = std::forward<PoliticalViewT>(value);
198 }
199 template <typename PoliticalViewT = Aws::String>
200 SuggestRequest& WithPoliticalView(PoliticalViewT&& value) {
201 SetPoliticalView(std::forward<PoliticalViewT>(value));
202 return *this;
203 }
205
207
211 inline SuggestIntendedUse GetIntendedUse() const { return m_intendedUse; }
212 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
214 m_intendedUseHasBeenSet = true;
215 m_intendedUse = value;
216 }
218 SetIntendedUse(value);
219 return *this;
220 }
222
224
228 inline const Aws::String& GetKey() const { return m_key; }
229 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
230 template <typename KeyT = Aws::String>
231 void SetKey(KeyT&& value) {
232 m_keyHasBeenSet = true;
233 m_key = std::forward<KeyT>(value);
234 }
235 template <typename KeyT = Aws::String>
236 SuggestRequest& WithKey(KeyT&& value) {
237 SetKey(std::forward<KeyT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_queryText;
243
244 int m_maxResults{0};
245
246 int m_maxQueryRefinements{0};
247
248 Aws::Vector<double> m_biasPosition;
249
250 SuggestFilter m_filter;
251
252 Aws::Vector<SuggestAdditionalFeature> m_additionalFeatures;
253
254 Aws::String m_language;
255
256 Aws::String m_politicalView;
257
259
260 Aws::String m_key;
261 bool m_queryTextHasBeenSet = false;
262 bool m_maxResultsHasBeenSet = false;
263 bool m_maxQueryRefinementsHasBeenSet = false;
264 bool m_biasPositionHasBeenSet = false;
265 bool m_filterHasBeenSet = false;
266 bool m_additionalFeaturesHasBeenSet = false;
267 bool m_languageHasBeenSet = false;
268 bool m_politicalViewHasBeenSet = false;
269 bool m_intendedUseHasBeenSet = false;
270 bool m_keyHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace GeoPlaces
275} // 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