AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) {
90 m_maxResultsHasBeenSet = true;
91 m_maxResults = value;
92 }
94 SetMaxResults(value);
95 return *this;
96 }
98
100
104 inline const SearchNearbyFilter& GetFilter() const { return m_filter; }
105 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
106 template <typename FilterT = SearchNearbyFilter>
107 void SetFilter(FilterT&& value) {
108 m_filterHasBeenSet = true;
109 m_filter = std::forward<FilterT>(value);
110 }
111 template <typename FilterT = SearchNearbyFilter>
112 SearchNearbyRequest& WithFilter(FilterT&& value) {
113 SetFilter(std::forward<FilterT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Vector<SearchNearbyAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
124 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
125 template <typename AdditionalFeaturesT = Aws::Vector<SearchNearbyAdditionalFeature>>
126 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
127 m_additionalFeaturesHasBeenSet = true;
128 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
129 }
130 template <typename AdditionalFeaturesT = Aws::Vector<SearchNearbyAdditionalFeature>>
131 SearchNearbyRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
132 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
133 return *this;
134 }
136 m_additionalFeaturesHasBeenSet = true;
137 m_additionalFeatures.push_back(value);
138 return *this;
139 }
141
143
149 inline const Aws::String& GetLanguage() const { return m_language; }
150 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
151 template <typename LanguageT = Aws::String>
152 void SetLanguage(LanguageT&& value) {
153 m_languageHasBeenSet = true;
154 m_language = std::forward<LanguageT>(value);
155 }
156 template <typename LanguageT = Aws::String>
157 SearchNearbyRequest& WithLanguage(LanguageT&& value) {
158 SetLanguage(std::forward<LanguageT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
170 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
171 template <typename PoliticalViewT = Aws::String>
172 void SetPoliticalView(PoliticalViewT&& value) {
173 m_politicalViewHasBeenSet = true;
174 m_politicalView = std::forward<PoliticalViewT>(value);
175 }
176 template <typename PoliticalViewT = Aws::String>
177 SearchNearbyRequest& WithPoliticalView(PoliticalViewT&& value) {
178 SetPoliticalView(std::forward<PoliticalViewT>(value));
179 return *this;
180 }
182
184
193 inline SearchNearbyIntendedUse GetIntendedUse() const { return m_intendedUse; }
194 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
196 m_intendedUseHasBeenSet = true;
197 m_intendedUse = value;
198 }
200 SetIntendedUse(value);
201 return *this;
202 }
204
206
210 inline const Aws::String& GetNextToken() const { return m_nextToken; }
211 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
212 template <typename NextTokenT = Aws::String>
213 void SetNextToken(NextTokenT&& value) {
214 m_nextTokenHasBeenSet = true;
215 m_nextToken = std::forward<NextTokenT>(value);
216 }
217 template <typename NextTokenT = Aws::String>
218 SearchNearbyRequest& WithNextToken(NextTokenT&& value) {
219 SetNextToken(std::forward<NextTokenT>(value));
220 return *this;
221 }
223
225
229 inline const Aws::String& GetKey() const { return m_key; }
230 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
231 template <typename KeyT = Aws::String>
232 void SetKey(KeyT&& value) {
233 m_keyHasBeenSet = true;
234 m_key = std::forward<KeyT>(value);
235 }
236 template <typename KeyT = Aws::String>
238 SetKey(std::forward<KeyT>(value));
239 return *this;
240 }
242 private:
243 Aws::Vector<double> m_queryPosition;
244 bool m_queryPositionHasBeenSet = false;
245
246 long long m_queryRadius{0};
247 bool m_queryRadiusHasBeenSet = false;
248
249 int m_maxResults{0};
250 bool m_maxResultsHasBeenSet = false;
251
252 SearchNearbyFilter m_filter;
253 bool m_filterHasBeenSet = false;
254
256 bool m_additionalFeaturesHasBeenSet = false;
257
258 Aws::String m_language;
259 bool m_languageHasBeenSet = false;
260
261 Aws::String m_politicalView;
262 bool m_politicalViewHasBeenSet = false;
263
265 bool m_intendedUseHasBeenSet = false;
266
267 Aws::String m_nextToken;
268 bool m_nextTokenHasBeenSet = false;
269
270 Aws::String m_key;
271 bool m_keyHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace GeoPlaces
276} // 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