AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/ReverseGeocodeFilter.h>
13#include <aws/geo-places/model/ReverseGeocodeIntendedUse.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 ReverseGeocodeRequest() = 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 "ReverseGeocode"; }
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 ReverseGeocodeRequest& WithQueryPosition(QueryPositionT&& value) {
55 SetQueryPosition(std::forward<QueryPositionT>(value));
56 return *this;
57 }
59 m_queryPositionHasBeenSet = true;
60 m_queryPosition.push_back(value);
61 return *this;
62 }
64
66
73 inline long long GetQueryRadius() const { return m_queryRadius; }
74 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
75 inline void SetQueryRadius(long long value) {
76 m_queryRadiusHasBeenSet = true;
77 m_queryRadius = value;
78 }
79 inline ReverseGeocodeRequest& WithQueryRadius(long long value) {
80 SetQueryRadius(value);
81 return *this;
82 }
84
86
90 inline int GetMaxResults() const { return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) {
93 m_maxResultsHasBeenSet = true;
94 m_maxResults = value;
95 }
97 SetMaxResults(value);
98 return *this;
99 }
101
103
107 inline const ReverseGeocodeFilter& GetFilter() const { return m_filter; }
108 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
109 template <typename FilterT = ReverseGeocodeFilter>
110 void SetFilter(FilterT&& value) {
111 m_filterHasBeenSet = true;
112 m_filter = std::forward<FilterT>(value);
113 }
114 template <typename FilterT = ReverseGeocodeFilter>
116 SetFilter(std::forward<FilterT>(value));
117 return *this;
118 }
120
122
129 inline const Aws::Vector<ReverseGeocodeAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
130 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
131 template <typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
132 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
133 m_additionalFeaturesHasBeenSet = true;
134 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
135 }
136 template <typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
137 ReverseGeocodeRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
138 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
139 return *this;
140 }
142 m_additionalFeaturesHasBeenSet = true;
143 m_additionalFeatures.push_back(value);
144 return *this;
145 }
147
149
159 inline const Aws::String& GetLanguage() const { return m_language; }
160 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
161 template <typename LanguageT = Aws::String>
162 void SetLanguage(LanguageT&& value) {
163 m_languageHasBeenSet = true;
164 m_language = std::forward<LanguageT>(value);
165 }
166 template <typename LanguageT = Aws::String>
168 SetLanguage(std::forward<LanguageT>(value));
169 return *this;
170 }
172
174
183 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
184 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
185 template <typename PoliticalViewT = Aws::String>
186 void SetPoliticalView(PoliticalViewT&& value) {
187 m_politicalViewHasBeenSet = true;
188 m_politicalView = std::forward<PoliticalViewT>(value);
189 }
190 template <typename PoliticalViewT = Aws::String>
191 ReverseGeocodeRequest& WithPoliticalView(PoliticalViewT&& value) {
192 SetPoliticalView(std::forward<PoliticalViewT>(value));
193 return *this;
194 }
196
198
208 inline ReverseGeocodeIntendedUse GetIntendedUse() const { return m_intendedUse; }
209 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
211 m_intendedUseHasBeenSet = true;
212 m_intendedUse = value;
213 }
215 SetIntendedUse(value);
216 return *this;
217 }
219
221
225 inline const Aws::String& GetKey() const { return m_key; }
226 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
227 template <typename KeyT = Aws::String>
228 void SetKey(KeyT&& value) {
229 m_keyHasBeenSet = true;
230 m_key = std::forward<KeyT>(value);
231 }
232 template <typename KeyT = Aws::String>
234 SetKey(std::forward<KeyT>(value));
235 return *this;
236 }
238
240
246 inline double GetHeading() const { return m_heading; }
247 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
248 inline void SetHeading(double value) {
249 m_headingHasBeenSet = true;
250 m_heading = value;
251 }
252 inline ReverseGeocodeRequest& WithHeading(double value) {
253 SetHeading(value);
254 return *this;
255 }
257 private:
258 Aws::Vector<double> m_queryPosition;
259
260 long long m_queryRadius{0};
261
262 int m_maxResults{0};
263
264 ReverseGeocodeFilter m_filter;
265
267
268 Aws::String m_language;
269
270 Aws::String m_politicalView;
271
273
274 Aws::String m_key;
275
276 double m_heading{0.0};
277 bool m_queryPositionHasBeenSet = false;
278 bool m_queryRadiusHasBeenSet = false;
279 bool m_maxResultsHasBeenSet = false;
280 bool m_filterHasBeenSet = false;
281 bool m_additionalFeaturesHasBeenSet = false;
282 bool m_languageHasBeenSet = false;
283 bool m_politicalViewHasBeenSet = false;
284 bool m_intendedUseHasBeenSet = false;
285 bool m_keyHasBeenSet = false;
286 bool m_headingHasBeenSet = false;
287};
288
289} // namespace Model
290} // namespace GeoPlaces
291} // namespace Aws
ReverseGeocodeRequest & WithQueryPosition(QueryPositionT &&value)
ReverseGeocodeRequest & WithIntendedUse(ReverseGeocodeIntendedUse value)
ReverseGeocodeRequest & WithFilter(FilterT &&value)
ReverseGeocodeRequest & WithKey(KeyT &&value)
const Aws::Vector< ReverseGeocodeAdditionalFeature > & GetAdditionalFeatures() const
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)
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