AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReverseGeocodeRequest.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/geo-places/GeoPlacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-places/model/ReverseGeocodeFilter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/geo-places/model/ReverseGeocodeIntendedUse.h>
13#include <aws/geo-places/model/ReverseGeocodeAdditionalFeature.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace GeoPlaces
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_GEOPLACES_API ReverseGeocodeRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ReverseGeocode"; }
39
40 AWS_GEOPLACES_API Aws::String SerializePayload() const override;
41
42 AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
51 inline const Aws::Vector<double>& GetQueryPosition() const { return m_queryPosition; }
52 inline bool QueryPositionHasBeenSet() const { return m_queryPositionHasBeenSet; }
53 template<typename QueryPositionT = Aws::Vector<double>>
54 void SetQueryPosition(QueryPositionT&& value) { m_queryPositionHasBeenSet = true; m_queryPosition = std::forward<QueryPositionT>(value); }
55 template<typename QueryPositionT = Aws::Vector<double>>
56 ReverseGeocodeRequest& WithQueryPosition(QueryPositionT&& value) { SetQueryPosition(std::forward<QueryPositionT>(value)); return *this;}
57 inline ReverseGeocodeRequest& AddQueryPosition(double value) { m_queryPositionHasBeenSet = true; m_queryPosition.push_back(value); return *this; }
59
61
65 inline long long GetQueryRadius() const { return m_queryRadius; }
66 inline bool QueryRadiusHasBeenSet() const { return m_queryRadiusHasBeenSet; }
67 inline void SetQueryRadius(long long value) { m_queryRadiusHasBeenSet = true; m_queryRadius = value; }
68 inline ReverseGeocodeRequest& WithQueryRadius(long long value) { SetQueryRadius(value); return *this;}
70
72
75 inline int GetMaxResults() const { return m_maxResults; }
76 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
77 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
78 inline ReverseGeocodeRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
80
82
86 inline const ReverseGeocodeFilter& GetFilter() const { return m_filter; }
87 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
88 template<typename FilterT = ReverseGeocodeFilter>
89 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
90 template<typename FilterT = ReverseGeocodeFilter>
91 ReverseGeocodeRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
93
95
99 inline const Aws::Vector<ReverseGeocodeAdditionalFeature>& GetAdditionalFeatures() const { return m_additionalFeatures; }
100 inline bool AdditionalFeaturesHasBeenSet() const { return m_additionalFeaturesHasBeenSet; }
101 template<typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
102 void SetAdditionalFeatures(AdditionalFeaturesT&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::forward<AdditionalFeaturesT>(value); }
103 template<typename AdditionalFeaturesT = Aws::Vector<ReverseGeocodeAdditionalFeature>>
104 ReverseGeocodeRequest& WithAdditionalFeatures(AdditionalFeaturesT&& value) { SetAdditionalFeatures(std::forward<AdditionalFeaturesT>(value)); return *this;}
105 inline ReverseGeocodeRequest& AddAdditionalFeatures(ReverseGeocodeAdditionalFeature value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
107
109
115 inline const Aws::String& GetLanguage() const { return m_language; }
116 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
117 template<typename LanguageT = Aws::String>
118 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
119 template<typename LanguageT = Aws::String>
120 ReverseGeocodeRequest& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
122
124
129 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
130 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
131 template<typename PoliticalViewT = Aws::String>
132 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
133 template<typename PoliticalViewT = Aws::String>
134 ReverseGeocodeRequest& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
136
138
147 inline ReverseGeocodeIntendedUse GetIntendedUse() const { return m_intendedUse; }
148 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
149 inline void SetIntendedUse(ReverseGeocodeIntendedUse value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
152
154
158 inline const Aws::String& GetKey() const { return m_key; }
159 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
160 template<typename KeyT = Aws::String>
161 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
162 template<typename KeyT = Aws::String>
163 ReverseGeocodeRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
165 private:
166
167 Aws::Vector<double> m_queryPosition;
168 bool m_queryPositionHasBeenSet = false;
169
170 long long m_queryRadius{0};
171 bool m_queryRadiusHasBeenSet = false;
172
173 int m_maxResults{0};
174 bool m_maxResultsHasBeenSet = false;
175
176 ReverseGeocodeFilter m_filter;
177 bool m_filterHasBeenSet = false;
178
180 bool m_additionalFeaturesHasBeenSet = false;
181
182 Aws::String m_language;
183 bool m_languageHasBeenSet = false;
184
185 Aws::String m_politicalView;
186 bool m_politicalViewHasBeenSet = false;
187
189 bool m_intendedUseHasBeenSet = false;
190
191 Aws::String m_key;
192 bool m_keyHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace GeoPlaces
197} // 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
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