AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ReverseGeocodeResultItem.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/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/AccessPoint.h>
11#include <aws/geo-places/model/Address.h>
12#include <aws/geo-places/model/Category.h>
13#include <aws/geo-places/model/FoodType.h>
14#include <aws/geo-places/model/Intersection.h>
15#include <aws/geo-places/model/PlaceType.h>
16#include <aws/geo-places/model/PostalCodeDetails.h>
17#include <aws/geo-places/model/TimeZone.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GeoPlaces {
29namespace Model {
30
38 public:
39 AWS_GEOPLACES_API ReverseGeocodeResultItem() = default;
42 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Aws::String& GetPlaceId() const { return m_placeId; }
50 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
51 template <typename PlaceIdT = Aws::String>
52 void SetPlaceId(PlaceIdT&& value) {
53 m_placeIdHasBeenSet = true;
54 m_placeId = std::forward<PlaceIdT>(value);
55 }
56 template <typename PlaceIdT = Aws::String>
58 SetPlaceId(std::forward<PlaceIdT>(value));
59 return *this;
60 }
62
64
68 inline PlaceType GetPlaceType() const { return m_placeType; }
69 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
70 inline void SetPlaceType(PlaceType value) {
71 m_placeTypeHasBeenSet = true;
72 m_placeType = value;
73 }
75 SetPlaceType(value);
76 return *this;
77 }
79
81
85 inline const Aws::String& GetTitle() const { return m_title; }
86 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
87 template <typename TitleT = Aws::String>
88 void SetTitle(TitleT&& value) {
89 m_titleHasBeenSet = true;
90 m_title = std::forward<TitleT>(value);
91 }
92 template <typename TitleT = Aws::String>
94 SetTitle(std::forward<TitleT>(value));
95 return *this;
96 }
98
100
103 inline const Address& GetAddress() const { return m_address; }
104 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
105 template <typename AddressT = Address>
106 void SetAddress(AddressT&& value) {
107 m_addressHasBeenSet = true;
108 m_address = std::forward<AddressT>(value);
109 }
110 template <typename AddressT = Address>
112 SetAddress(std::forward<AddressT>(value));
113 return *this;
114 }
116
118
121 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
122 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
123 inline void SetAddressNumberCorrected(bool value) {
124 m_addressNumberCorrectedHasBeenSet = true;
125 m_addressNumberCorrected = value;
126 }
129 return *this;
130 }
132
134
137 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
138 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
139 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
140 void SetPostalCodeDetails(PostalCodeDetailsT&& value) {
141 m_postalCodeDetailsHasBeenSet = true;
142 m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value);
143 }
144 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
145 ReverseGeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) {
146 SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value));
147 return *this;
148 }
149 template <typename PostalCodeDetailsT = PostalCodeDetails>
150 ReverseGeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) {
151 m_postalCodeDetailsHasBeenSet = true;
152 m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
162 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
163 template <typename PositionT = Aws::Vector<double>>
164 void SetPosition(PositionT&& value) {
165 m_positionHasBeenSet = true;
166 m_position = std::forward<PositionT>(value);
167 }
168 template <typename PositionT = Aws::Vector<double>>
170 SetPosition(std::forward<PositionT>(value));
171 return *this;
172 }
173 inline ReverseGeocodeResultItem& AddPosition(double value) {
174 m_positionHasBeenSet = true;
175 m_position.push_back(value);
176 return *this;
177 }
179
181
184 inline long long GetDistance() const { return m_distance; }
185 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
186 inline void SetDistance(long long value) {
187 m_distanceHasBeenSet = true;
188 m_distance = value;
189 }
190 inline ReverseGeocodeResultItem& WithDistance(long long value) {
191 SetDistance(value);
192 return *this;
193 }
195
197
203 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
204 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
205 template <typename MapViewT = Aws::Vector<double>>
206 void SetMapView(MapViewT&& value) {
207 m_mapViewHasBeenSet = true;
208 m_mapView = std::forward<MapViewT>(value);
209 }
210 template <typename MapViewT = Aws::Vector<double>>
212 SetMapView(std::forward<MapViewT>(value));
213 return *this;
214 }
215 inline ReverseGeocodeResultItem& AddMapView(double value) {
216 m_mapViewHasBeenSet = true;
217 m_mapView.push_back(value);
218 return *this;
219 }
221
223
226 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
227 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
228 template <typename CategoriesT = Aws::Vector<Category>>
229 void SetCategories(CategoriesT&& value) {
230 m_categoriesHasBeenSet = true;
231 m_categories = std::forward<CategoriesT>(value);
232 }
233 template <typename CategoriesT = Aws::Vector<Category>>
235 SetCategories(std::forward<CategoriesT>(value));
236 return *this;
237 }
238 template <typename CategoriesT = Category>
240 m_categoriesHasBeenSet = true;
241 m_categories.emplace_back(std::forward<CategoriesT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
251 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
252 template <typename FoodTypesT = Aws::Vector<FoodType>>
253 void SetFoodTypes(FoodTypesT&& value) {
254 m_foodTypesHasBeenSet = true;
255 m_foodTypes = std::forward<FoodTypesT>(value);
256 }
257 template <typename FoodTypesT = Aws::Vector<FoodType>>
259 SetFoodTypes(std::forward<FoodTypesT>(value));
260 return *this;
261 }
262 template <typename FoodTypesT = FoodType>
264 m_foodTypesHasBeenSet = true;
265 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
275 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
276 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
277 void SetAccessPoints(AccessPointsT&& value) {
278 m_accessPointsHasBeenSet = true;
279 m_accessPoints = std::forward<AccessPointsT>(value);
280 }
281 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
283 SetAccessPoints(std::forward<AccessPointsT>(value));
284 return *this;
285 }
286 template <typename AccessPointsT = AccessPoint>
288 m_accessPointsHasBeenSet = true;
289 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
290 return *this;
291 }
293
295
298 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
299 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
300 template <typename TimeZoneT = TimeZone>
301 void SetTimeZone(TimeZoneT&& value) {
302 m_timeZoneHasBeenSet = true;
303 m_timeZone = std::forward<TimeZoneT>(value);
304 }
305 template <typename TimeZoneT = TimeZone>
307 SetTimeZone(std::forward<TimeZoneT>(value));
308 return *this;
309 }
311
313
318 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
319 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
320 template <typename PoliticalViewT = Aws::String>
321 void SetPoliticalView(PoliticalViewT&& value) {
322 m_politicalViewHasBeenSet = true;
323 m_politicalView = std::forward<PoliticalViewT>(value);
324 }
325 template <typename PoliticalViewT = Aws::String>
327 SetPoliticalView(std::forward<PoliticalViewT>(value));
328 return *this;
329 }
331
333
336 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
337 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
338 template <typename IntersectionsT = Aws::Vector<Intersection>>
339 void SetIntersections(IntersectionsT&& value) {
340 m_intersectionsHasBeenSet = true;
341 m_intersections = std::forward<IntersectionsT>(value);
342 }
343 template <typename IntersectionsT = Aws::Vector<Intersection>>
345 SetIntersections(std::forward<IntersectionsT>(value));
346 return *this;
347 }
348 template <typename IntersectionsT = Intersection>
350 m_intersectionsHasBeenSet = true;
351 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
352 return *this;
353 }
355 private:
356 Aws::String m_placeId;
357 bool m_placeIdHasBeenSet = false;
358
359 PlaceType m_placeType{PlaceType::NOT_SET};
360 bool m_placeTypeHasBeenSet = false;
361
362 Aws::String m_title;
363 bool m_titleHasBeenSet = false;
364
365 Address m_address;
366 bool m_addressHasBeenSet = false;
367
368 bool m_addressNumberCorrected{false};
369 bool m_addressNumberCorrectedHasBeenSet = false;
370
371 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
372 bool m_postalCodeDetailsHasBeenSet = false;
373
374 Aws::Vector<double> m_position;
375 bool m_positionHasBeenSet = false;
376
377 long long m_distance{0};
378 bool m_distanceHasBeenSet = false;
379
380 Aws::Vector<double> m_mapView;
381 bool m_mapViewHasBeenSet = false;
382
383 Aws::Vector<Category> m_categories;
384 bool m_categoriesHasBeenSet = false;
385
386 Aws::Vector<FoodType> m_foodTypes;
387 bool m_foodTypesHasBeenSet = false;
388
389 Aws::Vector<AccessPoint> m_accessPoints;
390 bool m_accessPointsHasBeenSet = false;
391
392 TimeZone m_timeZone;
393 bool m_timeZoneHasBeenSet = false;
394
395 Aws::String m_politicalView;
396 bool m_politicalViewHasBeenSet = false;
397
398 Aws::Vector<Intersection> m_intersections;
399 bool m_intersectionsHasBeenSet = false;
400};
401
402} // namespace Model
403} // namespace GeoPlaces
404} // namespace Aws
ReverseGeocodeResultItem & WithAddressNumberCorrected(bool value)
ReverseGeocodeResultItem & WithPlaceType(PlaceType value)
const Aws::Vector< PostalCodeDetails > & GetPostalCodeDetails() const
ReverseGeocodeResultItem & WithIntersections(IntersectionsT &&value)
AWS_GEOPLACES_API ReverseGeocodeResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ReverseGeocodeResultItem & AddIntersections(IntersectionsT &&value)
ReverseGeocodeResultItem & WithMapView(MapViewT &&value)
ReverseGeocodeResultItem & WithFoodTypes(FoodTypesT &&value)
ReverseGeocodeResultItem & AddPosition(double value)
ReverseGeocodeResultItem & AddMapView(double value)
ReverseGeocodeResultItem & AddAccessPoints(AccessPointsT &&value)
ReverseGeocodeResultItem & WithAddress(AddressT &&value)
ReverseGeocodeResultItem & AddCategories(CategoriesT &&value)
ReverseGeocodeResultItem & WithTimeZone(TimeZoneT &&value)
const Aws::Vector< Intersection > & GetIntersections() const
ReverseGeocodeResultItem & WithDistance(long long value)
ReverseGeocodeResultItem & WithPlaceId(PlaceIdT &&value)
ReverseGeocodeResultItem & WithPosition(PositionT &&value)
ReverseGeocodeResultItem & WithPoliticalView(PoliticalViewT &&value)
ReverseGeocodeResultItem & AddFoodTypes(FoodTypesT &&value)
AWS_GEOPLACES_API ReverseGeocodeResultItem(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API ReverseGeocodeResultItem()=default
ReverseGeocodeResultItem & WithCategories(CategoriesT &&value)
const Aws::Vector< FoodType > & GetFoodTypes() const
ReverseGeocodeResultItem & AddPostalCodeDetails(PostalCodeDetailsT &&value)
ReverseGeocodeResultItem & WithTitle(TitleT &&value)
const Aws::Vector< double > & GetPosition() const
const Aws::Vector< AccessPoint > & GetAccessPoints() const
ReverseGeocodeResultItem & WithAccessPoints(AccessPointsT &&value)
ReverseGeocodeResultItem & WithPostalCodeDetails(PostalCodeDetailsT &&value)
const Aws::Vector< Category > & GetCategories() const
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue