AWS SDK for C++

AWS SDK for C++ Version 1.11.791

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
124 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
125 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
126 inline void SetAddressNumberCorrected(bool value) {
127 m_addressNumberCorrectedHasBeenSet = true;
128 m_addressNumberCorrected = value;
129 }
132 return *this;
133 }
135
137
143 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
144 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
145 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
146 void SetPostalCodeDetails(PostalCodeDetailsT&& value) {
147 m_postalCodeDetailsHasBeenSet = true;
148 m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value);
149 }
150 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
151 ReverseGeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) {
152 SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value));
153 return *this;
154 }
155 template <typename PostalCodeDetailsT = PostalCodeDetails>
156 ReverseGeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) {
157 m_postalCodeDetailsHasBeenSet = true;
158 m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
169 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
170 template <typename PositionT = Aws::Vector<double>>
171 void SetPosition(PositionT&& value) {
172 m_positionHasBeenSet = true;
173 m_position = std::forward<PositionT>(value);
174 }
175 template <typename PositionT = Aws::Vector<double>>
177 SetPosition(std::forward<PositionT>(value));
178 return *this;
179 }
180 inline ReverseGeocodeResultItem& AddPosition(double value) {
181 m_positionHasBeenSet = true;
182 m_position.push_back(value);
183 return *this;
184 }
186
188
191 inline long long GetDistance() const { return m_distance; }
192 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
193 inline void SetDistance(long long value) {
194 m_distanceHasBeenSet = true;
195 m_distance = value;
196 }
197 inline ReverseGeocodeResultItem& WithDistance(long long value) {
198 SetDistance(value);
199 return *this;
200 }
202
204
210 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
211 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
212 template <typename MapViewT = Aws::Vector<double>>
213 void SetMapView(MapViewT&& value) {
214 m_mapViewHasBeenSet = true;
215 m_mapView = std::forward<MapViewT>(value);
216 }
217 template <typename MapViewT = Aws::Vector<double>>
219 SetMapView(std::forward<MapViewT>(value));
220 return *this;
221 }
222 inline ReverseGeocodeResultItem& AddMapView(double value) {
223 m_mapViewHasBeenSet = true;
224 m_mapView.push_back(value);
225 return *this;
226 }
228
230
233 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
234 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
235 template <typename CategoriesT = Aws::Vector<Category>>
236 void SetCategories(CategoriesT&& value) {
237 m_categoriesHasBeenSet = true;
238 m_categories = std::forward<CategoriesT>(value);
239 }
240 template <typename CategoriesT = Aws::Vector<Category>>
242 SetCategories(std::forward<CategoriesT>(value));
243 return *this;
244 }
245 template <typename CategoriesT = Category>
247 m_categoriesHasBeenSet = true;
248 m_categories.emplace_back(std::forward<CategoriesT>(value));
249 return *this;
250 }
252
254
260 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
261 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
262 template <typename FoodTypesT = Aws::Vector<FoodType>>
263 void SetFoodTypes(FoodTypesT&& value) {
264 m_foodTypesHasBeenSet = true;
265 m_foodTypes = std::forward<FoodTypesT>(value);
266 }
267 template <typename FoodTypesT = Aws::Vector<FoodType>>
269 SetFoodTypes(std::forward<FoodTypesT>(value));
270 return *this;
271 }
272 template <typename FoodTypesT = FoodType>
274 m_foodTypesHasBeenSet = true;
275 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
276 return *this;
277 }
279
281
288 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
289 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
290 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
291 void SetAccessPoints(AccessPointsT&& value) {
292 m_accessPointsHasBeenSet = true;
293 m_accessPoints = std::forward<AccessPointsT>(value);
294 }
295 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
297 SetAccessPoints(std::forward<AccessPointsT>(value));
298 return *this;
299 }
300 template <typename AccessPointsT = AccessPoint>
302 m_accessPointsHasBeenSet = true;
303 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
304 return *this;
305 }
307
309
312 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
313 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
314 template <typename TimeZoneT = TimeZone>
315 void SetTimeZone(TimeZoneT&& value) {
316 m_timeZoneHasBeenSet = true;
317 m_timeZone = std::forward<TimeZoneT>(value);
318 }
319 template <typename TimeZoneT = TimeZone>
321 SetTimeZone(std::forward<TimeZoneT>(value));
322 return *this;
323 }
325
327
336 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
337 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
338 template <typename PoliticalViewT = Aws::String>
339 void SetPoliticalView(PoliticalViewT&& value) {
340 m_politicalViewHasBeenSet = true;
341 m_politicalView = std::forward<PoliticalViewT>(value);
342 }
343 template <typename PoliticalViewT = Aws::String>
345 SetPoliticalView(std::forward<PoliticalViewT>(value));
346 return *this;
347 }
349
351
357 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
358 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
359 template <typename IntersectionsT = Aws::Vector<Intersection>>
360 void SetIntersections(IntersectionsT&& value) {
361 m_intersectionsHasBeenSet = true;
362 m_intersections = std::forward<IntersectionsT>(value);
363 }
364 template <typename IntersectionsT = Aws::Vector<Intersection>>
366 SetIntersections(std::forward<IntersectionsT>(value));
367 return *this;
368 }
369 template <typename IntersectionsT = Intersection>
371 m_intersectionsHasBeenSet = true;
372 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
373 return *this;
374 }
376 private:
377 Aws::String m_placeId;
378
379 PlaceType m_placeType{PlaceType::NOT_SET};
380
381 Aws::String m_title;
382
383 Address m_address;
384
385 bool m_addressNumberCorrected{false};
386
387 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
388
389 Aws::Vector<double> m_position;
390
391 long long m_distance{0};
392
393 Aws::Vector<double> m_mapView;
394
395 Aws::Vector<Category> m_categories;
396
397 Aws::Vector<FoodType> m_foodTypes;
398
399 Aws::Vector<AccessPoint> m_accessPoints;
400
401 TimeZone m_timeZone;
402
403 Aws::String m_politicalView;
404
405 Aws::Vector<Intersection> m_intersections;
406 bool m_placeIdHasBeenSet = false;
407 bool m_placeTypeHasBeenSet = false;
408 bool m_titleHasBeenSet = false;
409 bool m_addressHasBeenSet = false;
410 bool m_addressNumberCorrectedHasBeenSet = false;
411 bool m_postalCodeDetailsHasBeenSet = false;
412 bool m_positionHasBeenSet = false;
413 bool m_distanceHasBeenSet = false;
414 bool m_mapViewHasBeenSet = false;
415 bool m_categoriesHasBeenSet = false;
416 bool m_foodTypesHasBeenSet = false;
417 bool m_accessPointsHasBeenSet = false;
418 bool m_timeZoneHasBeenSet = false;
419 bool m_politicalViewHasBeenSet = false;
420 bool m_intersectionsHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace GeoPlaces
425} // 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