AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
121 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
122 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
123 inline void SetAddressNumberCorrected(bool value) {
124 m_addressNumberCorrectedHasBeenSet = true;
125 m_addressNumberCorrected = value;
126 }
129 return *this;
130 }
132
134
137 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
138 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
139 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
140 void SetPostalCodeDetails(PostalCodeDetailsT&& value) {
141 m_postalCodeDetailsHasBeenSet = true;
142 m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value);
143 }
144 template <typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
145 ReverseGeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) {
146 SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value));
147 return *this;
148 }
149 template <typename PostalCodeDetailsT = PostalCodeDetails>
150 ReverseGeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) {
151 m_postalCodeDetailsHasBeenSet = true;
152 m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value));
153 return *this;
154 }
156
158
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>>
171 SetPosition(std::forward<PositionT>(value));
172 return *this;
173 }
174 inline ReverseGeocodeResultItem& 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 ReverseGeocodeResultItem& 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>>
213 SetMapView(std::forward<MapViewT>(value));
214 return *this;
215 }
216 inline ReverseGeocodeResultItem& 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>>
236 SetCategories(std::forward<CategoriesT>(value));
237 return *this;
238 }
239 template <typename CategoriesT = Category>
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>>
260 SetFoodTypes(std::forward<FoodTypesT>(value));
261 return *this;
262 }
263 template <typename FoodTypesT = FoodType>
265 m_foodTypesHasBeenSet = true;
266 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
277 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
278 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
279 void SetAccessPoints(AccessPointsT&& value) {
280 m_accessPointsHasBeenSet = true;
281 m_accessPoints = std::forward<AccessPointsT>(value);
282 }
283 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
285 SetAccessPoints(std::forward<AccessPointsT>(value));
286 return *this;
287 }
288 template <typename AccessPointsT = AccessPoint>
290 m_accessPointsHasBeenSet = true;
291 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
292 return *this;
293 }
295
297
300 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
301 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
302 template <typename TimeZoneT = TimeZone>
303 void SetTimeZone(TimeZoneT&& value) {
304 m_timeZoneHasBeenSet = true;
305 m_timeZone = std::forward<TimeZoneT>(value);
306 }
307 template <typename TimeZoneT = TimeZone>
309 SetTimeZone(std::forward<TimeZoneT>(value));
310 return *this;
311 }
313
315
320 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
321 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
322 template <typename PoliticalViewT = Aws::String>
323 void SetPoliticalView(PoliticalViewT&& value) {
324 m_politicalViewHasBeenSet = true;
325 m_politicalView = std::forward<PoliticalViewT>(value);
326 }
327 template <typename PoliticalViewT = Aws::String>
329 SetPoliticalView(std::forward<PoliticalViewT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
339 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
340 template <typename IntersectionsT = Aws::Vector<Intersection>>
341 void SetIntersections(IntersectionsT&& value) {
342 m_intersectionsHasBeenSet = true;
343 m_intersections = std::forward<IntersectionsT>(value);
344 }
345 template <typename IntersectionsT = Aws::Vector<Intersection>>
347 SetIntersections(std::forward<IntersectionsT>(value));
348 return *this;
349 }
350 template <typename IntersectionsT = Intersection>
352 m_intersectionsHasBeenSet = true;
353 m_intersections.emplace_back(std::forward<IntersectionsT>(value));
354 return *this;
355 }
357 private:
358 Aws::String m_placeId;
359
360 PlaceType m_placeType{PlaceType::NOT_SET};
361
362 Aws::String m_title;
363
364 Address m_address;
365
366 bool m_addressNumberCorrected{false};
367
368 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
369
370 Aws::Vector<double> m_position;
371
372 long long m_distance{0};
373
374 Aws::Vector<double> m_mapView;
375
376 Aws::Vector<Category> m_categories;
377
378 Aws::Vector<FoodType> m_foodTypes;
379
380 Aws::Vector<AccessPoint> m_accessPoints;
381
382 TimeZone m_timeZone;
383
384 Aws::String m_politicalView;
385
386 Aws::Vector<Intersection> m_intersections;
387 bool m_placeIdHasBeenSet = false;
388 bool m_placeTypeHasBeenSet = false;
389 bool m_titleHasBeenSet = false;
390 bool m_addressHasBeenSet = false;
391 bool m_addressNumberCorrectedHasBeenSet = false;
392 bool m_postalCodeDetailsHasBeenSet = false;
393 bool m_positionHasBeenSet = false;
394 bool m_distanceHasBeenSet = false;
395 bool m_mapViewHasBeenSet = false;
396 bool m_categoriesHasBeenSet = false;
397 bool m_foodTypesHasBeenSet = false;
398 bool m_accessPointsHasBeenSet = false;
399 bool m_timeZoneHasBeenSet = false;
400 bool m_politicalViewHasBeenSet = false;
401 bool m_intersectionsHasBeenSet = false;
402};
403
404} // namespace Model
405} // namespace GeoPlaces
406} // 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