AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SearchNearbyRequest.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/SearchNearbyAdditionalFeature.h>
12#include <aws/geo-places/model/SearchNearbyFilter.h>
13#include <aws/geo-places/model/SearchNearbyIntendedUse.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 SearchNearbyRequest() = 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 "SearchNearby"; }
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
46 inline const Aws::Vector<double>& GetQueryPosition() const { return m_queryPosition; }
47 inline bool QueryPositionHasBeenSet() const { return m_queryPositionHasBeenSet; }
48 template <typename QueryPositionT = Aws::Vector<double>>
49 void SetQueryPosition(QueryPositionT&& value) {
50 m_queryPositionHasBeenSet = true;
51 m_queryPosition = std::forward<QueryPositionT>(value);
52 }
53 template <typename QueryPositionT = Aws::Vector<double>>
54 SearchNearbyRequest& WithQueryPosition(QueryPositionT&& value) {
55 SetQueryPosition(std::forward<QueryPositionT>(value));
56 return *this;
57 }
58 inline SearchNearbyRequest& AddQueryPosition(double value) {
59 m_queryPositionHasBeenSet = true;
60 m_queryPosition.push_back(value);
61 return *this;
62 }
64
66
71 inline long long GetQueryRadius() const { return m_queryRadius; }
72 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
73 inline void SetQueryRadius(long long value) {
74 m_queryRadiusHasBeenSet = true;
75 m_queryRadius = value;
76 }
77 inline SearchNearbyRequest& WithQueryRadius(long long value) {
78 SetQueryRadius(value);
79 return *this;
80 }
82
84
88 inline int GetMaxResults() const { return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) {
91 m_maxResultsHasBeenSet = true;
92 m_maxResults = value;
93 }
95 SetMaxResults(value);
96 return *this;
97 }
99
101
105 inline const SearchNearbyFilter& GetFilter() const { return m_filter; }
106 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
107 template <typename FilterT = SearchNearbyFilter>
108 void SetFilter(FilterT&& value) {
109 m_filterHasBeenSet = true;
110 m_filter = std::forward<FilterT>(value);
111 }
112 template <typename FilterT = SearchNearbyFilter>
113 SearchNearbyRequest& WithFilter(FilterT&& value) {
114 SetFilter(std::forward<FilterT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::Vector<SearchNearbyAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
125 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
126 template <typename AdditionalFeaturesT = Aws::Vector<SearchNearbyAdditionalFeature>>
127 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
128 m_additionalFeaturesHasBeenSet = true;
129 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
130 }
131 template <typename AdditionalFeaturesT = Aws::Vector<SearchNearbyAdditionalFeature>>
132 SearchNearbyRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
133 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
134 return *this;
135 }
137 m_additionalFeaturesHasBeenSet = true;
138 m_additionalFeatures.push_back(value);
139 return *this;
140 }
142
144
150 inline const Aws::String& GetLanguage() const { return m_language; }
151 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
152 template <typename LanguageT = Aws::String>
153 void SetLanguage(LanguageT&& value) {
154 m_languageHasBeenSet = true;
155 m_language = std::forward<LanguageT>(value);
156 }
157 template <typename LanguageT = Aws::String>
158 SearchNearbyRequest& WithLanguage(LanguageT&& value) {
159 SetLanguage(std::forward<LanguageT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
171 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
172 template <typename PoliticalViewT = Aws::String>
173 void SetPoliticalView(PoliticalViewT&& value) {
174 m_politicalViewHasBeenSet = true;
175 m_politicalView = std::forward<PoliticalViewT>(value);
176 }
177 template <typename PoliticalViewT = Aws::String>
178 SearchNearbyRequest& WithPoliticalView(PoliticalViewT&& value) {
179 SetPoliticalView(std::forward<PoliticalViewT>(value));
180 return *this;
181 }
183
185
194 inline SearchNearbyIntendedUse GetIntendedUse() const { return m_intendedUse; }
195 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
197 m_intendedUseHasBeenSet = true;
198 m_intendedUse = value;
199 }
201 SetIntendedUse(value);
202 return *this;
203 }
205
207
211 inline const Aws::String& GetNextToken() const { return m_nextToken; }
212 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
213 template <typename NextTokenT = Aws::String>
214 void SetNextToken(NextTokenT&& value) {
215 m_nextTokenHasBeenSet = true;
216 m_nextToken = std::forward<NextTokenT>(value);
217 }
218 template <typename NextTokenT = Aws::String>
219 SearchNearbyRequest& WithNextToken(NextTokenT&& value) {
220 SetNextToken(std::forward<NextTokenT>(value));
221 return *this;
222 }
224
226
230 inline const Aws::String& GetKey() const { return m_key; }
231 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
232 template <typename KeyT = Aws::String>
233 void SetKey(KeyT&& value) {
234 m_keyHasBeenSet = true;
235 m_key = std::forward<KeyT>(value);
236 }
237 template <typename KeyT = Aws::String>
239 SetKey(std::forward<KeyT>(value));
240 return *this;
241 }
243 private:
244 Aws::Vector<double> m_queryPosition;
245
246 long long m_queryRadius{0};
247
248 int m_maxResults{0};
249
250 SearchNearbyFilter m_filter;
251
253
254 Aws::String m_language;
255
256 Aws::String m_politicalView;
257
259
260 Aws::String m_nextToken;
261
262 Aws::String m_key;
263 bool m_queryPositionHasBeenSet = false;
264 bool m_queryRadiusHasBeenSet = false;
265 bool m_maxResultsHasBeenSet = false;
266 bool m_filterHasBeenSet = false;
267 bool m_additionalFeaturesHasBeenSet = false;
268 bool m_languageHasBeenSet = false;
269 bool m_politicalViewHasBeenSet = false;
270 bool m_intendedUseHasBeenSet = false;
271 bool m_nextTokenHasBeenSet = false;
272 bool m_keyHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace GeoPlaces
277} // namespace Aws
const SearchNearbyFilter & GetFilter() const
SearchNearbyRequest & WithQueryRadius(long long value)
SearchNearbyRequest & WithQueryPosition(QueryPositionT &&value)
const Aws::Vector< double > & GetQueryPosition() const
AWS_GEOPLACES_API Aws::String SerializePayload() const override
SearchNearbyIntendedUse GetIntendedUse() const
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
SearchNearbyRequest & AddAdditionalFeatures(SearchNearbyAdditionalFeature value)
SearchNearbyRequest & WithIntendedUse(SearchNearbyIntendedUse value)
AWS_GEOPLACES_API SearchNearbyRequest()=default
SearchNearbyRequest & WithKey(KeyT &&value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
SearchNearbyRequest & WithLanguage(LanguageT &&value)
const Aws::Vector< SearchNearbyAdditionalFeature > & GetAdditionalFeatures() const
void SetIntendedUse(SearchNearbyIntendedUse value)
void SetQueryPosition(QueryPositionT &&value)
SearchNearbyRequest & WithFilter(FilterT &&value)
virtual const char * GetServiceRequestName() const override
SearchNearbyRequest & AddQueryPosition(double value)
SearchNearbyRequest & WithNextToken(NextTokenT &&value)
SearchNearbyRequest & WithMaxResults(int value)
SearchNearbyRequest & WithPoliticalView(PoliticalViewT &&value)
SearchNearbyRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector