AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace GeoPlaces {
32namespace Model {
33
40 public:
41 AWS_GEOPLACES_API GeocodeResultItem() = default;
42 AWS_GEOPLACES_API GeocodeResultItem(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
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>
58 GeocodeResultItem& WithPlaceId(PlaceIdT&& value) {
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>
94 GeocodeResultItem& WithTitle(TitleT&& value) {
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>
112 GeocodeResultItem& WithAddress(AddressT&& value) {
113 SetAddress(std::forward<AddressT>(value));
114 return *this;
115 }
117
119
122 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
123 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
124 inline void SetAddressNumberCorrected(bool value) {
125 m_addressNumberCorrectedHasBeenSet = true;
126 m_addressNumberCorrected = value;
127 }
130 return *this;
131 }
133
135
138 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
139 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
140 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
141 void SetPostalCodeDetails(PostalCodeDetailsT&& value) {
142 m_postalCodeDetailsHasBeenSet = true;
143 m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value);
144 }
145 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
146 GeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) {
147 SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value));
148 return *this;
149 }
150 template <typename PostalCodeDetailsT = PostalCodeDetails>
151 GeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) {
152 m_postalCodeDetailsHasBeenSet = true;
153 m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
163 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
164 template <typename PositionT = Aws::Vector<double>>
165 void SetPosition(PositionT&& value) {
166 m_positionHasBeenSet = true;
167 m_position = std::forward<PositionT>(value);
168 }
169 template <typename PositionT = Aws::Vector<double>>
170 GeocodeResultItem& WithPosition(PositionT&& value) {
171 SetPosition(std::forward<PositionT>(value));
172 return *this;
173 }
174 inline GeocodeResultItem& AddPosition(double value) {
175 m_positionHasBeenSet = true;
176 m_position.push_back(value);
177 return *this;
178 }
180
182
185 inline long long GetDistance() const { return m_distance; }
186 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
187 inline void SetDistance(long long value) {
188 m_distanceHasBeenSet = true;
189 m_distance = value;
190 }
191 inline GeocodeResultItem& WithDistance(long long value) {
192 SetDistance(value);
193 return *this;
194 }
196
198
204 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
205 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
206 template <typename MapViewT = Aws::Vector<double>>
207 void SetMapView(MapViewT&& value) {
208 m_mapViewHasBeenSet = true;
209 m_mapView = std::forward<MapViewT>(value);
210 }
211 template <typename MapViewT = Aws::Vector<double>>
212 GeocodeResultItem& WithMapView(MapViewT&& value) {
213 SetMapView(std::forward<MapViewT>(value));
214 return *this;
215 }
216 inline GeocodeResultItem& AddMapView(double value) {
217 m_mapViewHasBeenSet = true;
218 m_mapView.push_back(value);
219 return *this;
220 }
222
224
227 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
228 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
229 template <typename CategoriesT = Aws::Vector<Category>>
230 void SetCategories(CategoriesT&& value) {
231 m_categoriesHasBeenSet = true;
232 m_categories = std::forward<CategoriesT>(value);
233 }
234 template <typename CategoriesT = Aws::Vector<Category>>
235 GeocodeResultItem& WithCategories(CategoriesT&& value) {
236 SetCategories(std::forward<CategoriesT>(value));
237 return *this;
238 }
239 template <typename CategoriesT = Category>
240 GeocodeResultItem& AddCategories(CategoriesT&& value) {
241 m_categoriesHasBeenSet = true;
242 m_categories.emplace_back(std::forward<CategoriesT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
252 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
253 template <typename FoodTypesT = Aws::Vector<FoodType>>
254 void SetFoodTypes(FoodTypesT&& value) {
255 m_foodTypesHasBeenSet = true;
256 m_foodTypes = std::forward<FoodTypesT>(value);
257 }
258 template <typename FoodTypesT = Aws::Vector<FoodType>>
259 GeocodeResultItem& WithFoodTypes(FoodTypesT&& value) {
260 SetFoodTypes(std::forward<FoodTypesT>(value));
261 return *this;
262 }
263 template <typename FoodTypesT = FoodType>
264 GeocodeResultItem& AddFoodTypes(FoodTypesT&& value) {
265 m_foodTypesHasBeenSet = true;
266 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
276 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
277 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
278 void SetAccessPoints(AccessPointsT&& value) {
279 m_accessPointsHasBeenSet = true;
280 m_accessPoints = std::forward<AccessPointsT>(value);
281 }
282 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
283 GeocodeResultItem& WithAccessPoints(AccessPointsT&& value) {
284 SetAccessPoints(std::forward<AccessPointsT>(value));
285 return *this;
286 }
287 template <typename AccessPointsT = AccessPoint>
288 GeocodeResultItem& AddAccessPoints(AccessPointsT&& value) {
289 m_accessPointsHasBeenSet = true;
290 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
291 return *this;
292 }
294
296
299 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
300 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
301 template <typename TimeZoneT = TimeZone>
302 void SetTimeZone(TimeZoneT&& value) {
303 m_timeZoneHasBeenSet = true;
304 m_timeZone = std::forward<TimeZoneT>(value);
305 }
306 template <typename TimeZoneT = TimeZone>
307 GeocodeResultItem& WithTimeZone(TimeZoneT&& value) {
308 SetTimeZone(std::forward<TimeZoneT>(value));
309 return *this;
310 }
312
314
319 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
320 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
321 template <typename PoliticalViewT = Aws::String>
322 void SetPoliticalView(PoliticalViewT&& value) {
323 m_politicalViewHasBeenSet = true;
324 m_politicalView = std::forward<PoliticalViewT>(value);
325 }
326 template <typename PoliticalViewT = Aws::String>
327 GeocodeResultItem& WithPoliticalView(PoliticalViewT&& value) {
328 SetPoliticalView(std::forward<PoliticalViewT>(value));
329 return *this;
330 }
332
334
338 inline const MatchScoreDetails& GetMatchScores() const { return m_matchScores; }
339 inline bool MatchScoresHasBeenSet() const { return m_matchScoresHasBeenSet; }
340 template <typename MatchScoresT = MatchScoreDetails>
341 void SetMatchScores(MatchScoresT&& value) {
342 m_matchScoresHasBeenSet = true;
343 m_matchScores = std::forward<MatchScoresT>(value);
344 }
345 template <typename MatchScoresT = MatchScoreDetails>
346 GeocodeResultItem& WithMatchScores(MatchScoresT&& value) {
347 SetMatchScores(std::forward<MatchScoresT>(value));
348 return *this;
349 }
351
353
356 inline const GeocodeParsedQuery& GetParsedQuery() const { return m_parsedQuery; }
357 inline bool ParsedQueryHasBeenSet() const { return m_parsedQueryHasBeenSet; }
358 template <typename ParsedQueryT = GeocodeParsedQuery>
359 void SetParsedQuery(ParsedQueryT&& value) {
360 m_parsedQueryHasBeenSet = true;
361 m_parsedQuery = std::forward<ParsedQueryT>(value);
362 }
363 template <typename ParsedQueryT = GeocodeParsedQuery>
364 GeocodeResultItem& WithParsedQuery(ParsedQueryT&& value) {
365 SetParsedQuery(std::forward<ParsedQueryT>(value));
366 return *this;
367 }
369
371
374 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
375 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
376 template <typename IntersectionsT = Aws::Vector<Intersection>>
377 void SetIntersections(IntersectionsT&& value) {
378 m_intersectionsHasBeenSet = true;
379 m_intersections = std::forward<IntersectionsT>(value);
380 }
381 template <typename IntersectionsT = Aws::Vector<Intersection>>
382 GeocodeResultItem& WithIntersections(IntersectionsT&& value) {
383 SetIntersections(std::forward<IntersectionsT>(value));
384 return *this;
385 }
386 template <typename IntersectionsT = Intersection>
387 GeocodeResultItem& AddIntersections(IntersectionsT&& value) {
388 m_intersectionsHasBeenSet = true;
389 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
390 return *this;
391 }
393
395
398 inline const RelatedPlace& GetMainAddress() const { return m_mainAddress; }
399 inline bool MainAddressHasBeenSet() const { return m_mainAddressHasBeenSet; }
400 template <typename MainAddressT = RelatedPlace>
401 void SetMainAddress(MainAddressT&& value) {
402 m_mainAddressHasBeenSet = true;
403 m_mainAddress = std::forward<MainAddressT>(value);
404 }
405 template <typename MainAddressT = RelatedPlace>
406 GeocodeResultItem& WithMainAddress(MainAddressT&& value) {
407 SetMainAddress(std::forward<MainAddressT>(value));
408 return *this;
409 }
411
413
418 inline const Aws::Vector<RelatedPlace>& GetSecondaryAddresses() const { return m_secondaryAddresses; }
419 inline bool SecondaryAddressesHasBeenSet() const { return m_secondaryAddressesHasBeenSet; }
420 template <typename SecondaryAddressesT = Aws::Vector<RelatedPlace>>
421 void SetSecondaryAddresses(SecondaryAddressesT&& value) {
422 m_secondaryAddressesHasBeenSet = true;
423 m_secondaryAddresses = std::forward<SecondaryAddressesT>(value);
424 }
425 template <typename SecondaryAddressesT = Aws::Vector<RelatedPlace>>
426 GeocodeResultItem& WithSecondaryAddresses(SecondaryAddressesT&& value) {
427 SetSecondaryAddresses(std::forward<SecondaryAddressesT>(value));
428 return *this;
429 }
430 template <typename SecondaryAddressesT = RelatedPlace>
431 GeocodeResultItem& AddSecondaryAddresses(SecondaryAddressesT&& value) {
432 m_secondaryAddressesHasBeenSet = true;
433 m_secondaryAddresses.emplace_back(std::forward<SecondaryAddressesT>(value));
434 return *this;
435 }
437 private:
438 Aws::String m_placeId;
439 bool m_placeIdHasBeenSet = false;
440
441 PlaceType m_placeType{PlaceType::NOT_SET};
442 bool m_placeTypeHasBeenSet = false;
443
444 Aws::String m_title;
445 bool m_titleHasBeenSet = false;
446
447 Address m_address;
448 bool m_addressHasBeenSet = false;
449
450 bool m_addressNumberCorrected{false};
451 bool m_addressNumberCorrectedHasBeenSet = false;
452
453 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
454 bool m_postalCodeDetailsHasBeenSet = false;
455
456 Aws::Vector<double> m_position;
457 bool m_positionHasBeenSet = false;
458
459 long long m_distance{0};
460 bool m_distanceHasBeenSet = false;
461
462 Aws::Vector<double> m_mapView;
463 bool m_mapViewHasBeenSet = false;
464
465 Aws::Vector<Category> m_categories;
466 bool m_categoriesHasBeenSet = false;
467
468 Aws::Vector<FoodType> m_foodTypes;
469 bool m_foodTypesHasBeenSet = false;
470
471 Aws::Vector<AccessPoint> m_accessPoints;
472 bool m_accessPointsHasBeenSet = false;
473
474 TimeZone m_timeZone;
475 bool m_timeZoneHasBeenSet = false;
476
477 Aws::String m_politicalView;
478 bool m_politicalViewHasBeenSet = false;
479
480 MatchScoreDetails m_matchScores;
481 bool m_matchScoresHasBeenSet = false;
482
483 GeocodeParsedQuery m_parsedQuery;
484 bool m_parsedQueryHasBeenSet = false;
485
486 Aws::Vector<Intersection> m_intersections;
487 bool m_intersectionsHasBeenSet = false;
488
489 RelatedPlace m_mainAddress;
490 bool m_mainAddressHasBeenSet = false;
491
492 Aws::Vector<RelatedPlace> m_secondaryAddresses;
493 bool m_secondaryAddressesHasBeenSet = false;
494};
495
496} // namespace Model
497} // namespace GeoPlaces
498} // 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 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)
GeocodeResultItem & WithAccessPoints(AccessPointsT &&value)
void SetPoliticalView(PoliticalViewT &&value)
const Aws::String & GetPoliticalView() const
GeocodeResultItem & WithPosition(PositionT &&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)
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