AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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
52 inline const Aws::String& GetQueryText() const { return m_queryText; }
53 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
54 template<typename QueryTextT = Aws::String>
55 void SetQueryText(QueryTextT&& value) { m_queryTextHasBeenSet = true; m_queryText = std::forward<QueryTextT>(value); }
56 template<typename QueryTextT = Aws::String>
57 SuggestRequest& WithQueryText(QueryTextT&& value) { SetQueryText(std::forward<QueryTextT>(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 template<typename BiasPositionT = Aws::Vector<double>>
92 void SetBiasPosition(BiasPositionT&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::forward<BiasPositionT>(value); }
93 template<typename BiasPositionT = Aws::Vector<double>>
94 SuggestRequest& WithBiasPosition(BiasPositionT&& value) { SetBiasPosition(std::forward<BiasPositionT>(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 template<typename FilterT = SuggestFilter>
106 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
107 template<typename FilterT = SuggestFilter>
108 SuggestRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(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 template<typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
119 void SetAdditionalFeatures(AdditionalFeaturesT&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::forward<AdditionalFeaturesT>(value); }
120 template<typename AdditionalFeaturesT = Aws::Vector<SuggestAdditionalFeature>>
121 SuggestRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) { SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value)); return *this;}
122 inline SuggestRequest& AddAdditionalFeatures(SuggestAdditionalFeature value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
124
126
132 inline const Aws::String& GetLanguage() const { return m_language; }
133 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
134 template<typename LanguageT = Aws::String>
135 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
136 template<typename LanguageT = Aws::String>
137 SuggestRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
139
141
146 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
147 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
148 template<typename PoliticalViewT = Aws::String>
149 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
150 template<typename PoliticalViewT = Aws::String>
151 SuggestRequest& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
153
155
159 inline SuggestIntendedUse GetIntendedUse() const { return m_intendedUse; }
160 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
161 inline void SetIntendedUse(SuggestIntendedUse value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
162 inline SuggestRequest& WithIntendedUse(SuggestIntendedUse value) { SetIntendedUse(value); return *this;}
164
166
170 inline const Aws::String& GetKey() const { return m_key; }
171 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
172 template<typename KeyT = Aws::String>
173 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
174 template<typename KeyT = Aws::String>
175 SuggestRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
177 private:
178
179 Aws::String m_queryText;
180 bool m_queryTextHasBeenSet = false;
181
182 int m_maxResults{0};
183 bool m_maxResultsHasBeenSet = false;
184
185 int m_maxQueryRefinements{0};
186 bool m_maxQueryRefinementsHasBeenSet = false;
187
188 Aws::Vector<double> m_biasPosition;
189 bool m_biasPositionHasBeenSet = false;
190
191 SuggestFilter m_filter;
192 bool m_filterHasBeenSet = false;
193
194 Aws::Vector<SuggestAdditionalFeature> m_additionalFeatures;
195 bool m_additionalFeaturesHasBeenSet = false;
196
197 Aws::String m_language;
198 bool m_languageHasBeenSet = false;
199
200 Aws::String m_politicalView;
201 bool m_politicalViewHasBeenSet = false;
202
204 bool m_intendedUseHasBeenSet = false;
205
206 Aws::String m_key;
207 bool m_keyHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace GeoPlaces
212} // 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