AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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/RelatedPlace.h>
18#include <aws/geo-places/model/TimeZone.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace GeoPlaces {
30namespace Model {
31
39 public:
40 AWS_GEOPLACES_API ReverseGeocodeResultItem() = default;
43 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::String& GetPlaceId() const { return m_placeId; }
51 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
52 template <typename PlaceIdT = Aws::String>
53 void SetPlaceId(PlaceIdT&& value) {
54 m_placeIdHasBeenSet = true;
55 m_placeId = std::forward<PlaceIdT>(value);
56 }
57 template <typename PlaceIdT = Aws::String>
59 SetPlaceId(std::forward<PlaceIdT>(value));
60 return *this;
61 }
63
65
69 inline PlaceType GetPlaceType() const { return m_placeType; }
70 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
71 inline void SetPlaceType(PlaceType value) {
72 m_placeTypeHasBeenSet = true;
73 m_placeType = value;
74 }
76 SetPlaceType(value);
77 return *this;
78 }
80
82
86 inline const Aws::String& GetTitle() const { return m_title; }
87 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
88 template <typename TitleT = Aws::String>
89 void SetTitle(TitleT&& value) {
90 m_titleHasBeenSet = true;
91 m_title = std::forward<TitleT>(value);
92 }
93 template <typename TitleT = Aws::String>
95 SetTitle(std::forward<TitleT>(value));
96 return *this;
97 }
99
101
104 inline const Address& GetAddress() const { return m_address; }
105 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
106 template <typename AddressT = Address>
107 void SetAddress(AddressT&& value) {
108 m_addressHasBeenSet = true;
109 m_address = std::forward<AddressT>(value);
110 }
111 template <typename AddressT = Address>
113 SetAddress(std::forward<AddressT>(value));
114 return *this;
115 }
117
119
125 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
126 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
127 inline void SetAddressNumberCorrected(bool value) {
128 m_addressNumberCorrectedHasBeenSet = true;
129 m_addressNumberCorrected = value;
130 }
133 return *this;
134 }
136
138
144 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
145 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
146 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
147 void SetPostalCodeDetails(PostalCodeDetailsT&& value) {
148 m_postalCodeDetailsHasBeenSet = true;
149 m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value);
150 }
151 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
152 ReverseGeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) {
153 SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value));
154 return *this;
155 }
156 template <typename PostalCodeDetailsT = PostalCodeDetails>
157 ReverseGeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) {
158 m_postalCodeDetailsHasBeenSet = true;
159 m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
170 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
171 template <typename PositionT = Aws::Vector<double>>
172 void SetPosition(PositionT&& value) {
173 m_positionHasBeenSet = true;
174 m_position = std::forward<PositionT>(value);
175 }
176 template <typename PositionT = Aws::Vector<double>>
178 SetPosition(std::forward<PositionT>(value));
179 return *this;
180 }
181 inline ReverseGeocodeResultItem& AddPosition(double value) {
182 m_positionHasBeenSet = true;
183 m_position.push_back(value);
184 return *this;
185 }
187
189
192 inline long long GetDistance() const { return m_distance; }
193 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
194 inline void SetDistance(long long value) {
195 m_distanceHasBeenSet = true;
196 m_distance = value;
197 }
198 inline ReverseGeocodeResultItem& WithDistance(long long value) {
199 SetDistance(value);
200 return *this;
201 }
203
205
211 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
212 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
213 template <typename MapViewT = Aws::Vector<double>>
214 void SetMapView(MapViewT&& value) {
215 m_mapViewHasBeenSet = true;
216 m_mapView = std::forward<MapViewT>(value);
217 }
218 template <typename MapViewT = Aws::Vector<double>>
220 SetMapView(std::forward<MapViewT>(value));
221 return *this;
222 }
223 inline ReverseGeocodeResultItem& AddMapView(double value) {
224 m_mapViewHasBeenSet = true;
225 m_mapView.push_back(value);
226 return *this;
227 }
229
231
234 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
235 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
236 template <typename CategoriesT = Aws::Vector<Category>>
237 void SetCategories(CategoriesT&& value) {
238 m_categoriesHasBeenSet = true;
239 m_categories = std::forward<CategoriesT>(value);
240 }
241 template <typename CategoriesT = Aws::Vector<Category>>
243 SetCategories(std::forward<CategoriesT>(value));
244 return *this;
245 }
246 template <typename CategoriesT = Category>
248 m_categoriesHasBeenSet = true;
249 m_categories.emplace_back(std::forward<CategoriesT>(value));
250 return *this;
251 }
253
255
261 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
262 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
263 template <typename FoodTypesT = Aws::Vector<FoodType>>
264 void SetFoodTypes(FoodTypesT&& value) {
265 m_foodTypesHasBeenSet = true;
266 m_foodTypes = std::forward<FoodTypesT>(value);
267 }
268 template <typename FoodTypesT = Aws::Vector<FoodType>>
270 SetFoodTypes(std::forward<FoodTypesT>(value));
271 return *this;
272 }
273 template <typename FoodTypesT = FoodType>
275 m_foodTypesHasBeenSet = true;
276 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
277 return *this;
278 }
280
282
289 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
290 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
291 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
292 void SetAccessPoints(AccessPointsT&& value) {
293 m_accessPointsHasBeenSet = true;
294 m_accessPoints = std::forward<AccessPointsT>(value);
295 }
296 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
298 SetAccessPoints(std::forward<AccessPointsT>(value));
299 return *this;
300 }
301 template <typename AccessPointsT = AccessPoint>
303 m_accessPointsHasBeenSet = true;
304 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
305 return *this;
306 }
308
310
313 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
314 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
315 template <typename TimeZoneT = TimeZone>
316 void SetTimeZone(TimeZoneT&& value) {
317 m_timeZoneHasBeenSet = true;
318 m_timeZone = std::forward<TimeZoneT>(value);
319 }
320 template <typename TimeZoneT = TimeZone>
322 SetTimeZone(std::forward<TimeZoneT>(value));
323 return *this;
324 }
326
328
337 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
338 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
339 template <typename PoliticalViewT = Aws::String>
340 void SetPoliticalView(PoliticalViewT&& value) {
341 m_politicalViewHasBeenSet = true;
342 m_politicalView = std::forward<PoliticalViewT>(value);
343 }
344 template <typename PoliticalViewT = Aws::String>
346 SetPoliticalView(std::forward<PoliticalViewT>(value));
347 return *this;
348 }
350
352
358 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
359 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
360 template <typename IntersectionsT = Aws::Vector<Intersection>>
361 void SetIntersections(IntersectionsT&& value) {
362 m_intersectionsHasBeenSet = true;
363 m_intersections = std::forward<IntersectionsT>(value);
364 }
365 template <typename IntersectionsT = Aws::Vector<Intersection>>
367 SetIntersections(std::forward<IntersectionsT>(value));
368 return *this;
369 }
370 template <typename IntersectionsT = Intersection>
372 m_intersectionsHasBeenSet = true;
373 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
374 return *this;
375 }
377
379
382 inline const RelatedPlace& GetMainAddress() const { return m_mainAddress; }
383 inline bool MainAddressHasBeenSet() const { return m_mainAddressHasBeenSet; }
384 template <typename MainAddressT = RelatedPlace>
385 void SetMainAddress(MainAddressT&& value) {
386 m_mainAddressHasBeenSet = true;
387 m_mainAddress = std::forward<MainAddressT>(value);
388 }
389 template <typename MainAddressT = RelatedPlace>
391 SetMainAddress(std::forward<MainAddressT>(value));
392 return *this;
393 }
395
397
401 inline bool GetEstimatedPointAddress() const { return m_estimatedPointAddress; }
402 inline bool EstimatedPointAddressHasBeenSet() const { return m_estimatedPointAddressHasBeenSet; }
403 inline void SetEstimatedPointAddress(bool value) {
404 m_estimatedPointAddressHasBeenSet = true;
405 m_estimatedPointAddress = value;
406 }
409 return *this;
410 }
412 private:
413 Aws::String m_placeId;
414
415 PlaceType m_placeType{PlaceType::NOT_SET};
416
417 Aws::String m_title;
418
419 Address m_address;
420
421 bool m_addressNumberCorrected{false};
422
423 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
424
425 Aws::Vector<double> m_position;
426
427 long long m_distance{0};
428
429 Aws::Vector<double> m_mapView;
430
431 Aws::Vector<Category> m_categories;
432
433 Aws::Vector<FoodType> m_foodTypes;
434
435 Aws::Vector<AccessPoint> m_accessPoints;
436
437 TimeZone m_timeZone;
438
439 Aws::String m_politicalView;
440
441 Aws::Vector<Intersection> m_intersections;
442
443 RelatedPlace m_mainAddress;
444
445 bool m_estimatedPointAddress{false};
446 bool m_placeIdHasBeenSet = false;
447 bool m_placeTypeHasBeenSet = false;
448 bool m_titleHasBeenSet = false;
449 bool m_addressHasBeenSet = false;
450 bool m_addressNumberCorrectedHasBeenSet = false;
451 bool m_postalCodeDetailsHasBeenSet = false;
452 bool m_positionHasBeenSet = false;
453 bool m_distanceHasBeenSet = false;
454 bool m_mapViewHasBeenSet = false;
455 bool m_categoriesHasBeenSet = false;
456 bool m_foodTypesHasBeenSet = false;
457 bool m_accessPointsHasBeenSet = false;
458 bool m_timeZoneHasBeenSet = false;
459 bool m_politicalViewHasBeenSet = false;
460 bool m_intersectionsHasBeenSet = false;
461 bool m_mainAddressHasBeenSet = false;
462 bool m_estimatedPointAddressHasBeenSet = false;
463};
464
465} // namespace Model
466} // namespace GeoPlaces
467} // 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 & WithMainAddress(MainAddressT &&value)
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
ReverseGeocodeResultItem & WithEstimatedPointAddress(bool value)
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