AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
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 SearchTextRequest& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;}
56 inline SearchTextRequest& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;}
57 inline SearchTextRequest& WithQueryText(const char* value) { SetQueryText(value); return *this;}
59
61
64 inline const Aws::String& GetQueryId() const{ return m_queryId; }
65 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
66 inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
67 inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
68 inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
69 inline SearchTextRequest& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
70 inline SearchTextRequest& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
71 inline SearchTextRequest& WithQueryId(const char* value) { SetQueryId(value); return *this;}
73
75
78 inline int GetMaxResults() const{ return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
81 inline SearchTextRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
83
85
92 inline const Aws::Vector<double>& GetBiasPosition() const{ return m_biasPosition; }
93 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
94 inline void SetBiasPosition(const Aws::Vector<double>& value) { m_biasPositionHasBeenSet = true; m_biasPosition = value; }
95 inline void SetBiasPosition(Aws::Vector<double>&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::move(value); }
96 inline SearchTextRequest& WithBiasPosition(const Aws::Vector<double>& value) { SetBiasPosition(value); return *this;}
97 inline SearchTextRequest& WithBiasPosition(Aws::Vector<double>&& value) { SetBiasPosition(std::move(value)); return *this;}
98 inline SearchTextRequest& AddBiasPosition(double value) { m_biasPositionHasBeenSet = true; m_biasPosition.push_back(value); return *this; }
100
102
106 inline const SearchTextFilter& GetFilter() const{ return m_filter; }
107 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
108 inline void SetFilter(const SearchTextFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
109 inline void SetFilter(SearchTextFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
110 inline SearchTextRequest& WithFilter(const SearchTextFilter& value) { SetFilter(value); return *this;}
111 inline SearchTextRequest& WithFilter(SearchTextFilter&& value) { SetFilter(std::move(value)); return *this;}
113
115
119 inline const Aws::Vector<SearchTextAdditionalFeature>& GetAdditionalFeatures() const{ return m_additionalFeatures; }
120 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
121 inline void SetAdditionalFeatures(const Aws::Vector<SearchTextAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
122 inline void SetAdditionalFeatures(Aws::Vector<SearchTextAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
125 inline SearchTextRequest& AddAdditionalFeatures(const SearchTextAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
126 inline SearchTextRequest& AddAdditionalFeatures(SearchTextAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
128
130
136 inline const Aws::String& GetLanguage() const{ return m_language; }
137 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
138 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
139 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
140 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
141 inline SearchTextRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
142 inline SearchTextRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
143 inline SearchTextRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
145
147
152 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
153 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
154 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
155 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
156 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
157 inline SearchTextRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
158 inline SearchTextRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
159 inline SearchTextRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
161
163
167 inline const SearchTextIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
168 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
169 inline void SetIntendedUse(const SearchTextIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
170 inline void SetIntendedUse(SearchTextIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
171 inline SearchTextRequest& WithIntendedUse(const SearchTextIntendedUse& value) { SetIntendedUse(value); return *this;}
172 inline SearchTextRequest& WithIntendedUse(SearchTextIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
174
176
180 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
181 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
183 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
184 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
185 inline SearchTextRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
186 inline SearchTextRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
187 inline SearchTextRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
189
191
195 inline const Aws::String& GetKey() const{ return m_key; }
196 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
197 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
198 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
199 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
200 inline SearchTextRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
201 inline SearchTextRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
202 inline SearchTextRequest& WithKey(const char* value) { SetKey(value); return *this;}
204 private:
205
206 Aws::String m_queryText;
207 bool m_queryTextHasBeenSet = false;
208
209 Aws::String m_queryId;
210 bool m_queryIdHasBeenSet = false;
211
212 int m_maxResults;
213 bool m_maxResultsHasBeenSet = false;
214
215 Aws::Vector<double> m_biasPosition;
216 bool m_biasPositionHasBeenSet = false;
217
218 SearchTextFilter m_filter;
219 bool m_filterHasBeenSet = false;
220
221 Aws::Vector<SearchTextAdditionalFeature> m_additionalFeatures;
222 bool m_additionalFeaturesHasBeenSet = false;
223
224 Aws::String m_language;
225 bool m_languageHasBeenSet = false;
226
227 Aws::String m_politicalView;
228 bool m_politicalViewHasBeenSet = false;
229
230 SearchTextIntendedUse m_intendedUse;
231 bool m_intendedUseHasBeenSet = false;
232
233 Aws::String m_nextToken;
234 bool m_nextTokenHasBeenSet = false;
235
236 Aws::String m_key;
237 bool m_keyHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace GeoPlaces
242} // namespace Aws
void SetBiasPosition(const Aws::Vector< double > &value)
const Aws::Vector< double > & GetBiasPosition() const
SearchTextRequest & WithBiasPosition(const Aws::Vector< double > &value)
SearchTextRequest & WithAdditionalFeatures(const Aws::Vector< SearchTextAdditionalFeature > &value)
void SetNextToken(const Aws::String &value)
void SetBiasPosition(Aws::Vector< double > &&value)
void SetAdditionalFeatures(Aws::Vector< SearchTextAdditionalFeature > &&value)
SearchTextRequest & WithAdditionalFeatures(Aws::Vector< SearchTextAdditionalFeature > &&value)
virtual const char * GetServiceRequestName() const override
SearchTextRequest & WithQueryText(const Aws::String &value)
SearchTextRequest & WithPoliticalView(const Aws::String &value)
SearchTextRequest & AddAdditionalFeatures(const SearchTextAdditionalFeature &value)
void SetLanguage(const Aws::String &value)
void SetFilter(SearchTextFilter &&value)
SearchTextRequest & WithNextToken(const Aws::String &value)
SearchTextRequest & WithKey(const char *value)
void SetAdditionalFeatures(const Aws::Vector< SearchTextAdditionalFeature > &value)
void SetQueryText(const Aws::String &value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SearchTextRequest & WithIntendedUse(SearchTextIntendedUse &&value)
SearchTextRequest & WithLanguage(const char *value)
SearchTextRequest & WithLanguage(const Aws::String &value)
void SetIntendedUse(const SearchTextIntendedUse &value)
SearchTextRequest & AddBiasPosition(double value)
SearchTextRequest & WithQueryId(const char *value)
SearchTextRequest & WithQueryId(Aws::String &&value)
void SetQueryId(const Aws::String &value)
SearchTextRequest & WithPoliticalView(const char *value)
const Aws::Vector< SearchTextAdditionalFeature > & GetAdditionalFeatures() const
const SearchTextIntendedUse & GetIntendedUse() const
const SearchTextFilter & GetFilter() const
SearchTextRequest & WithQueryText(Aws::String &&value)
SearchTextRequest & WithKey(const Aws::String &value)
SearchTextRequest & AddAdditionalFeatures(SearchTextAdditionalFeature &&value)
const Aws::String & GetQueryText() const
SearchTextRequest & WithKey(Aws::String &&value)
void SetIntendedUse(SearchTextIntendedUse &&value)
SearchTextRequest & WithQueryId(const Aws::String &value)
SearchTextRequest & WithFilter(SearchTextFilter &&value)
void SetPoliticalView(const Aws::String &value)
const Aws::String & GetPoliticalView() const
SearchTextRequest & WithBiasPosition(Aws::Vector< double > &&value)
SearchTextRequest & WithIntendedUse(const SearchTextIntendedUse &value)
SearchTextRequest & WithFilter(const SearchTextFilter &value)
SearchTextRequest & WithMaxResults(int value)
SearchTextRequest & WithPoliticalView(Aws::String &&value)
SearchTextRequest & WithNextToken(const char *value)
void SetKey(const Aws::String &value)
SearchTextRequest & WithQueryText(const char *value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetFilter(const SearchTextFilter &value)
SearchTextRequest & WithNextToken(Aws::String &&value)
SearchTextRequest & WithLanguage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector