AWS SDK for C++

AWS SDK for C++ Version 1.11.682

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
65 inline int GetMaxResults() const { return m_maxResults; }
66 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
67 inline void SetMaxResults(int value) {
68 m_maxResultsHasBeenSet = true;
69 m_maxResults = value;
70 }
71 inline SuggestRequest& WithMaxResults(int value) {
72 SetMaxResults(value);
73 return *this;
74 }
76
78
82 inline int GetMaxQueryRefinements() const { return m_maxQueryRefinements; }
83 inline bool MaxQueryRefinementsHasBeenSet() const { return m_maxQueryRefinementsHasBeenSet; }
84 inline void SetMaxQueryRefinements(int value) {
85 m_maxQueryRefinementsHasBeenSet = true;
86 m_maxQueryRefinements = value;
87 }
90 return *this;
91 }
93
95
102 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
103 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
104 template <typename BiasPositionT = Aws::Vector<double>>
105 void SetBiasPosition(BiasPositionT&& value) {
106 m_biasPositionHasBeenSet = true;
107 m_biasPosition = std::forward<BiasPositionT>(value);
108 }
109 template <typename BiasPositionT = Aws::Vector<double>>
110 SuggestRequest& WithBiasPosition(BiasPositionT&& value) {
111 SetBiasPosition(std::forward<BiasPositionT>(value));
112 return *this;
113 }
114 inline SuggestRequest& AddBiasPosition(double value) {
115 m_biasPositionHasBeenSet = true;
116 m_biasPosition.push_back(value);
117 return *this;
118 }
120
122
126 inline const SuggestFilter& GetFilter() const { return m_filter; }
127 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
128 template <typename FilterT = SuggestFilter>
129 void SetFilter(FilterT&& value) {
130 m_filterHasBeenSet = true;
131 m_filter = std::forward<FilterT>(value);
132 }
133 template <typename FilterT = SuggestFilter>
134 SuggestRequest& WithFilter(FilterT&& value) {
135 SetFilter(std::forward<FilterT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::Vector<SuggestAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
146 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
147 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
148 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
149 m_additionalFeaturesHasBeenSet = true;
150 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
151 }
152 template <typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
153 SuggestRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
154 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
155 return *this;
156 }
158 m_additionalFeaturesHasBeenSet = true;
159 m_additionalFeatures.push_back(value);
160 return *this;
161 }
163
165
171 inline const Aws::String& GetLanguage() const { return m_language; }
172 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
173 template <typename LanguageT = Aws::String>
174 void SetLanguage(LanguageT&& value) {
175 m_languageHasBeenSet = true;
176 m_language = std::forward<LanguageT>(value);
177 }
178 template <typename LanguageT = Aws::String>
179 SuggestRequest& WithLanguage(LanguageT&& value) {
180 SetLanguage(std::forward<LanguageT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
192 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
193 template <typename PoliticalViewT = Aws::String>
194 void SetPoliticalView(PoliticalViewT&& value) {
195 m_politicalViewHasBeenSet = true;
196 m_politicalView = std::forward<PoliticalViewT>(value);
197 }
198 template <typename PoliticalViewT = Aws::String>
199 SuggestRequest& WithPoliticalView(PoliticalViewT&& value) {
200 SetPoliticalView(std::forward<PoliticalViewT>(value));
201 return *this;
202 }
204
206
210 inline SuggestIntendedUse GetIntendedUse() const { return m_intendedUse; }
211 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
213 m_intendedUseHasBeenSet = true;
214 m_intendedUse = value;
215 }
217 SetIntendedUse(value);
218 return *this;
219 }
221
223
227 inline const Aws::String& GetKey() const { return m_key; }
228 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
229 template <typename KeyT = Aws::String>
230 void SetKey(KeyT&& value) {
231 m_keyHasBeenSet = true;
232 m_key = std::forward<KeyT>(value);
233 }
234 template <typename KeyT = Aws::String>
235 SuggestRequest& WithKey(KeyT&& value) {
236 SetKey(std::forward<KeyT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_queryText;
242 bool m_queryTextHasBeenSet = false;
243
244 int m_maxResults{0};
245 bool m_maxResultsHasBeenSet = false;
246
247 int m_maxQueryRefinements{0};
248 bool m_maxQueryRefinementsHasBeenSet = false;
249
250 Aws::Vector<double> m_biasPosition;
251 bool m_biasPositionHasBeenSet = false;
252
253 SuggestFilter m_filter;
254 bool m_filterHasBeenSet = false;
255
256 Aws::Vector<SuggestAdditionalFeature> m_additionalFeatures;
257 bool m_additionalFeaturesHasBeenSet = false;
258
259 Aws::String m_language;
260 bool m_languageHasBeenSet = false;
261
262 Aws::String m_politicalView;
263 bool m_politicalViewHasBeenSet = false;
264
266 bool m_intendedUseHasBeenSet = false;
267
268 Aws::String m_key;
269 bool m_keyHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace GeoPlaces
274} // 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