AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQueryPosition(const Aws::Vector<double>& value) { m_queryPositionHasBeenSet = true; m_queryPosition = value; }
54 inline void SetQueryPosition(Aws::Vector<double>&& value) { m_queryPositionHasBeenSet = true; m_queryPosition = std::move(value); }
55 inline ReverseGeocodeRequest& WithQueryPosition(const Aws::Vector<double>& value) { SetQueryPosition(value); return *this;}
56 inline ReverseGeocodeRequest& WithQueryPosition(Aws::Vector<double>&& value) { SetQueryPosition(std::move(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 inline void SetFilter(const ReverseGeocodeFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
89 inline void SetFilter(ReverseGeocodeFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
90 inline ReverseGeocodeRequest& WithFilter(const ReverseGeocodeFilter& value) { SetFilter(value); return *this;}
91 inline ReverseGeocodeRequest& WithFilter(ReverseGeocodeFilter&& value) { SetFilter(std::move(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 inline void SetAdditionalFeatures(const Aws::Vector<ReverseGeocodeAdditionalFeature>& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = value; }
102 inline void SetAdditionalFeatures(Aws::Vector<ReverseGeocodeAdditionalFeature>&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures = std::move(value); }
105 inline ReverseGeocodeRequest& AddAdditionalFeatures(const ReverseGeocodeAdditionalFeature& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(value); return *this; }
106 inline ReverseGeocodeRequest& AddAdditionalFeatures(ReverseGeocodeAdditionalFeature&& value) { m_additionalFeaturesHasBeenSet = true; m_additionalFeatures.push_back(std::move(value)); return *this; }
108
110
116 inline const Aws::String& GetLanguage() const{ return m_language; }
117 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
118 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
119 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
120 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
121 inline ReverseGeocodeRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
122 inline ReverseGeocodeRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
123 inline ReverseGeocodeRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;}
125
127
132 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
133 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
134 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
135 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
136 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
137 inline ReverseGeocodeRequest& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
138 inline ReverseGeocodeRequest& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
139 inline ReverseGeocodeRequest& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
141
143
147 inline const ReverseGeocodeIntendedUse& GetIntendedUse() const{ return m_intendedUse; }
148 inline bool IntendedUseHasBeenSet() const { return m_intendedUseHasBeenSet; }
149 inline void SetIntendedUse(const ReverseGeocodeIntendedUse& value) { m_intendedUseHasBeenSet = true; m_intendedUse = value; }
150 inline void SetIntendedUse(ReverseGeocodeIntendedUse&& value) { m_intendedUseHasBeenSet = true; m_intendedUse = std::move(value); }
152 inline ReverseGeocodeRequest& WithIntendedUse(ReverseGeocodeIntendedUse&& value) { SetIntendedUse(std::move(value)); return *this;}
154
156
160 inline const Aws::String& GetKey() const{ return m_key; }
161 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
162 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
163 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
164 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
165 inline ReverseGeocodeRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
166 inline ReverseGeocodeRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
167 inline ReverseGeocodeRequest& WithKey(const char* value) { SetKey(value); return *this;}
169 private:
170
171 Aws::Vector<double> m_queryPosition;
172 bool m_queryPositionHasBeenSet = false;
173
174 long long m_queryRadius;
175 bool m_queryRadiusHasBeenSet = false;
176
177 int m_maxResults;
178 bool m_maxResultsHasBeenSet = false;
179
180 ReverseGeocodeFilter m_filter;
181 bool m_filterHasBeenSet = false;
182
184 bool m_additionalFeaturesHasBeenSet = false;
185
186 Aws::String m_language;
187 bool m_languageHasBeenSet = false;
188
189 Aws::String m_politicalView;
190 bool m_politicalViewHasBeenSet = false;
191
192 ReverseGeocodeIntendedUse m_intendedUse;
193 bool m_intendedUseHasBeenSet = false;
194
195 Aws::String m_key;
196 bool m_keyHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace GeoPlaces
201} // namespace Aws
ReverseGeocodeRequest & WithKey(Aws::String &&value)
const ReverseGeocodeIntendedUse & GetIntendedUse() const
ReverseGeocodeRequest & WithAdditionalFeatures(const Aws::Vector< ReverseGeocodeAdditionalFeature > &value)
void SetAdditionalFeatures(const Aws::Vector< ReverseGeocodeAdditionalFeature > &value)
void SetIntendedUse(const ReverseGeocodeIntendedUse &value)
void SetFilter(ReverseGeocodeFilter &&value)
void SetFilter(const ReverseGeocodeFilter &value)
const Aws::Vector< ReverseGeocodeAdditionalFeature > & GetAdditionalFeatures() const
ReverseGeocodeRequest & WithPoliticalView(const char *value)
ReverseGeocodeRequest & WithLanguage(const char *value)
ReverseGeocodeRequest & WithPoliticalView(const Aws::String &value)
void SetIntendedUse(ReverseGeocodeIntendedUse &&value)
AWS_GEOPLACES_API Aws::String SerializePayload() const override
ReverseGeocodeRequest & WithLanguage(Aws::String &&value)
ReverseGeocodeRequest & WithQueryPosition(const Aws::Vector< double > &value)
virtual const char * GetServiceRequestName() const override
ReverseGeocodeRequest & WithKey(const Aws::String &value)
ReverseGeocodeRequest & WithMaxResults(int value)
void SetQueryPosition(Aws::Vector< double > &&value)
ReverseGeocodeRequest & WithPoliticalView(Aws::String &&value)
void SetQueryPosition(const Aws::Vector< double > &value)
ReverseGeocodeRequest & WithFilter(ReverseGeocodeFilter &&value)
AWS_GEOPLACES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ReverseGeocodeRequest & WithAdditionalFeatures(Aws::Vector< ReverseGeocodeAdditionalFeature > &&value)
const ReverseGeocodeFilter & GetFilter() const
ReverseGeocodeRequest & WithQueryPosition(Aws::Vector< double > &&value)
ReverseGeocodeRequest & AddAdditionalFeatures(const ReverseGeocodeAdditionalFeature &value)
ReverseGeocodeRequest & WithFilter(const ReverseGeocodeFilter &value)
void SetAdditionalFeatures(Aws::Vector< ReverseGeocodeAdditionalFeature > &&value)
ReverseGeocodeRequest & AddAdditionalFeatures(ReverseGeocodeAdditionalFeature &&value)
ReverseGeocodeRequest & AddQueryPosition(double value)
ReverseGeocodeRequest & WithIntendedUse(ReverseGeocodeIntendedUse &&value)
ReverseGeocodeRequest & WithLanguage(const Aws::String &value)
ReverseGeocodeRequest & WithIntendedUse(const ReverseGeocodeIntendedUse &value)
ReverseGeocodeRequest & WithKey(const char *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