AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SuggestRequest.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/geo-places/GeoPlacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-places/model/SuggestFilter.h>
12#include <aws/geo-places/model/SuggestIntendedUse.h>
13#include <aws/geo-places/model/SuggestAdditionalFeature.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace GeoPlaces
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_GEOPLACES_API SuggestRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "Suggest"; }
39
40 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
41
42 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
50 inline const Aws::String& GetQueryText() const{ return m_queryText; }
51 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
52 inline void SetQueryText(const Aws::String& value) { m_queryTextHasBeenSet = true; m_queryText = value; }
53 inline void SetQueryText(Aws::String&& value) { m_queryTextHasBeenSet = true; m_queryText = std::move(value); }
54 inline void SetQueryText(const char* value) { m_queryTextHasBeenSet = true; m_queryText.assign(value); }
55 inline SuggestRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;}
56 inline SuggestRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;}
57 inline SuggestRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;}
59
61
64 inline int GetMaxResults() const{ return m_maxResults; }
65 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
66 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
67 inline SuggestRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
69
71
75 inline int GetMaxQueryRefinements() const{ return m_maxQueryRefinements; }
76 inline bool MaxQueryRefinementsHasBeenSet() const { return m_maxQueryRefinementsHasBeenSet; }
77 inline void SetMaxQueryRefinements(int value) { m_maxQueryRefinementsHasBeenSet = true; m_maxQueryRefinements = value; }
78 inline SuggestRequest& WithMaxQueryRefinements(int value) { SetMaxQueryRefinements(value); return *this;}
80
82
89 inline const Aws::Vector<double>& GetBiasPosition() const{ return m_biasPosition; }
90 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
91 inline void SetBiasPosition(const Aws::Vector<double>& value) { m_biasPositionHasBeenSet = true; m_biasPosition = value; }
92 inline void SetBiasPosition(Aws::Vector<double>&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::move(value); }
93 inline SuggestRequest& WithBiasPosition(const Aws::Vector<double>& value) { SetBiasPosition(value); return *this;}
94 inline SuggestRequest& WithBiasPosition(Aws::Vector<double>&& value) { SetBiasPosition(std::move(value)); return *this;}
95 inline SuggestRequest& AddBiasPosition(double value) { m_biasPositionHasBeenSet = true; m_biasPosition.push_back(value); return *this; }
97
99
103 inline const SuggestFilter& GetFilter() const{ return m_filter; }
104 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
105 inline void SetFilter(const SuggestFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
106 inline void SetFilter(SuggestFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
107 inline SuggestRequest& WithFilter(const SuggestFilter& value) { SetFilter(value); return *this;}
108 inline SuggestRequest& WithFilter(SuggestFilter&& value) { SetFilter(std::move(value)); return *this;}
110
112
116 inline const Aws::Vector<SuggestAdditionalFeature>& GetAdditionalFeatures() const{ return m_additionalFeatures; }
117 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
118 inline void SetAdditionalFeatures(const Aws::Vector<SuggestAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
119 inline void SetAdditionalFeatures(Aws::Vector<SuggestAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
122 inline SuggestRequest& AddAdditionalFeatures(const SuggestAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
123 inline SuggestRequest& AddAdditionalFeatures(SuggestAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
125
127
133 inline const Aws::String& GetLanguage() const{ return m_language; }
134 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
135 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
136 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
137 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
138 inline SuggestRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
139 inline SuggestRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
140 inline SuggestRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
142
144
149 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
150 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
151 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
152 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
153 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
154 inline SuggestRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
155 inline SuggestRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
156 inline SuggestRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
158
160
164 inline const SuggestIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
165 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
166 inline void SetIntendedUse(const SuggestIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
167 inline void SetIntendedUse(SuggestIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
168 inline SuggestRequest& WithIntendedUse(const SuggestIntendedUse& value) { SetIntendedUse(value); return *this;}
169 inline SuggestRequest& WithIntendedUse(SuggestIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
171
173
177 inline const Aws::String& GetKey() const{ return m_key; }
178 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
179 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
180 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
181 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
182 inline SuggestRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
183 inline SuggestRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
184 inline SuggestRequest& WithKey(const char* value) { SetKey(value); return *this;}
186 private:
187
188 Aws::String m_queryText;
189 bool m_queryTextHasBeenSet = false;
190
191 int m_maxResults;
192 bool m_maxResultsHasBeenSet = false;
193
194 int m_maxQueryRefinements;
195 bool m_maxQueryRefinementsHasBeenSet = false;
196
197 Aws::Vector<double> m_biasPosition;
198 bool m_biasPositionHasBeenSet = false;
199
200 SuggestFilter m_filter;
201 bool m_filterHasBeenSet = false;
202
203 Aws::Vector<SuggestAdditionalFeature> m_additionalFeatures;
204 bool m_additionalFeaturesHasBeenSet = false;
205
206 Aws::String m_language;
207 bool m_languageHasBeenSet = false;
208
209 Aws::String m_politicalView;
210 bool m_politicalViewHasBeenSet = false;
211
212 SuggestIntendedUse m_intendedUse;
213 bool m_intendedUseHasBeenSet = false;
214
215 Aws::String m_key;
216 bool m_keyHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace GeoPlaces
221} // namespace Aws
SuggestRequest & WithQueryText(const Aws::String &value)
void SetKey(const Aws::String &value)
SuggestRequest & WithPoliticalView(const char *value)
SuggestRequest & WithFilter(SuggestFilter &&value)
SuggestRequest & AddBiasPosition(double value)
SuggestRequest & WithIntendedUse(const SuggestIntendedUse &value)
SuggestRequest & WithQueryText(Aws::String &&value)
SuggestRequest & AddAdditionalFeatures(const SuggestAdditionalFeature &value)
void SetLanguage(const Aws::String &value)
SuggestRequest & WithMaxResults(int value)
SuggestRequest & WithLanguage(const char *value)
SuggestRequest & WithMaxQueryRefinements(int value)
void SetBiasPosition(Aws::Vector< double > &&value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetKey() const
const SuggestFilter & GetFilter() const
void SetPoliticalView(const char *value)
SuggestRequest & WithQueryText(const char *value)
SuggestRequest & WithAdditionalFeatures(const Aws::Vector< SuggestAdditionalFeature > &value)
void SetPoliticalView(const Aws::String &value)
const Aws::String & GetLanguage() const
void SetPoliticalView(Aws::String &&value)
SuggestRequest & WithKey(const char *value)
SuggestRequest & WithBiasPosition(Aws::Vector< double > &&value)
const SuggestIntendedUse & GetIntendedUse() const
const Aws::String & GetPoliticalView() const
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SuggestRequest & WithKey(Aws::String &&value)
const Aws::String & GetQueryText() const
SuggestRequest & WithPoliticalView(Aws::String &&value)
SuggestRequest & WithPoliticalView(const Aws::String &value)
SuggestRequest & WithIntendedUse(SuggestIntendedUse &&value)
void SetQueryText(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< double > & GetBiasPosition() const
SuggestRequest & AddAdditionalFeatures(SuggestAdditionalFeature &&value)
void SetIntendedUse(SuggestIntendedUse &&value)
void SetFilter(SuggestFilter &&value)
SuggestRequest & WithBiasPosition(const Aws::Vector< double > &value)
void SetAdditionalFeatures(const Aws::Vector< SuggestAdditionalFeature > &value)
void SetBiasPosition(const Aws::Vector< double > &value)
SuggestRequest & WithLanguage(const Aws::String &value)
void SetLanguage(Aws::String &&value)
void SetQueryText(Aws::String &&value)
void SetAdditionalFeatures(Aws::Vector< SuggestAdditionalFeature > &&value)
const Aws::Vector< SuggestAdditionalFeature > & GetAdditionalFeatures() const
void SetQueryText(const Aws::String &value)
void SetFilter(const SuggestFilter &value)
void SetIntendedUse(const SuggestIntendedUse &value)
SuggestRequest & WithLanguage(Aws::String &&value)
SuggestRequest & WithFilter(const SuggestFilter &value)
SuggestRequest & WithAdditionalFeatures(Aws::Vector< SuggestAdditionalFeature > &&value)
SuggestRequest & WithKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector