AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GeocodeRequest.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/GeocodeAdditionalFeature.h>
12#include <aws/geo-places/model/GeocodeFilter.h>
13#include <aws/geo-places/model/GeocodeIntendedUse.h>
14#include <aws/geo-places/model/GeocodeQueryComponents.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 GeocodeRequest() = 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 "Geocode"; }
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
46 inline const Aws::String& GetQueryText() const { return m_queryText; }
47 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
48 template <typename QueryTextT = Aws::String>
49 void SetQueryText(QueryTextT&& value) {
50 m_queryTextHasBeenSet = true;
51 m_queryText = std::forward<QueryTextT>(value);
52 }
53 template <typename QueryTextT = Aws::String>
54 GeocodeRequest& WithQueryText(QueryTextT&& value) {
55 SetQueryText(std::forward<QueryTextT>(value));
56 return *this;
57 }
59
61
62 inline const GeocodeQueryComponents& GetQueryComponents() const { return m_queryComponents; }
63 inline bool QueryComponentsHasBeenSet() const { return m_queryComponentsHasBeenSet; }
64 template <typename QueryComponentsT = GeocodeQueryComponents>
65 void SetQueryComponents(QueryComponentsT&& value) {
66 m_queryComponentsHasBeenSet = true;
67 m_queryComponents = std::forward<QueryComponentsT>(value);
68 }
69 template <typename QueryComponentsT = GeocodeQueryComponents>
70 GeocodeRequest& WithQueryComponents(QueryComponentsT&& value) {
71 SetQueryComponents(std::forward<QueryComponentsT>(value));
72 return *this;
73 }
75
77
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) {
84 m_maxResultsHasBeenSet = true;
85 m_maxResults = value;
86 }
87 inline GeocodeRequest& WithMaxResults(int value) {
88 SetMaxResults(value);
89 return *this;
90 }
92
94
99 inline const Aws::Vector<double>& GetBiasPosition() const { return m_biasPosition; }
100 inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; }
101 template <typename BiasPositionT = Aws::Vector<double>>
102 void SetBiasPosition(BiasPositionT&& value) {
103 m_biasPositionHasBeenSet = true;
104 m_biasPosition = std::forward<BiasPositionT>(value);
105 }
106 template <typename BiasPositionT = Aws::Vector<double>>
107 GeocodeRequest& WithBiasPosition(BiasPositionT&& value) {
108 SetBiasPosition(std::forward<BiasPositionT>(value));
109 return *this;
110 }
111 inline GeocodeRequest& AddBiasPosition(double value) {
112 m_biasPositionHasBeenSet = true;
113 m_biasPosition.push_back(value);
114 return *this;
115 }
117
119
123 inline const GeocodeFilter& GetFilter() const { return m_filter; }
124 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
125 template <typename FilterT = GeocodeFilter>
126 void SetFilter(FilterT&& value) {
127 m_filterHasBeenSet = true;
128 m_filter = std::forward<FilterT>(value);
129 }
130 template <typename FilterT = GeocodeFilter>
131 GeocodeRequest& WithFilter(FilterT&& value) {
132 SetFilter(std::forward<FilterT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::Vector<GeocodeAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
143 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
144 template <typename AdditionalFeaturesT = Aws::Vector<GeocodeAdditionalFeature>>
145 void SetAdditionalFeatures(AdditionalFeaturesT&& value) {
146 m_additionalFeaturesHasBeenSet = true;
147 m_additionalFeatures = std::forward<AdditionalFeaturesT>(value);
148 }
149 template <typename AdditionalFeaturesT = Aws::Vector<GeocodeAdditionalFeature>>
150 GeocodeRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) {
151 SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value));
152 return *this;
153 }
155 m_additionalFeaturesHasBeenSet = true;
156 m_additionalFeatures.push_back(value);
157 return *this;
158 }
160
162
168 inline const Aws::String& GetLanguage() const { return m_language; }
169 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
170 template <typename LanguageT = Aws::String>
171 void SetLanguage(LanguageT&& value) {
172 m_languageHasBeenSet = true;
173 m_language = std::forward<LanguageT>(value);
174 }
175 template <typename LanguageT = Aws::String>
176 GeocodeRequest& WithLanguage(LanguageT&& value) {
177 SetLanguage(std::forward<LanguageT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
189 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
190 template <typename PoliticalViewT = Aws::String>
191 void SetPoliticalView(PoliticalViewT&& value) {
192 m_politicalViewHasBeenSet = true;
193 m_politicalView = std::forward<PoliticalViewT>(value);
194 }
195 template <typename PoliticalViewT = Aws::String>
196 GeocodeRequest& WithPoliticalView(PoliticalViewT&& value) {
197 SetPoliticalView(std::forward<PoliticalViewT>(value));
198 return *this;
199 }
201
203
212 inline GeocodeIntendedUse GetIntendedUse() const { return m_intendedUse; }
213 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
215 m_intendedUseHasBeenSet = true;
216 m_intendedUse = value;
217 }
219 SetIntendedUse(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>
237 GeocodeRequest& WithKey(KeyT&& value) {
238 SetKey(std::forward<KeyT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_queryText;
244
245 GeocodeQueryComponents m_queryComponents;
246
247 int m_maxResults{0};
248
249 Aws::Vector<double> m_biasPosition;
250
251 GeocodeFilter m_filter;
252
253 Aws::Vector<GeocodeAdditionalFeature> m_additionalFeatures;
254
255 Aws::String m_language;
256
257 Aws::String m_politicalView;
258
260
261 Aws::String m_key;
262 bool m_queryTextHasBeenSet = false;
263 bool m_queryComponentsHasBeenSet = false;
264 bool m_maxResultsHasBeenSet = false;
265 bool m_biasPositionHasBeenSet = 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_keyHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace GeoPlaces
276} // namespace Aws
const Aws::String & GetPoliticalView() const
const Aws::String & GetKey() const
const Aws::Vector< GeocodeAdditionalFeature > & GetAdditionalFeatures() const
AWS_GEOPLACES_API GeocodeRequest()=default
const GeocodeQueryComponents & GetQueryComponents() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetQueryText() const
GeocodeRequest & WithIntendedUse(GeocodeIntendedUse value)
GeocodeRequest & AddAdditionalFeatures(GeocodeAdditionalFeature value)
const Aws::Vector< double > & GetBiasPosition() const
void SetQueryComponents(QueryComponentsT &&value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GeocodeIntendedUse GetIntendedUse() const
GeocodeRequest & WithQueryText(QueryTextT &&value)
GeocodeRequest & WithLanguage(LanguageT &&value)
void SetQueryText(QueryTextT &&value)
const GeocodeFilter & GetFilter() const
GeocodeRequest & WithAdditionalFeatures(AdditionalFeaturesT &&value)
GeocodeRequest & WithBiasPosition(BiasPositionT &&value)
void SetAdditionalFeatures(AdditionalFeaturesT &&value)
void SetPoliticalView(PoliticalViewT &&value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
GeocodeRequest & WithMaxResults(int value)
void SetBiasPosition(BiasPositionT &&value)
GeocodeRequest & WithPoliticalView(PoliticalViewT &&value)
GeocodeRequest & WithKey(KeyT &&value)
const Aws::String & GetLanguage() const
GeocodeRequest & WithQueryComponents(QueryComponentsT &&value)
GeocodeRequest & WithFilter(FilterT &&value)
void SetIntendedUse(GeocodeIntendedUse value)
GeocodeRequest & AddBiasPosition(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector