AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
163 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
164 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
165 template <typename PositionT = Aws::Vector<double>>
166 void SetPosition(PositionT&& value) {
167 m_positionHasBeenSet = true;
168 m_position = std::forward<PositionT>(value);
169 }
170 template <typename PositionT = Aws::Vector<double>>
171 GeocodeResultItem& WithPosition(PositionT&& value) {
172 SetPosition(std::forward<PositionT>(value));
173 return *this;
174 }
175 inline GeocodeResultItem& AddPosition(double value) {
176 m_positionHasBeenSet = true;
177 m_position.push_back(value);
178 return *this;
179 }
181
183
186 inline long long GetDistance() const { return m_distance; }
187 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
188 inline void SetDistance(long long value) {
189 m_distanceHasBeenSet = true;
190 m_distance = value;
191 }
192 inline GeocodeResultItem& WithDistance(long long value) {
193 SetDistance(value);
194 return *this;
195 }
197
199
205 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
206 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
207 template <typename MapViewT = Aws::Vector<double>>
208 void SetMapView(MapViewT&& value) {
209 m_mapViewHasBeenSet = true;
210 m_mapView = std::forward<MapViewT>(value);
211 }
212 template <typename MapViewT = Aws::Vector<double>>
213 GeocodeResultItem& WithMapView(MapViewT&& value) {
214 SetMapView(std::forward<MapViewT>(value));
215 return *this;
216 }
217 inline GeocodeResultItem& AddMapView(double value) {
218 m_mapViewHasBeenSet = true;
219 m_mapView.push_back(value);
220 return *this;
221 }
223
225
228 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
229 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
230 template <typename CategoriesT = Aws::Vector<Category>>
231 void SetCategories(CategoriesT&& value) {
232 m_categoriesHasBeenSet = true;
233 m_categories = std::forward<CategoriesT>(value);
234 }
235 template <typename CategoriesT = Aws::Vector<Category>>
236 GeocodeResultItem& WithCategories(CategoriesT&& value) {
237 SetCategories(std::forward<CategoriesT>(value));
238 return *this;
239 }
240 template <typename CategoriesT = Category>
241 GeocodeResultItem& AddCategories(CategoriesT&& value) {
242 m_categoriesHasBeenSet = true;
243 m_categories.emplace_back(std::forward<CategoriesT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
253 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
254 template <typename FoodTypesT = Aws::Vector<FoodType>>
255 void SetFoodTypes(FoodTypesT&& value) {
256 m_foodTypesHasBeenSet = true;
257 m_foodTypes = std::forward<FoodTypesT>(value);
258 }
259 template <typename FoodTypesT = Aws::Vector<FoodType>>
260 GeocodeResultItem& WithFoodTypes(FoodTypesT&& value) {
261 SetFoodTypes(std::forward<FoodTypesT>(value));
262 return *this;
263 }
264 template <typename FoodTypesT = FoodType>
265 GeocodeResultItem& AddFoodTypes(FoodTypesT&& value) {
266 m_foodTypesHasBeenSet = true;
267 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
268 return *this;
269 }
271
273
277 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
278 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
279 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
280 void SetAccessPoints(AccessPointsT&& value) {
281 m_accessPointsHasBeenSet = true;
282 m_accessPoints = std::forward<AccessPointsT>(value);
283 }
284 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
285 GeocodeResultItem& WithAccessPoints(AccessPointsT&& value) {
286 SetAccessPoints(std::forward<AccessPointsT>(value));
287 return *this;
288 }
289 template <typename AccessPointsT = AccessPoint>
290 GeocodeResultItem& AddAccessPoints(AccessPointsT&& value) {
291 m_accessPointsHasBeenSet = true;
292 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
293 return *this;
294 }
296
298
301 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
302 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
303 template <typename TimeZoneT = TimeZone>
304 void SetTimeZone(TimeZoneT&& value) {
305 m_timeZoneHasBeenSet = true;
306 m_timeZone = std::forward<TimeZoneT>(value);
307 }
308 template <typename TimeZoneT = TimeZone>
309 GeocodeResultItem& WithTimeZone(TimeZoneT&& value) {
310 SetTimeZone(std::forward<TimeZoneT>(value));
311 return *this;
312 }
314
316
321 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
322 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
323 template <typename PoliticalViewT = Aws::String>
324 void SetPoliticalView(PoliticalViewT&& value) {
325 m_politicalViewHasBeenSet = true;
326 m_politicalView = std::forward<PoliticalViewT>(value);
327 }
328 template <typename PoliticalViewT = Aws::String>
329 GeocodeResultItem& WithPoliticalView(PoliticalViewT&& value) {
330 SetPoliticalView(std::forward<PoliticalViewT>(value));
331 return *this;
332 }
334
336
340 inline const MatchScoreDetails& GetMatchScores() const { return m_matchScores; }
341 inline bool MatchScoresHasBeenSet() const { return m_matchScoresHasBeenSet; }
342 template <typename MatchScoresT = MatchScoreDetails>
343 void SetMatchScores(MatchScoresT&& value) {
344 m_matchScoresHasBeenSet = true;
345 m_matchScores = std::forward<MatchScoresT>(value);
346 }
347 template <typename MatchScoresT = MatchScoreDetails>
348 GeocodeResultItem& WithMatchScores(MatchScoresT&& value) {
349 SetMatchScores(std::forward<MatchScoresT>(value));
350 return *this;
351 }
353
355
358 inline const GeocodeParsedQuery& GetParsedQuery() const { return m_parsedQuery; }
359 inline bool ParsedQueryHasBeenSet() const { return m_parsedQueryHasBeenSet; }
360 template <typename ParsedQueryT = GeocodeParsedQuery>
361 void SetParsedQuery(ParsedQueryT&& value) {
362 m_parsedQueryHasBeenSet = true;
363 m_parsedQuery = std::forward<ParsedQueryT>(value);
364 }
365 template <typename ParsedQueryT = GeocodeParsedQuery>
366 GeocodeResultItem& WithParsedQuery(ParsedQueryT&& value) {
367 SetParsedQuery(std::forward<ParsedQueryT>(value));
368 return *this;
369 }
371
373
376 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
377 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
378 template <typename IntersectionsT = Aws::Vector<Intersection>>
379 void SetIntersections(IntersectionsT&& value) {
380 m_intersectionsHasBeenSet = true;
381 m_intersections = std::forward<IntersectionsT>(value);
382 }
383 template <typename IntersectionsT = Aws::Vector<Intersection>>
384 GeocodeResultItem& WithIntersections(IntersectionsT&& value) {
385 SetIntersections(std::forward<IntersectionsT>(value));
386 return *this;
387 }
388 template <typename IntersectionsT = Intersection>
389 GeocodeResultItem& AddIntersections(IntersectionsT&& value) {
390 m_intersectionsHasBeenSet = true;
391 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
392 return *this;
393 }
395
397
400 inline const RelatedPlace& GetMainAddress() const { return m_mainAddress; }
401 inline bool MainAddressHasBeenSet() const { return m_mainAddressHasBeenSet; }
402 template <typename MainAddressT = RelatedPlace>
403 void SetMainAddress(MainAddressT&& value) {
404 m_mainAddressHasBeenSet = true;
405 m_mainAddress = std::forward<MainAddressT>(value);
406 }
407 template <typename MainAddressT = RelatedPlace>
408 GeocodeResultItem& WithMainAddress(MainAddressT&& value) {
409 SetMainAddress(std::forward<MainAddressT>(value));
410 return *this;
411 }
413
415
422 inline const Aws::Vector<RelatedPlace>& GetSecondaryAddresses() const { return m_secondaryAddresses; }
423 inline bool SecondaryAddressesHasBeenSet() const { return m_secondaryAddressesHasBeenSet; }
424 template <typename SecondaryAddressesT = Aws::Vector<RelatedPlace>>
425 void SetSecondaryAddresses(SecondaryAddressesT&& value) {
426 m_secondaryAddressesHasBeenSet = true;
427 m_secondaryAddresses = std::forward<SecondaryAddressesT>(value);
428 }
429 template <typename SecondaryAddressesT = Aws::Vector<RelatedPlace>>
430 GeocodeResultItem& WithSecondaryAddresses(SecondaryAddressesT&& value) {
431 SetSecondaryAddresses(std::forward<SecondaryAddressesT>(value));
432 return *this;
433 }
434 template <typename SecondaryAddressesT = RelatedPlace>
435 GeocodeResultItem& AddSecondaryAddresses(SecondaryAddressesT&& value) {
436 m_secondaryAddressesHasBeenSet = true;
437 m_secondaryAddresses.emplace_back(std::forward<SecondaryAddressesT>(value));
438 return *this;
439 }
441 private:
442 Aws::String m_placeId;
443
444 PlaceType m_placeType{PlaceType::NOT_SET};
445
446 Aws::String m_title;
447
448 Address m_address;
449
450 bool m_addressNumberCorrected{false};
451
452 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
453
454 Aws::Vector<double> m_position;
455
456 long long m_distance{0};
457
458 Aws::Vector<double> m_mapView;
459
460 Aws::Vector<Category> m_categories;
461
462 Aws::Vector<FoodType> m_foodTypes;
463
464 Aws::Vector<AccessPoint> m_accessPoints;
465
466 TimeZone m_timeZone;
467
468 Aws::String m_politicalView;
469
470 MatchScoreDetails m_matchScores;
471
472 GeocodeParsedQuery m_parsedQuery;
473
474 Aws::Vector<Intersection> m_intersections;
475
476 RelatedPlace m_mainAddress;
477
478 Aws::Vector<RelatedPlace> m_secondaryAddresses;
479 bool m_placeIdHasBeenSet = false;
480 bool m_placeTypeHasBeenSet = false;
481 bool m_titleHasBeenSet = false;
482 bool m_addressHasBeenSet = false;
483 bool m_addressNumberCorrectedHasBeenSet = false;
484 bool m_postalCodeDetailsHasBeenSet = false;
485 bool m_positionHasBeenSet = false;
486 bool m_distanceHasBeenSet = false;
487 bool m_mapViewHasBeenSet = false;
488 bool m_categoriesHasBeenSet = false;
489 bool m_foodTypesHasBeenSet = false;
490 bool m_accessPointsHasBeenSet = false;
491 bool m_timeZoneHasBeenSet = false;
492 bool m_politicalViewHasBeenSet = false;
493 bool m_matchScoresHasBeenSet = false;
494 bool m_parsedQueryHasBeenSet = false;
495 bool m_intersectionsHasBeenSet = false;
496 bool m_mainAddressHasBeenSet = false;
497 bool m_secondaryAddressesHasBeenSet = false;
498};
499
500} // namespace Model
501} // namespace GeoPlaces
502} // 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