AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace GeoPlaces
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_GEOPLACES_API ReverseGeocodeResultItem();
46 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::String& GetPlaceId() const{ return m_placeId; }
55 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
56 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
57 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
58 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
59 inline ReverseGeocodeResultItem& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
60 inline ReverseGeocodeResultItem& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
61 inline ReverseGeocodeResultItem& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
63
65
69 inline const PlaceType& GetPlaceType() const{ return m_placeType; }
70 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
71 inline void SetPlaceType(const PlaceType& value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
72 inline void SetPlaceType(PlaceType&& value) { m_placeTypeHasBeenSet = true; m_placeType = std::move(value); }
73 inline ReverseGeocodeResultItem& WithPlaceType(const PlaceType& value) { SetPlaceType(value); return *this;}
74 inline ReverseGeocodeResultItem& WithPlaceType(PlaceType&& value) { SetPlaceType(std::move(value)); return *this;}
76
78
82 inline const Aws::String& GetTitle() const{ return m_title; }
83 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
84 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
85 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
86 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
87 inline ReverseGeocodeResultItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
88 inline ReverseGeocodeResultItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
89 inline ReverseGeocodeResultItem& WithTitle(const char* value) { SetTitle(value); return *this;}
91
93
96 inline const Address& GetAddress() const{ return m_address; }
97 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
98 inline void SetAddress(const Address& value) { m_addressHasBeenSet = true; m_address = value; }
99 inline void SetAddress(Address&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
100 inline ReverseGeocodeResultItem& WithAddress(const Address& value) { SetAddress(value); return *this;}
101 inline ReverseGeocodeResultItem& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;}
103
105
108 inline bool GetAddressNumberCorrected() const{ return m_addressNumberCorrected; }
109 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
110 inline void SetAddressNumberCorrected(bool value) { m_addressNumberCorrectedHasBeenSet = true; m_addressNumberCorrected = value; }
113
115
118 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const{ return m_postalCodeDetails; }
119 inline bool PostalCodeDetailsHasBeenSet() const { return m_postalCodeDetailsHasBeenSet; }
120 inline void SetPostalCodeDetails(const Aws::Vector<PostalCodeDetails>& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails = value; }
121 inline void SetPostalCodeDetails(Aws::Vector<PostalCodeDetails>&& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails = std::move(value); }
124 inline ReverseGeocodeResultItem& AddPostalCodeDetails(const PostalCodeDetails& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails.push_back(value); return *this; }
125 inline ReverseGeocodeResultItem& AddPostalCodeDetails(PostalCodeDetails&& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails.push_back(std::move(value)); return *this; }
127
129
132 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
133 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
134 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
135 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
136 inline ReverseGeocodeResultItem& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
137 inline ReverseGeocodeResultItem& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
138 inline ReverseGeocodeResultItem& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
140
142
145 inline long long GetDistance() const{ return m_distance; }
146 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
147 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
148 inline ReverseGeocodeResultItem& WithDistance(long long value) { SetDistance(value); return *this;}
150
152
158 inline const Aws::Vector<double>& GetMapView() const{ return m_mapView; }
159 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
160 inline void SetMapView(const Aws::Vector<double>& value) { m_mapViewHasBeenSet = true; m_mapView = value; }
161 inline void SetMapView(Aws::Vector<double>&& value) { m_mapViewHasBeenSet = true; m_mapView = std::move(value); }
162 inline ReverseGeocodeResultItem& WithMapView(const Aws::Vector<double>& value) { SetMapView(value); return *this;}
163 inline ReverseGeocodeResultItem& WithMapView(Aws::Vector<double>&& value) { SetMapView(std::move(value)); return *this;}
164 inline ReverseGeocodeResultItem& AddMapView(double value) { m_mapViewHasBeenSet = true; m_mapView.push_back(value); return *this; }
166
168
171 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
172 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
173 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
174 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
175 inline ReverseGeocodeResultItem& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
176 inline ReverseGeocodeResultItem& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
177 inline ReverseGeocodeResultItem& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
178 inline ReverseGeocodeResultItem& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
180
182
185 inline const Aws::Vector<FoodType>& GetFoodTypes() const{ return m_foodTypes; }
186 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
187 inline void SetFoodTypes(const Aws::Vector<FoodType>& value) { m_foodTypesHasBeenSet = true; m_foodTypes = value; }
188 inline void SetFoodTypes(Aws::Vector<FoodType>&& value) { m_foodTypesHasBeenSet = true; m_foodTypes = std::move(value); }
189 inline ReverseGeocodeResultItem& WithFoodTypes(const Aws::Vector<FoodType>& value) { SetFoodTypes(value); return *this;}
190 inline ReverseGeocodeResultItem& WithFoodTypes(Aws::Vector<FoodType>&& value) { SetFoodTypes(std::move(value)); return *this;}
191 inline ReverseGeocodeResultItem& AddFoodTypes(const FoodType& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(value); return *this; }
192 inline ReverseGeocodeResultItem& AddFoodTypes(FoodType&& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(std::move(value)); return *this; }
194
196
199 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const{ return m_accessPoints; }
200 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
201 inline void SetAccessPoints(const Aws::Vector<AccessPoint>& value) { m_accessPointsHasBeenSet = true; m_accessPoints = value; }
202 inline void SetAccessPoints(Aws::Vector<AccessPoint>&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::move(value); }
204 inline ReverseGeocodeResultItem& WithAccessPoints(Aws::Vector<AccessPoint>&& value) { SetAccessPoints(std::move(value)); return *this;}
205 inline ReverseGeocodeResultItem& AddAccessPoints(const AccessPoint& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(value); return *this; }
206 inline ReverseGeocodeResultItem& AddAccessPoints(AccessPoint&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(std::move(value)); return *this; }
208
210
213 inline const TimeZone& GetTimeZone() const{ return m_timeZone; }
214 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
215 inline void SetTimeZone(const TimeZone& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
216 inline void SetTimeZone(TimeZone&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
217 inline ReverseGeocodeResultItem& WithTimeZone(const TimeZone& value) { SetTimeZone(value); return *this;}
218 inline ReverseGeocodeResultItem& WithTimeZone(TimeZone&& value) { SetTimeZone(std::move(value)); return *this;}
220
222
227 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
228 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
229 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
230 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
231 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
232 inline ReverseGeocodeResultItem& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
233 inline ReverseGeocodeResultItem& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
234 inline ReverseGeocodeResultItem& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
236 private:
237
238 Aws::String m_placeId;
239 bool m_placeIdHasBeenSet = false;
240
241 PlaceType m_placeType;
242 bool m_placeTypeHasBeenSet = false;
243
244 Aws::String m_title;
245 bool m_titleHasBeenSet = false;
246
247 Address m_address;
248 bool m_addressHasBeenSet = false;
249
250 bool m_addressNumberCorrected;
251 bool m_addressNumberCorrectedHasBeenSet = false;
252
253 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
254 bool m_postalCodeDetailsHasBeenSet = false;
255
256 Aws::Vector<double> m_position;
257 bool m_positionHasBeenSet = false;
258
259 long long m_distance;
260 bool m_distanceHasBeenSet = false;
261
262 Aws::Vector<double> m_mapView;
263 bool m_mapViewHasBeenSet = false;
264
265 Aws::Vector<Category> m_categories;
266 bool m_categoriesHasBeenSet = false;
267
268 Aws::Vector<FoodType> m_foodTypes;
269 bool m_foodTypesHasBeenSet = false;
270
271 Aws::Vector<AccessPoint> m_accessPoints;
272 bool m_accessPointsHasBeenSet = false;
273
274 TimeZone m_timeZone;
275 bool m_timeZoneHasBeenSet = false;
276
277 Aws::String m_politicalView;
278 bool m_politicalViewHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace GeoPlaces
283} // namespace Aws
ReverseGeocodeResultItem & WithAddressNumberCorrected(bool value)
ReverseGeocodeResultItem & WithFoodTypes(const Aws::Vector< FoodType > &value)
const Aws::Vector< PostalCodeDetails > & GetPostalCodeDetails() const
ReverseGeocodeResultItem & WithPostalCodeDetails(const Aws::Vector< PostalCodeDetails > &value)
ReverseGeocodeResultItem & WithPlaceId(Aws::String &&value)
void SetMapView(const Aws::Vector< double > &value)
ReverseGeocodeResultItem & WithMapView(const Aws::Vector< double > &value)
ReverseGeocodeResultItem & WithAddress(Address &&value)
AWS_GEOPLACES_API ReverseGeocodeResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ReverseGeocodeResultItem & WithPlaceId(const Aws::String &value)
ReverseGeocodeResultItem & WithCategories(Aws::Vector< Category > &&value)
ReverseGeocodeResultItem & WithFoodTypes(Aws::Vector< FoodType > &&value)
ReverseGeocodeResultItem & AddCategories(const Category &value)
ReverseGeocodeResultItem & AddPosition(double value)
ReverseGeocodeResultItem & AddMapView(double value)
ReverseGeocodeResultItem & WithTitle(const Aws::String &value)
void SetPosition(const Aws::Vector< double > &value)
ReverseGeocodeResultItem & WithAddress(const Address &value)
ReverseGeocodeResultItem & WithPosition(const Aws::Vector< double > &value)
void SetFoodTypes(Aws::Vector< FoodType > &&value)
ReverseGeocodeResultItem & WithCategories(const Aws::Vector< Category > &value)
ReverseGeocodeResultItem & WithPoliticalView(const Aws::String &value)
ReverseGeocodeResultItem & WithDistance(long long value)
ReverseGeocodeResultItem & WithPoliticalView(Aws::String &&value)
ReverseGeocodeResultItem & AddCategories(Category &&value)
ReverseGeocodeResultItem & AddPostalCodeDetails(PostalCodeDetails &&value)
ReverseGeocodeResultItem & WithPoliticalView(const char *value)
ReverseGeocodeResultItem & WithAccessPoints(const Aws::Vector< AccessPoint > &value)
AWS_GEOPLACES_API ReverseGeocodeResultItem(Aws::Utils::Json::JsonView jsonValue)
ReverseGeocodeResultItem & WithTitle(Aws::String &&value)
ReverseGeocodeResultItem & WithPosition(Aws::Vector< double > &&value)
ReverseGeocodeResultItem & WithPlaceType(const PlaceType &value)
ReverseGeocodeResultItem & WithPlaceType(PlaceType &&value)
ReverseGeocodeResultItem & AddAccessPoints(const AccessPoint &value)
const Aws::Vector< FoodType > & GetFoodTypes() const
void SetFoodTypes(const Aws::Vector< FoodType > &value)
const Aws::Vector< double > & GetPosition() const
void SetPostalCodeDetails(const Aws::Vector< PostalCodeDetails > &value)
ReverseGeocodeResultItem & WithAccessPoints(Aws::Vector< AccessPoint > &&value)
void SetAccessPoints(Aws::Vector< AccessPoint > &&value)
ReverseGeocodeResultItem & AddFoodTypes(FoodType &&value)
ReverseGeocodeResultItem & WithPlaceId(const char *value)
ReverseGeocodeResultItem & AddAccessPoints(AccessPoint &&value)
ReverseGeocodeResultItem & AddFoodTypes(const FoodType &value)
ReverseGeocodeResultItem & WithTimeZone(const TimeZone &value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
ReverseGeocodeResultItem & AddPostalCodeDetails(const PostalCodeDetails &value)
void SetCategories(Aws::Vector< Category > &&value)
ReverseGeocodeResultItem & WithPostalCodeDetails(Aws::Vector< PostalCodeDetails > &&value)
ReverseGeocodeResultItem & WithTimeZone(TimeZone &&value)
ReverseGeocodeResultItem & WithTitle(const char *value)
ReverseGeocodeResultItem & WithMapView(Aws::Vector< double > &&value)
void SetAccessPoints(const Aws::Vector< AccessPoint > &value)
void SetCategories(const Aws::Vector< Category > &value)
void SetPostalCodeDetails(Aws::Vector< PostalCodeDetails > &&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