AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeocodeResultItem.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/MatchScoreDetails.h>
14#include <aws/geo-places/model/PostalCodeDetails.h>
15#include <aws/geo-places/model/Category.h>
16#include <aws/geo-places/model/FoodType.h>
17#include <aws/geo-places/model/AccessPoint.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
41 {
42 public:
43 AWS_GEOPLACES_API GeocodeResultItem();
44 AWS_GEOPLACES_API GeocodeResultItem(Aws::Utils::Json::JsonView jsonValue);
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 GeocodeResultItem& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
60 inline GeocodeResultItem& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
61 inline GeocodeResultItem& 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 GeocodeResultItem& WithPlaceType(const PlaceType& value) { SetPlaceType(value); return *this;}
74 inline GeocodeResultItem& 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 GeocodeResultItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
88 inline GeocodeResultItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
89 inline GeocodeResultItem& 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 GeocodeResultItem& WithAddress(const Address& value) { SetAddress(value); return *this;}
101 inline GeocodeResultItem& 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; }
111 inline GeocodeResultItem& WithAddressNumberCorrected(bool value) { SetAddressNumberCorrected(value); return *this;}
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 GeocodeResultItem& AddPostalCodeDetails(const PostalCodeDetails& value) { m_postalCodeDetailsHasBeenSet = true; m_postalCodeDetails.push_back(value); return *this; }
125 inline GeocodeResultItem& 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 GeocodeResultItem& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
137 inline GeocodeResultItem& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
138 inline GeocodeResultItem& 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 GeocodeResultItem& 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 GeocodeResultItem& WithMapView(const Aws::Vector<double>& value) { SetMapView(value); return *this;}
163 inline GeocodeResultItem& WithMapView(Aws::Vector<double>&& value) { SetMapView(std::move(value)); return *this;}
164 inline GeocodeResultItem& 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 GeocodeResultItem& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
176 inline GeocodeResultItem& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
177 inline GeocodeResultItem& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
178 inline GeocodeResultItem& 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 GeocodeResultItem& WithFoodTypes(const Aws::Vector<FoodType>& value) { SetFoodTypes(value); return *this;}
190 inline GeocodeResultItem& WithFoodTypes(Aws::Vector<FoodType>&& value) { SetFoodTypes(std::move(value)); return *this;}
191 inline GeocodeResultItem& AddFoodTypes(const FoodType& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(value); return *this; }
192 inline GeocodeResultItem& 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); }
203 inline GeocodeResultItem& WithAccessPoints(const Aws::Vector<AccessPoint>& value) { SetAccessPoints(value); return *this;}
204 inline GeocodeResultItem& WithAccessPoints(Aws::Vector<AccessPoint>&& value) { SetAccessPoints(std::move(value)); return *this;}
205 inline GeocodeResultItem& AddAccessPoints(const AccessPoint& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(value); return *this; }
206 inline GeocodeResultItem& 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 GeocodeResultItem& WithTimeZone(const TimeZone& value) { SetTimeZone(value); return *this;}
218 inline GeocodeResultItem& 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 GeocodeResultItem& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
233 inline GeocodeResultItem& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
234 inline GeocodeResultItem& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
236
238
242 inline const MatchScoreDetails& GetMatchScores() const{ return m_matchScores; }
243 inline bool MatchScoresHasBeenSet() const { return m_matchScoresHasBeenSet; }
244 inline void SetMatchScores(const MatchScoreDetails& value) { m_matchScoresHasBeenSet = true; m_matchScores = value; }
245 inline void SetMatchScores(MatchScoreDetails&& value) { m_matchScoresHasBeenSet = true; m_matchScores = std::move(value); }
246 inline GeocodeResultItem& WithMatchScores(const MatchScoreDetails& value) { SetMatchScores(value); return *this;}
247 inline GeocodeResultItem& WithMatchScores(MatchScoreDetails&& value) { SetMatchScores(std::move(value)); return *this;}
249 private:
250
251 Aws::String m_placeId;
252 bool m_placeIdHasBeenSet = false;
253
254 PlaceType m_placeType;
255 bool m_placeTypeHasBeenSet = false;
256
257 Aws::String m_title;
258 bool m_titleHasBeenSet = false;
259
260 Address m_address;
261 bool m_addressHasBeenSet = false;
262
263 bool m_addressNumberCorrected;
264 bool m_addressNumberCorrectedHasBeenSet = false;
265
266 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
267 bool m_postalCodeDetailsHasBeenSet = false;
268
269 Aws::Vector<double> m_position;
270 bool m_positionHasBeenSet = false;
271
272 long long m_distance;
273 bool m_distanceHasBeenSet = false;
274
275 Aws::Vector<double> m_mapView;
276 bool m_mapViewHasBeenSet = false;
277
278 Aws::Vector<Category> m_categories;
279 bool m_categoriesHasBeenSet = false;
280
281 Aws::Vector<FoodType> m_foodTypes;
282 bool m_foodTypesHasBeenSet = false;
283
284 Aws::Vector<AccessPoint> m_accessPoints;
285 bool m_accessPointsHasBeenSet = false;
286
287 TimeZone m_timeZone;
288 bool m_timeZoneHasBeenSet = false;
289
290 Aws::String m_politicalView;
291 bool m_politicalViewHasBeenSet = false;
292
293 MatchScoreDetails m_matchScores;
294 bool m_matchScoresHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace GeoPlaces
299} // namespace Aws
const Aws::Vector< PostalCodeDetails > & GetPostalCodeDetails() const
GeocodeResultItem & WithPosition(const Aws::Vector< double > &value)
const Aws::Vector< double > & GetPosition() const
GeocodeResultItem & WithAddress(const Address &value)
GeocodeResultItem & WithAddressNumberCorrected(bool value)
void SetTitle(const Aws::String &value)
GeocodeResultItem & WithTimeZone(const TimeZone &value)
GeocodeResultItem & WithCategories(const Aws::Vector< Category > &value)
GeocodeResultItem & WithPosition(Aws::Vector< double > &&value)
GeocodeResultItem & AddAccessPoints(const AccessPoint &value)
GeocodeResultItem & WithPostalCodeDetails(Aws::Vector< PostalCodeDetails > &&value)
GeocodeResultItem & WithTitle(Aws::String &&value)
GeocodeResultItem & WithAddress(Address &&value)
void SetMatchScores(const MatchScoreDetails &value)
AWS_GEOPLACES_API GeocodeResultItem(Aws::Utils::Json::JsonView jsonValue)
void SetPostalCodeDetails(Aws::Vector< PostalCodeDetails > &&value)
AWS_GEOPLACES_API GeocodeResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPlaceType(const PlaceType &value)
GeocodeResultItem & WithPlaceType(PlaceType &&value)
const Aws::Vector< Category > & GetCategories() const
GeocodeResultItem & WithCategories(Aws::Vector< Category > &&value)
void SetMatchScores(MatchScoreDetails &&value)
void SetMapView(Aws::Vector< double > &&value)
GeocodeResultItem & WithTimeZone(TimeZone &&value)
const MatchScoreDetails & GetMatchScores() const
GeocodeResultItem & AddCategories(Category &&value)
GeocodeResultItem & AddPostalCodeDetails(PostalCodeDetails &&value)
GeocodeResultItem & WithPlaceId(const char *value)
GeocodeResultItem & WithTitle(const Aws::String &value)
void SetAccessPoints(const Aws::Vector< AccessPoint > &value)
GeocodeResultItem & AddPostalCodeDetails(const PostalCodeDetails &value)
void SetPostalCodeDetails(const Aws::Vector< PostalCodeDetails > &value)
GeocodeResultItem & WithPoliticalView(const char *value)
GeocodeResultItem & WithPostalCodeDetails(const Aws::Vector< PostalCodeDetails > &value)
GeocodeResultItem & WithMapView(Aws::Vector< double > &&value)
GeocodeResultItem & AddFoodTypes(const FoodType &value)
void SetPoliticalView(const Aws::String &value)
const Aws::String & GetPoliticalView() const
GeocodeResultItem & WithFoodTypes(const Aws::Vector< FoodType > &value)
GeocodeResultItem & WithPlaceId(Aws::String &&value)
GeocodeResultItem & AddPosition(double value)
GeocodeResultItem & WithPoliticalView(const Aws::String &value)
GeocodeResultItem & AddMapView(double value)
void SetAccessPoints(Aws::Vector< AccessPoint > &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPlaceId(const Aws::String &value)
GeocodeResultItem & WithPoliticalView(Aws::String &&value)
GeocodeResultItem & WithPlaceType(const PlaceType &value)
const Aws::Vector< FoodType > & GetFoodTypes() const
GeocodeResultItem & WithMapView(const Aws::Vector< double > &value)
void SetMapView(const Aws::Vector< double > &value)
GeocodeResultItem & WithAccessPoints(const Aws::Vector< AccessPoint > &value)
void SetPosition(Aws::Vector< double > &&value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
void SetFoodTypes(const Aws::Vector< FoodType > &value)
void SetPosition(const Aws::Vector< double > &value)
GeocodeResultItem & WithMatchScores(MatchScoreDetails &&value)
GeocodeResultItem & AddCategories(const Category &value)
GeocodeResultItem & WithMatchScores(const MatchScoreDetails &value)
GeocodeResultItem & WithFoodTypes(Aws::Vector< FoodType > &&value)
GeocodeResultItem & WithPlaceId(const Aws::String &value)
void SetFoodTypes(Aws::Vector< FoodType > &&value)
GeocodeResultItem & WithAccessPoints(Aws::Vector< AccessPoint > &&value)
GeocodeResultItem & WithTitle(const char *value)
GeocodeResultItem & AddAccessPoints(AccessPoint &&value)
GeocodeResultItem & AddFoodTypes(FoodType &&value)
GeocodeResultItem & WithDistance(long long value)
void SetCategories(const Aws::Vector< Category > &value)
const Aws::Vector< double > & GetMapView() const
void SetCategories(Aws::Vector< Category > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue