AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SearchTextRequest.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/SearchTextFilter.h>
12#include <aws/geo-places/model/SearchTextIntendedUse.h>
13#include <aws/geo-places/model/SearchTextAdditionalFeature.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 SearchTextRequest() = 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 "SearchText"; }
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 SearchTextRequest& WithQueryText(QueryTextT&& value) { SetQueryText(std::forward<QueryTextT>(value)); return *this;}
59
61
68 inline const Aws::String& GetQueryId() const { return m_queryId; }
69 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
70 template<typename QueryIdT = Aws::String>
71 void SetQueryId(QueryIdT&& value) { m_queryIdHasBeenSet = true; m_queryId = std::forward<QueryIdT>(value); }
72 template<typename QueryIdT = Aws::String>
73 SearchTextRequest& WithQueryId(QueryIdT&& value) { SetQueryId(std::forward<QueryIdT>(value)); return *this;}
75
77
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline SearchTextRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85
87
94 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
95 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
96 template<typename BiasPositionT = Aws::Vector<double>>
97 void SetBiasPosition(BiasPositionT&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::forward<BiasPositionT>(value); }
98 template<typename BiasPositionT = Aws::Vector<double>>
99 SearchTextRequest& WithBiasPosition(BiasPositionT&& value) { SetBiasPosition(std::forward<BiasPositionT>(value)); return *this;}
100 inline SearchTextRequest& AddBiasPosition(double value) { m_biasPositionHasBeenSet = true; m_biasPosition.push_back(value); return *this; }
102
104
108 inline const SearchTextFilter& GetFilter() const { return m_filter; }
109 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
110 template<typename FilterT = SearchTextFilter>
111 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
112 template<typename FilterT = SearchTextFilter>
113 SearchTextRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
115
117
121 inline const Aws::Vector<SearchTextAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
122 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
123 template<typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
124 void SetAdditionalFeatures(AdditionalFeaturesT&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::forward<AdditionalFeaturesT>(value); }
125 template<typename AdditionalFeaturesT = Aws::Vector<SearchTextAdditionalFeature>>
126 SearchTextRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) { SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value)); return *this;}
127 inline SearchTextRequest& AddAdditionalFeatures(SearchTextAdditionalFeature value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
129
131
137 inline const Aws::String& GetLanguage() const { return m_language; }
138 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
139 template<typename LanguageT = Aws::String>
140 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
141 template<typename LanguageT = Aws::String>
142 SearchTextRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
144
146
151 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
152 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
153 template<typename PoliticalViewT = Aws::String>
154 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
155 template<typename PoliticalViewT = Aws::String>
156 SearchTextRequest& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
158
160
169 inline SearchTextIntendedUse GetIntendedUse() const { return m_intendedUse; }
170 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
171 inline void SetIntendedUse(SearchTextIntendedUse value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
174
176
180 inline const Aws::String& GetNextToken() const { return m_nextToken; }
181 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 template<typename NextTokenT = Aws::String>
183 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
184 template<typename NextTokenT = Aws::String>
185 SearchTextRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
187
189
193 inline const Aws::String& GetKey() const { return m_key; }
194 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
195 template<typename KeyT = Aws::String>
196 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
197 template<typename KeyT = Aws::String>
198 SearchTextRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
200 private:
201
202 Aws::String m_queryText;
203 bool m_queryTextHasBeenSet = false;
204
205 Aws::String m_queryId;
206 bool m_queryIdHasBeenSet = false;
207
208 int m_maxResults{0};
209 bool m_maxResultsHasBeenSet = false;
210
211 Aws::Vector<double> m_biasPosition;
212 bool m_biasPositionHasBeenSet = false;
213
214 SearchTextFilter m_filter;
215 bool m_filterHasBeenSet = false;
216
217 Aws::Vector<SearchTextAdditionalFeature> m_additionalFeatures;
218 bool m_additionalFeaturesHasBeenSet = false;
219
220 Aws::String m_language;
221 bool m_languageHasBeenSet = false;
222
223 Aws::String m_politicalView;
224 bool m_politicalViewHasBeenSet = false;
225
227 bool m_intendedUseHasBeenSet = false;
228
229 Aws::String m_nextToken;
230 bool m_nextTokenHasBeenSet = false;
231
232 Aws::String m_key;
233 bool m_keyHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace GeoPlaces
238} // namespace Aws
const Aws::Vector< double > & GetBiasPosition() const
AWS_GEOPLACES_API SearchTextRequest()=default
SearchTextRequest & WithKey(KeyT &&value)
SearchTextRequest & AddAdditionalFeatures(SearchTextAdditionalFeature value)
SearchTextRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
void SetPoliticalView(PoliticalViewT &&value)
SearchTextRequest & WithLanguage(LanguageT &&value)
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SearchTextRequest & WithQueryId(QueryIdT &&value)
SearchTextRequest & AddBiasPosition(double value)
SearchTextRequest & WithPoliticalView(PoliticalViewT &&value)
SearchTextIntendedUse GetIntendedUse() const
const Aws::Vector< SearchTextAdditionalFeature > & GetAdditionalFeatures() const
SearchTextRequest & WithFilter(FilterT &&value)
const SearchTextFilter & GetFilter() const
SearchTextRequest & WithQueryText(QueryTextT &&value)
void SetIntendedUse(SearchTextIntendedUse value)
void SetBiasPosition(BiasPositionT &&value)
const Aws::String & GetQueryText() const
SearchTextRequest & WithBiasPosition(BiasPositionT &&value)
const Aws::String & GetPoliticalView() const
SearchTextRequest & WithMaxResults(int value)
SearchTextRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
SearchTextRequest & WithIntendedUse(SearchTextIntendedUse value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector