AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
ReverseGeocodeRequest.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/ReverseGeocodeAdditionalFeature.h>
12#include <aws/geo-places/model/ReverseGeocodeAddressNamesMode.h>
13#include <aws/geo-places/model/ReverseGeocodeFilter.h>
14#include <aws/geo-places/model/ReverseGeocodeIntendedUse.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Http {
20class URI;
21} // namespace Http
22namespace GeoPlaces {
23namespace Model {
24
28 public:
29 AWS_GEOPLACES_API ReverseGeocodeRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ReverseGeocode"; }
36
37 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
38
39 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
47 inline const Aws::Vector<double>& GetQueryPosition() const { return m_queryPosition; }
48 inline bool QueryPositionHasBeenSet() const { return m_queryPositionHasBeenSet; }
49 template <typename QueryPositionT = Aws::Vector<double>>
50 void SetQueryPosition(QueryPositionT&& value) {
51 m_queryPositionHasBeenSet = true;
52 m_queryPosition = std::forward<QueryPositionT>(value);
53 }
54 template <typename QueryPositionT = Aws::Vector<double>>
55 ReverseGeocodeRequest& WithQueryPosition(QueryPositionT&& value) {
56 SetQueryPosition(std::forward<QueryPositionT>(value));
57 return *this;
58 }
60 m_queryPositionHasBeenSet = true;
61 m_queryPosition.push_back(value);
62 return *this;
63 }
65
67
74 inline long long GetQueryRadius() const { return m_queryRadius; }
75 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
76 inline void SetQueryRadius(long long value) {
77 m_queryRadiusHasBeenSet = true;
78 m_queryRadius = value;
79 }
80 inline ReverseGeocodeRequest& WithQueryRadius(long long value) {
81 SetQueryRadius(value);
82 return *this;
83 }
85
87
91 inline int GetMaxResults() const { return m_maxResults; }
92 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 inline void SetMaxResults(int value) {
94 m_maxResultsHasBeenSet = true;
95 m_maxResults = value;
96 }
98 SetMaxResults(value);
99 return *this;
100 }
102
104
108 inline const ReverseGeocodeFilter& GetFilter() const { return m_filter; }
109 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
110 template <typename FilterT = ReverseGeocodeFilter>
111 void SetFilter(FilterT&& value) {
112 m_filterHasBeenSet = true;
113 m_filter = std::forward<FilterT>(value);
114 }
115 template <typename FilterT = ReverseGeocodeFilter>
117 SetFilter(std::forward<FilterT>(value));
118 return *this;
119 }
121
123
130 inline const Aws::Vector<ReverseGeocodeAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
131 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
132 template <typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
133 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
134 m_additionalFeaturesHasBeenSet = true;
135 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
136 }
137 template <typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
138 ReverseGeocodeRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
139 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
140 return *this;
141 }
143 m_additionalFeaturesHasBeenSet = true;
144 m_additionalFeatures.push_back(value);
145 return *this;
146 }
148
150
161 inline const Aws::String& GetLanguage() const { return m_language; }
162 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
163 template <typename LanguageT = Aws::String>
164 void SetLanguage(LanguageT&& value) {
165 m_languageHasBeenSet = true;
166 m_language = std::forward<LanguageT>(value);
167 }
168 template <typename LanguageT = Aws::String>
170 SetLanguage(std::forward<LanguageT>(value));
171 return *this;
172 }
174
176
185 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
186 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
187 template <typename PoliticalViewT = Aws::String>
188 void SetPoliticalView(PoliticalViewT&& value) {
189 m_politicalViewHasBeenSet = true;
190 m_politicalView = std::forward<PoliticalViewT>(value);
191 }
192 template <typename PoliticalViewT = Aws::String>
193 ReverseGeocodeRequest& WithPoliticalView(PoliticalViewT&& value) {
194 SetPoliticalView(std::forward<PoliticalViewT>(value));
195 return *this;
196 }
198
200
210 inline ReverseGeocodeIntendedUse GetIntendedUse() const { return m_intendedUse; }
211 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
213 m_intendedUseHasBeenSet = true;
214 m_intendedUse = value;
215 }
217 SetIntendedUse(value);
218 return *this;
219 }
221
223
227 inline const Aws::String& GetKey() const { return m_key; }
228 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
229 template <typename KeyT = Aws::String>
230 void SetKey(KeyT&& value) {
231 m_keyHasBeenSet = true;
232 m_key = std::forward<KeyT>(value);
233 }
234 template <typename KeyT = Aws::String>
236 SetKey(std::forward<KeyT>(value));
237 return *this;
238 }
240
242
248 inline double GetHeading() const { return m_heading; }
249 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
250 inline void SetHeading(double value) {
251 m_headingHasBeenSet = true;
252 m_heading = value;
253 }
254 inline ReverseGeocodeRequest& WithHeading(double value) {
255 SetHeading(value);
256 return *this;
257 }
259
261
267 inline ReverseGeocodeAddressNamesMode GetAddressNamesMode() const { return m_addressNamesMode; }
268 inline bool AddressNamesModeHasBeenSet() const { return m_addressNamesModeHasBeenSet; }
270 m_addressNamesModeHasBeenSet = true;
271 m_addressNamesMode = value;
272 }
274 SetAddressNamesMode(value);
275 return *this;
276 }
278 private:
279 Aws::Vector<double> m_queryPosition;
280
281 long long m_queryRadius{0};
282
283 int m_maxResults{0};
284
285 ReverseGeocodeFilter m_filter;
286
288
289 Aws::String m_language;
290
291 Aws::String m_politicalView;
292
294
295 Aws::String m_key;
296
297 double m_heading{0.0};
298
300 bool m_queryPositionHasBeenSet = false;
301 bool m_queryRadiusHasBeenSet = false;
302 bool m_maxResultsHasBeenSet = false;
303 bool m_filterHasBeenSet = false;
304 bool m_additionalFeaturesHasBeenSet = false;
305 bool m_languageHasBeenSet = false;
306 bool m_politicalViewHasBeenSet = false;
307 bool m_intendedUseHasBeenSet = false;
308 bool m_keyHasBeenSet = false;
309 bool m_headingHasBeenSet = false;
310 bool m_addressNamesModeHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace GeoPlaces
315} // namespace Aws
ReverseGeocodeRequest & WithQueryPosition(QueryPositionT &&value)
ReverseGeocodeRequest & WithIntendedUse(ReverseGeocodeIntendedUse value)
void SetAddressNamesMode(ReverseGeocodeAddressNamesMode value)
ReverseGeocodeRequest & WithFilter(FilterT &&value)
ReverseGeocodeRequest & WithKey(KeyT &&value)
const Aws::Vector< ReverseGeocodeAdditionalFeature > & GetAdditionalFeatures() const
ReverseGeocodeRequest & WithAddressNamesMode(ReverseGeocodeAddressNamesMode value)
ReverseGeocodeRequest & WithLanguage(LanguageT &&value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ReverseGeocodeRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
ReverseGeocodeRequest & WithMaxResults(int value)
void SetIntendedUse(ReverseGeocodeIntendedUse value)
ReverseGeocodeRequest & AddAdditionalFeatures(ReverseGeocodeAdditionalFeature value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const ReverseGeocodeFilter & GetFilter() const
AWS_GEOPLACES_API ReverseGeocodeRequest()=default
ReverseGeocodeRequest & WithHeading(double value)
ReverseGeocodeAddressNamesMode GetAddressNamesMode() const
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
ReverseGeocodeIntendedUse GetIntendedUse() const
ReverseGeocodeRequest & AddQueryPosition(double value)
ReverseGeocodeRequest & WithPoliticalView(PoliticalViewT &&value)
const Aws::Vector< double > & GetQueryPosition() const
ReverseGeocodeRequest & WithQueryRadius(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector