AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
70 inline long long GetQueryRadius() const { return m_queryRadius; }
71 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
72 inline void SetQueryRadius(long long value) {
73 m_queryRadiusHasBeenSet = true;
74 m_queryRadius = value;
75 }
76 inline ReverseGeocodeRequest& WithQueryRadius(long long value) {
77 SetQueryRadius(value);
78 return *this;
79 }
81
83
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 ReverseGeocodeFilter& GetFilter() const { return m_filter; }
105 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
106 template <typename FilterT = ReverseGeocodeFilter>
107 void SetFilter(FilterT&& value) {
108 m_filterHasBeenSet = true;
109 m_filter = std::forward<FilterT>(value);
110 }
111 template <typename FilterT = ReverseGeocodeFilter>
113 SetFilter(std::forward<FilterT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Vector<ReverseGeocodeAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
124 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
125 template <typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
126 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
127 m_additionalFeaturesHasBeenSet = true;
128 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
129 }
130 template <typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
131 ReverseGeocodeRequest& 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>
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 ReverseGeocodeRequest& WithPoliticalView(PoliticalViewT&& value) {
178 SetPoliticalView(std::forward<PoliticalViewT>(value));
179 return *this;
180 }
182
184
193 inline ReverseGeocodeIntendedUse 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& GetKey() const { return m_key; }
211 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
212 template <typename KeyT = Aws::String>
213 void SetKey(KeyT&& value) {
214 m_keyHasBeenSet = true;
215 m_key = std::forward<KeyT>(value);
216 }
217 template <typename KeyT = Aws::String>
219 SetKey(std::forward<KeyT>(value));
220 return *this;
221 }
223
225
231 inline double GetHeading() const { return m_heading; }
232 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
233 inline void SetHeading(double value) {
234 m_headingHasBeenSet = true;
235 m_heading = value;
236 }
237 inline ReverseGeocodeRequest& WithHeading(double value) {
238 SetHeading(value);
239 return *this;
240 }
242 private:
243 Aws::Vector<double> m_queryPosition;
244
245 long long m_queryRadius{0};
246
247 int m_maxResults{0};
248
249 ReverseGeocodeFilter m_filter;
250
252
253 Aws::String m_language;
254
255 Aws::String m_politicalView;
256
258
259 Aws::String m_key;
260
261 double m_heading{0.0};
262 bool m_queryPositionHasBeenSet = false;
263 bool m_queryRadiusHasBeenSet = false;
264 bool m_maxResultsHasBeenSet = false;
265 bool m_filterHasBeenSet = false;
266 bool m_additionalFeaturesHasBeenSet = false;
267 bool m_languageHasBeenSet = false;
268 bool m_politicalViewHasBeenSet = false;
269 bool m_intendedUseHasBeenSet = false;
270 bool m_keyHasBeenSet = false;
271 bool m_headingHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace GeoPlaces
276} // 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