AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
GeocodeResultItem.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/GeocodeParsedQuery.h>
15#include <aws/geo-places/model/Intersection.h>
16#include <aws/geo-places/model/MatchScoreDetails.h>
17#include <aws/geo-places/model/PlaceType.h>
18#include <aws/geo-places/model/PostalCodeDetails.h>
19#include <aws/geo-places/model/RelatedPlace.h>
20#include <aws/geo-places/model/TimeZone.h>
21#include <aws/geo-places/model/TranslationDetails.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Json {
28class JsonValue;
29class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace GeoPlaces {
33namespace Model {
34
41 public:
42 AWS_GEOPLACES_API GeocodeResultItem() = default;
43 AWS_GEOPLACES_API GeocodeResultItem(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetPlaceId() const { return m_placeId; }
52 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
53 template <typename PlaceIdT = Aws::String>
54 void SetPlaceId(PlaceIdT&& value) {
55 m_placeIdHasBeenSet = true;
56 m_placeId = std::forward<PlaceIdT>(value);
57 }
58 template <typename PlaceIdT = Aws::String>
59 GeocodeResultItem& WithPlaceId(PlaceIdT&& value) {
60 SetPlaceId(std::forward<PlaceIdT>(value));
61 return *this;
62 }
64
66
70 inline PlaceType GetPlaceType() const { return m_placeType; }
71 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
72 inline void SetPlaceType(PlaceType value) {
73 m_placeTypeHasBeenSet = true;
74 m_placeType = value;
75 }
77 SetPlaceType(value);
78 return *this;
79 }
81
83
87 inline const Aws::String& GetTitle() const { return m_title; }
88 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
89 template <typename TitleT = Aws::String>
90 void SetTitle(TitleT&& value) {
91 m_titleHasBeenSet = true;
92 m_title = std::forward<TitleT>(value);
93 }
94 template <typename TitleT = Aws::String>
95 GeocodeResultItem& WithTitle(TitleT&& value) {
96 SetTitle(std::forward<TitleT>(value));
97 return *this;
98 }
100
102
105 inline const Address& GetAddress() const { return m_address; }
106 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
107 template <typename AddressT = Address>
108 void SetAddress(AddressT&& value) {
109 m_addressHasBeenSet = true;
110 m_address = std::forward<AddressT>(value);
111 }
112 template <typename AddressT = Address>
113 GeocodeResultItem& WithAddress(AddressT&& value) {
114 SetAddress(std::forward<AddressT>(value));
115 return *this;
116 }
118
120
123 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
124 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
125 inline void SetAddressNumberCorrected(bool value) {
126 m_addressNumberCorrectedHasBeenSet = true;
127 m_addressNumberCorrected = value;
128 }
131 return *this;
132 }
134
136
139 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
140 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
141 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
142 void SetPostalCodeDetails(PostalCodeDetailsT&& value) {
143 m_postalCodeDetailsHasBeenSet = true;
144 m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value);
145 }
146 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
147 GeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) {
148 SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value));
149 return *this;
150 }
151 template <typename PostalCodeDetailsT = PostalCodeDetails>
152 GeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) {
153 m_postalCodeDetailsHasBeenSet = true;
154 m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
165 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
166 template <typename PositionT = Aws::Vector<double>>
167 void SetPosition(PositionT&& value) {
168 m_positionHasBeenSet = true;
169 m_position = std::forward<PositionT>(value);
170 }
171 template <typename PositionT = Aws::Vector<double>>
172 GeocodeResultItem& WithPosition(PositionT&& value) {
173 SetPosition(std::forward<PositionT>(value));
174 return *this;
175 }
176 inline GeocodeResultItem& AddPosition(double value) {
177 m_positionHasBeenSet = true;
178 m_position.push_back(value);
179 return *this;
180 }
182
184
187 inline long long GetDistance() const { return m_distance; }
188 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
189 inline void SetDistance(long long value) {
190 m_distanceHasBeenSet = true;
191 m_distance = value;
192 }
193 inline GeocodeResultItem& WithDistance(long long value) {
194 SetDistance(value);
195 return *this;
196 }
198
200
206 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
207 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
208 template <typename MapViewT = Aws::Vector<double>>
209 void SetMapView(MapViewT&& value) {
210 m_mapViewHasBeenSet = true;
211 m_mapView = std::forward<MapViewT>(value);
212 }
213 template <typename MapViewT = Aws::Vector<double>>
214 GeocodeResultItem& WithMapView(MapViewT&& value) {
215 SetMapView(std::forward<MapViewT>(value));
216 return *this;
217 }
218 inline GeocodeResultItem& AddMapView(double value) {
219 m_mapViewHasBeenSet = true;
220 m_mapView.push_back(value);
221 return *this;
222 }
224
226
229 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
230 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
231 template <typename CategoriesT = Aws::Vector<Category>>
232 void SetCategories(CategoriesT&& value) {
233 m_categoriesHasBeenSet = true;
234 m_categories = std::forward<CategoriesT>(value);
235 }
236 template <typename CategoriesT = Aws::Vector<Category>>
237 GeocodeResultItem& WithCategories(CategoriesT&& value) {
238 SetCategories(std::forward<CategoriesT>(value));
239 return *this;
240 }
241 template <typename CategoriesT = Category>
242 GeocodeResultItem& AddCategories(CategoriesT&& value) {
243 m_categoriesHasBeenSet = true;
244 m_categories.emplace_back(std::forward<CategoriesT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
254 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
255 template <typename FoodTypesT = Aws::Vector<FoodType>>
256 void SetFoodTypes(FoodTypesT&& value) {
257 m_foodTypesHasBeenSet = true;
258 m_foodTypes = std::forward<FoodTypesT>(value);
259 }
260 template <typename FoodTypesT = Aws::Vector<FoodType>>
261 GeocodeResultItem& WithFoodTypes(FoodTypesT&& value) {
262 SetFoodTypes(std::forward<FoodTypesT>(value));
263 return *this;
264 }
265 template <typename FoodTypesT = FoodType>
266 GeocodeResultItem& AddFoodTypes(FoodTypesT&& value) {
267 m_foodTypesHasBeenSet = true;
268 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
279 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
280 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
281 void SetAccessPoints(AccessPointsT&& value) {
282 m_accessPointsHasBeenSet = true;
283 m_accessPoints = std::forward<AccessPointsT>(value);
284 }
285 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
286 GeocodeResultItem& WithAccessPoints(AccessPointsT&& value) {
287 SetAccessPoints(std::forward<AccessPointsT>(value));
288 return *this;
289 }
290 template <typename AccessPointsT = AccessPoint>
291 GeocodeResultItem& AddAccessPoints(AccessPointsT&& value) {
292 m_accessPointsHasBeenSet = true;
293 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
294 return *this;
295 }
297
299
302 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
303 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
304 template <typename TimeZoneT = TimeZone>
305 void SetTimeZone(TimeZoneT&& value) {
306 m_timeZoneHasBeenSet = true;
307 m_timeZone = std::forward<TimeZoneT>(value);
308 }
309 template <typename TimeZoneT = TimeZone>
310 GeocodeResultItem& WithTimeZone(TimeZoneT&& value) {
311 SetTimeZone(std::forward<TimeZoneT>(value));
312 return *this;
313 }
315
317
322 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
323 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
324 template <typename PoliticalViewT = Aws::String>
325 void SetPoliticalView(PoliticalViewT&& value) {
326 m_politicalViewHasBeenSet = true;
327 m_politicalView = std::forward<PoliticalViewT>(value);
328 }
329 template <typename PoliticalViewT = Aws::String>
330 GeocodeResultItem& WithPoliticalView(PoliticalViewT&& value) {
331 SetPoliticalView(std::forward<PoliticalViewT>(value));
332 return *this;
333 }
335
337
341 inline const MatchScoreDetails& GetMatchScores() const { return m_matchScores; }
342 inline bool MatchScoresHasBeenSet() const { return m_matchScoresHasBeenSet; }
343 template <typename MatchScoresT = MatchScoreDetails>
344 void SetMatchScores(MatchScoresT&& value) {
345 m_matchScoresHasBeenSet = true;
346 m_matchScores = std::forward<MatchScoresT>(value);
347 }
348 template <typename MatchScoresT = MatchScoreDetails>
349 GeocodeResultItem& WithMatchScores(MatchScoresT&& value) {
350 SetMatchScores(std::forward<MatchScoresT>(value));
351 return *this;
352 }
354
356
359 inline const GeocodeParsedQuery& GetParsedQuery() const { return m_parsedQuery; }
360 inline bool ParsedQueryHasBeenSet() const { return m_parsedQueryHasBeenSet; }
361 template <typename ParsedQueryT = GeocodeParsedQuery>
362 void SetParsedQuery(ParsedQueryT&& value) {
363 m_parsedQueryHasBeenSet = true;
364 m_parsedQuery = std::forward<ParsedQueryT>(value);
365 }
366 template <typename ParsedQueryT = GeocodeParsedQuery>
367 GeocodeResultItem& WithParsedQuery(ParsedQueryT&& value) {
368 SetParsedQuery(std::forward<ParsedQueryT>(value));
369 return *this;
370 }
372
374
377 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
378 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
379 template <typename IntersectionsT = Aws::Vector<Intersection>>
380 void SetIntersections(IntersectionsT&& value) {
381 m_intersectionsHasBeenSet = true;
382 m_intersections = std::forward<IntersectionsT>(value);
383 }
384 template <typename IntersectionsT = Aws::Vector<Intersection>>
385 GeocodeResultItem& WithIntersections(IntersectionsT&& value) {
386 SetIntersections(std::forward<IntersectionsT>(value));
387 return *this;
388 }
389 template <typename IntersectionsT = Intersection>
390 GeocodeResultItem& AddIntersections(IntersectionsT&& value) {
391 m_intersectionsHasBeenSet = true;
392 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
393 return *this;
394 }
396
398
401 inline const RelatedPlace& GetMainAddress() const { return m_mainAddress; }
402 inline bool MainAddressHasBeenSet() const { return m_mainAddressHasBeenSet; }
403 template <typename MainAddressT = RelatedPlace>
404 void SetMainAddress(MainAddressT&& value) {
405 m_mainAddressHasBeenSet = true;
406 m_mainAddress = std::forward<MainAddressT>(value);
407 }
408 template <typename MainAddressT = RelatedPlace>
409 GeocodeResultItem& WithMainAddress(MainAddressT&& value) {
410 SetMainAddress(std::forward<MainAddressT>(value));
411 return *this;
412 }
414
416
423 inline const Aws::Vector<RelatedPlace>& GetSecondaryAddresses() const { return m_secondaryAddresses; }
424 inline bool SecondaryAddressesHasBeenSet() const { return m_secondaryAddressesHasBeenSet; }
425 template <typename SecondaryAddressesT = Aws::Vector<RelatedPlace>>
426 void SetSecondaryAddresses(SecondaryAddressesT&& value) {
427 m_secondaryAddressesHasBeenSet = true;
428 m_secondaryAddresses = std::forward<SecondaryAddressesT>(value);
429 }
430 template <typename SecondaryAddressesT = Aws::Vector<RelatedPlace>>
431 GeocodeResultItem& WithSecondaryAddresses(SecondaryAddressesT&& value) {
432 SetSecondaryAddresses(std::forward<SecondaryAddressesT>(value));
433 return *this;
434 }
435 template <typename SecondaryAddressesT = RelatedPlace>
436 GeocodeResultItem& AddSecondaryAddresses(SecondaryAddressesT&& value) {
437 m_secondaryAddressesHasBeenSet = true;
438 m_secondaryAddresses.emplace_back(std::forward<SecondaryAddressesT>(value));
439 return *this;
440 }
442
444
448 inline const TranslationDetails& GetTranslations() const { return m_translations; }
449 inline bool TranslationsHasBeenSet() const { return m_translationsHasBeenSet; }
450 template <typename TranslationsT = TranslationDetails>
451 void SetTranslations(TranslationsT&& value) {
452 m_translationsHasBeenSet = true;
453 m_translations = std::forward<TranslationsT>(value);
454 }
455 template <typename TranslationsT = TranslationDetails>
456 GeocodeResultItem& WithTranslations(TranslationsT&& value) {
457 SetTranslations(std::forward<TranslationsT>(value));
458 return *this;
459 }
461
463
467 inline bool GetEstimatedPointAddress() const { return m_estimatedPointAddress; }
468 inline bool EstimatedPointAddressHasBeenSet() const { return m_estimatedPointAddressHasBeenSet; }
469 inline void SetEstimatedPointAddress(bool value) {
470 m_estimatedPointAddressHasBeenSet = true;
471 m_estimatedPointAddress = value;
472 }
475 return *this;
476 }
478 private:
479 Aws::String m_placeId;
480
481 PlaceType m_placeType{PlaceType::NOT_SET};
482
483 Aws::String m_title;
484
485 Address m_address;
486
487 bool m_addressNumberCorrected{false};
488
489 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
490
491 Aws::Vector<double> m_position;
492
493 long long m_distance{0};
494
495 Aws::Vector<double> m_mapView;
496
497 Aws::Vector<Category> m_categories;
498
499 Aws::Vector<FoodType> m_foodTypes;
500
501 Aws::Vector<AccessPoint> m_accessPoints;
502
503 TimeZone m_timeZone;
504
505 Aws::String m_politicalView;
506
507 MatchScoreDetails m_matchScores;
508
509 GeocodeParsedQuery m_parsedQuery;
510
511 Aws::Vector<Intersection> m_intersections;
512
513 RelatedPlace m_mainAddress;
514
515 Aws::Vector<RelatedPlace> m_secondaryAddresses;
516
517 TranslationDetails m_translations;
518
519 bool m_estimatedPointAddress{false};
520 bool m_placeIdHasBeenSet = false;
521 bool m_placeTypeHasBeenSet = false;
522 bool m_titleHasBeenSet = false;
523 bool m_addressHasBeenSet = false;
524 bool m_addressNumberCorrectedHasBeenSet = false;
525 bool m_postalCodeDetailsHasBeenSet = false;
526 bool m_positionHasBeenSet = false;
527 bool m_distanceHasBeenSet = false;
528 bool m_mapViewHasBeenSet = false;
529 bool m_categoriesHasBeenSet = false;
530 bool m_foodTypesHasBeenSet = false;
531 bool m_accessPointsHasBeenSet = false;
532 bool m_timeZoneHasBeenSet = false;
533 bool m_politicalViewHasBeenSet = false;
534 bool m_matchScoresHasBeenSet = false;
535 bool m_parsedQueryHasBeenSet = false;
536 bool m_intersectionsHasBeenSet = false;
537 bool m_mainAddressHasBeenSet = false;
538 bool m_secondaryAddressesHasBeenSet = false;
539 bool m_translationsHasBeenSet = false;
540 bool m_estimatedPointAddressHasBeenSet = false;
541};
542
543} // namespace Model
544} // namespace GeoPlaces
545} // namespace Aws
GeocodeResultItem & AddSecondaryAddresses(SecondaryAddressesT &&value)
void SetAccessPoints(AccessPointsT &&value)
GeocodeResultItem & WithTitle(TitleT &&value)
GeocodeResultItem & WithAddress(AddressT &&value)
const Aws::Vector< PostalCodeDetails > & GetPostalCodeDetails() const
const TranslationDetails & GetTranslations() const
const Aws::Vector< double > & GetPosition() const
void SetSecondaryAddresses(SecondaryAddressesT &&value)
GeocodeResultItem & AddCategories(CategoriesT &&value)
GeocodeResultItem & WithAddressNumberCorrected(bool value)
const RelatedPlace & GetMainAddress() const
const Aws::Vector< Intersection > & GetIntersections() const
GeocodeResultItem & WithMatchScores(MatchScoresT &&value)
GeocodeResultItem & AddFoodTypes(FoodTypesT &&value)
GeocodeResultItem & WithMainAddress(MainAddressT &&value)
AWS_GEOPLACES_API GeocodeResultItem(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API GeocodeResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Category > & GetCategories() const
GeocodeResultItem & WithFoodTypes(FoodTypesT &&value)
GeocodeResultItem & WithPostalCodeDetails(PostalCodeDetailsT &&value)
const MatchScoreDetails & GetMatchScores() const
GeocodeResultItem & AddAccessPoints(AccessPointsT &&value)
GeocodeResultItem & WithIntersections(IntersectionsT &&value)
void SetTranslations(TranslationsT &&value)
GeocodeResultItem & WithAccessPoints(AccessPointsT &&value)
void SetPoliticalView(PoliticalViewT &&value)
const Aws::String & GetPoliticalView() const
GeocodeResultItem & WithPosition(PositionT &&value)
GeocodeResultItem & WithEstimatedPointAddress(bool value)
GeocodeResultItem & AddPosition(double value)
GeocodeResultItem & AddPostalCodeDetails(PostalCodeDetailsT &&value)
GeocodeResultItem & AddMapView(double value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< FoodType > & GetFoodTypes() const
GeocodeResultItem & WithMapView(MapViewT &&value)
const Aws::Vector< RelatedPlace > & GetSecondaryAddresses() const
const Aws::Vector< AccessPoint > & GetAccessPoints() const
const GeocodeParsedQuery & GetParsedQuery() const
GeocodeResultItem & WithPoliticalView(PoliticalViewT &&value)
GeocodeResultItem & WithTranslations(TranslationsT &&value)
void SetIntersections(IntersectionsT &&value)
GeocodeResultItem & WithPlaceId(PlaceIdT &&value)
GeocodeResultItem & WithParsedQuery(ParsedQueryT &&value)
GeocodeResultItem & WithTimeZone(TimeZoneT &&value)
GeocodeResultItem & WithSecondaryAddresses(SecondaryAddressesT &&value)
GeocodeResultItem & AddIntersections(IntersectionsT &&value)
AWS_GEOPLACES_API GeocodeResultItem()=default
void SetPostalCodeDetails(PostalCodeDetailsT &&value)
GeocodeResultItem & WithDistance(long long value)
GeocodeResultItem & WithCategories(CategoriesT &&value)
GeocodeResultItem & WithPlaceType(PlaceType value)
const Aws::Vector< double > & GetMapView() 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