AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ReverseGeocodeResultItem.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-places/model/PlaceType.h>
10#include <aws/geo-places/model/Address.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/geo-places/model/TimeZone.h>
13#include <aws/geo-places/model/PostalCodeDetails.h>
14#include <aws/geo-places/model/Category.h>
15#include <aws/geo-places/model/FoodType.h>
16#include <aws/geo-places/model/AccessPoint.h>
17#include <aws/geo-places/model/Intersection.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace GeoPlaces
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_GEOPLACES_API ReverseGeocodeResultItem() = default;
47 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetPlaceId() const { return m_placeId; }
56 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
57 template<typename PlaceIdT = Aws::String>
58 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
59 template<typename PlaceIdT = Aws::String>
60 ReverseGeocodeResultItem& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
62
64
68 inline PlaceType GetPlaceType() const { return m_placeType; }
69 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
70 inline void SetPlaceType(PlaceType value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
71 inline ReverseGeocodeResultItem& WithPlaceType(PlaceType value) { SetPlaceType(value); return *this;}
73
75
79 inline const Aws::String& GetTitle() const { return m_title; }
80 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
81 template<typename TitleT = Aws::String>
82 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
83 template<typename TitleT = Aws::String>
84 ReverseGeocodeResultItem& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
86
88
91 inline const Address& GetAddress() const { return m_address; }
92 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
93 template<typename AddressT = Address>
94 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
95 template<typename AddressT = Address>
96 ReverseGeocodeResultItem& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
98
100
103 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
104 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
105 inline void SetAddressNumberCorrected(bool value) { m_addressNumberCorrectedHasBeenSet = true; m_addressNumberCorrected = value; }
108
110
113 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const { return m_postalCodeDetails; }
114 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
115 template<typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
116 void SetPostalCodeDetails(PostalCodeDetailsT&& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails = std::forward<PostalCodeDetailsT>(value); }
117 template<typename PostalCodeDetailsT = Aws::Vector<PostalCodeDetails>>
118 ReverseGeocodeResultItem& WithPostalCodeDetails(PostalCodeDetailsT&& value) { SetPostalCodeDetails(std::forward<PostalCodeDetailsT>(value)); return *this;}
119 template<typename PostalCodeDetailsT = PostalCodeDetails>
120 ReverseGeocodeResultItem& AddPostalCodeDetails(PostalCodeDetailsT&& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails.emplace_back(std::forward<PostalCodeDetailsT>(value)); return *this; }
122
124
127 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
128 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
129 template<typename PositionT = Aws::Vector<double>>
130 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
131 template<typename PositionT = Aws::Vector<double>>
132 ReverseGeocodeResultItem& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
133 inline ReverseGeocodeResultItem& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
135
137
140 inline long long GetDistance() const { return m_distance; }
141 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
142 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
143 inline ReverseGeocodeResultItem& WithDistance(long long value) { SetDistance(value); return *this;}
145
147
153 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
154 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
155 template<typename MapViewT = Aws::Vector<double>>
156 void SetMapView(MapViewT&& value) { m_mapViewHasBeenSet = true; m_mapView = std::forward<MapViewT>(value); }
157 template<typename MapViewT = Aws::Vector<double>>
158 ReverseGeocodeResultItem& WithMapView(MapViewT&& value) { SetMapView(std::forward<MapViewT>(value)); return *this;}
159 inline ReverseGeocodeResultItem& AddMapView(double value) { m_mapViewHasBeenSet = true; m_mapView.push_back(value); return *this; }
161
163
166 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
167 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
168 template<typename CategoriesT = Aws::Vector<Category>>
169 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
170 template<typename CategoriesT = Aws::Vector<Category>>
171 ReverseGeocodeResultItem& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
172 template<typename CategoriesT = Category>
173 ReverseGeocodeResultItem& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
175
177
180 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
181 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
182 template<typename FoodTypesT = Aws::Vector<FoodType>>
183 void SetFoodTypes(FoodTypesT&& value) { m_foodTypesHasBeenSet = true; m_foodTypes = std::forward<FoodTypesT>(value); }
184 template<typename FoodTypesT = Aws::Vector<FoodType>>
185 ReverseGeocodeResultItem& WithFoodTypes(FoodTypesT&& value) { SetFoodTypes(std::forward<FoodTypesT>(value)); return *this;}
186 template<typename FoodTypesT = FoodType>
187 ReverseGeocodeResultItem& AddFoodTypes(FoodTypesT&& value) { m_foodTypesHasBeenSet = true; m_foodTypes.emplace_back(std::forward<FoodTypesT>(value)); return *this; }
189
191
194 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
195 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
196 template<typename AccessPointsT = Aws::Vector<AccessPoint>>
197 void SetAccessPoints(AccessPointsT&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::forward<AccessPointsT>(value); }
198 template<typename AccessPointsT = Aws::Vector<AccessPoint>>
199 ReverseGeocodeResultItem& WithAccessPoints(AccessPointsT&& value) { SetAccessPoints(std::forward<AccessPointsT>(value)); return *this;}
200 template<typename AccessPointsT = AccessPoint>
201 ReverseGeocodeResultItem& AddAccessPoints(AccessPointsT&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace_back(std::forward<AccessPointsT>(value)); return *this; }
203
205
208 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
209 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
210 template<typename TimeZoneT = TimeZone>
211 void SetTimeZone(TimeZoneT&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::forward<TimeZoneT>(value); }
212 template<typename TimeZoneT = TimeZone>
213 ReverseGeocodeResultItem& WithTimeZone(TimeZoneT&& value) { SetTimeZone(std::forward<TimeZoneT>(value)); return *this;}
215
217
222 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
223 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
224 template<typename PoliticalViewT = Aws::String>
225 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
226 template<typename PoliticalViewT = Aws::String>
227 ReverseGeocodeResultItem& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
229
231
234 inline const Aws::Vector<Intersection>& GetIntersections() const { return m_intersections; }
235 inline bool IntersectionsHasBeenSet() const { return m_intersectionsHasBeenSet; }
236 template<typename IntersectionsT = Aws::Vector<Intersection>>
237 void SetIntersections(IntersectionsT&& value) { m_intersectionsHasBeenSet = true; m_intersections = std::forward<IntersectionsT>(value); }
238 template<typename IntersectionsT = Aws::Vector<Intersection>>
239 ReverseGeocodeResultItem& WithIntersections(IntersectionsT&& value) { SetIntersections(std::forward<IntersectionsT>(value)); return *this;}
240 template<typename IntersectionsT = Intersection>
241 ReverseGeocodeResultItem& AddIntersections(IntersectionsT&& value) { m_intersectionsHasBeenSet = true; m_intersections.emplace_back(std::forward<IntersectionsT>(value)); return *this; }
243 private:
244
245 Aws::String m_placeId;
246 bool m_placeIdHasBeenSet = false;
247
248 PlaceType m_placeType{PlaceType::NOT_SET};
249 bool m_placeTypeHasBeenSet = false;
250
251 Aws::String m_title;
252 bool m_titleHasBeenSet = false;
253
254 Address m_address;
255 bool m_addressHasBeenSet = false;
256
257 bool m_addressNumberCorrected{false};
258 bool m_addressNumberCorrectedHasBeenSet = false;
259
260 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
261 bool m_postalCodeDetailsHasBeenSet = false;
262
263 Aws::Vector<double> m_position;
264 bool m_positionHasBeenSet = false;
265
266 long long m_distance{0};
267 bool m_distanceHasBeenSet = false;
268
269 Aws::Vector<double> m_mapView;
270 bool m_mapViewHasBeenSet = false;
271
272 Aws::Vector<Category> m_categories;
273 bool m_categoriesHasBeenSet = false;
274
275 Aws::Vector<FoodType> m_foodTypes;
276 bool m_foodTypesHasBeenSet = false;
277
278 Aws::Vector<AccessPoint> m_accessPoints;
279 bool m_accessPointsHasBeenSet = false;
280
281 TimeZone m_timeZone;
282 bool m_timeZoneHasBeenSet = false;
283
284 Aws::String m_politicalView;
285 bool m_politicalViewHasBeenSet = false;
286
287 Aws::Vector<Intersection> m_intersections;
288 bool m_intersectionsHasBeenSet = false;
289 };
290
291} // namespace Model
292} // namespace GeoPlaces
293} // 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