AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
SearchTextResultItem.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/AccessRestriction.h>
12#include <aws/geo-places/model/Address.h>
13#include <aws/geo-places/model/BusinessChain.h>
14#include <aws/geo-places/model/Category.h>
15#include <aws/geo-places/model/Contacts.h>
16#include <aws/geo-places/model/FoodType.h>
17#include <aws/geo-places/model/OpeningHours.h>
18#include <aws/geo-places/model/PhonemeDetails.h>
19#include <aws/geo-places/model/PlaceType.h>
20#include <aws/geo-places/model/TimeZone.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace GeoPlaces {
32namespace Model {
33
40 public:
41 AWS_GEOPLACES_API SearchTextResultItem() = default;
44 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const Aws::String& GetPlaceId() const { return m_placeId; }
52 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
53 template <typename PlaceIdT = Aws::String>
54 void SetPlaceId(PlaceIdT&& value) {
55 m_placeIdHasBeenSet = true;
56 m_placeId = std::forward<PlaceIdT>(value);
57 }
58 template <typename PlaceIdT = Aws::String>
59 SearchTextResultItem& WithPlaceId(PlaceIdT&& value) {
60 SetPlaceId(std::forward<PlaceIdT>(value));
61 return *this;
62 }
64
66
70 inline PlaceType GetPlaceType() const { return m_placeType; }
71 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
72 inline void SetPlaceType(PlaceType value) {
73 m_placeTypeHasBeenSet = true;
74 m_placeType = value;
75 }
77 SetPlaceType(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetTitle() const { return m_title; }
87 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
88 template <typename TitleT = Aws::String>
89 void SetTitle(TitleT&& value) {
90 m_titleHasBeenSet = true;
91 m_title = std::forward<TitleT>(value);
92 }
93 template <typename TitleT = Aws::String>
95 SetTitle(std::forward<TitleT>(value));
96 return *this;
97 }
99
101
104 inline const Address& GetAddress() const { return m_address; }
105 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
106 template <typename AddressT = Address>
107 void SetAddress(AddressT&& value) {
108 m_addressHasBeenSet = true;
109 m_address = std::forward<AddressT>(value);
110 }
111 template <typename AddressT = Address>
113 SetAddress(std::forward<AddressT>(value));
114 return *this;
115 }
117
119
122 inline bool GetAddressNumberCorrected() const { return m_addressNumberCorrected; }
123 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
124 inline void SetAddressNumberCorrected(bool value) {
125 m_addressNumberCorrectedHasBeenSet = true;
126 m_addressNumberCorrected = value;
127 }
130 return *this;
131 }
133
135
139 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
140 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
141 template <typename PositionT = Aws::Vector<double>>
142 void SetPosition(PositionT&& value) {
143 m_positionHasBeenSet = true;
144 m_position = std::forward<PositionT>(value);
145 }
146 template <typename PositionT = Aws::Vector<double>>
147 SearchTextResultItem& WithPosition(PositionT&& value) {
148 SetPosition(std::forward<PositionT>(value));
149 return *this;
150 }
151 inline SearchTextResultItem& AddPosition(double value) {
152 m_positionHasBeenSet = true;
153 m_position.push_back(value);
154 return *this;
155 }
157
159
162 inline long long GetDistance() const { return m_distance; }
163 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
164 inline void SetDistance(long long value) {
165 m_distanceHasBeenSet = true;
166 m_distance = value;
167 }
168 inline SearchTextResultItem& WithDistance(long long value) {
169 SetDistance(value);
170 return *this;
171 }
173
175
181 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
182 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
183 template <typename MapViewT = Aws::Vector<double>>
184 void SetMapView(MapViewT&& value) {
185 m_mapViewHasBeenSet = true;
186 m_mapView = std::forward<MapViewT>(value);
187 }
188 template <typename MapViewT = Aws::Vector<double>>
190 SetMapView(std::forward<MapViewT>(value));
191 return *this;
192 }
193 inline SearchTextResultItem& AddMapView(double value) {
194 m_mapViewHasBeenSet = true;
195 m_mapView.push_back(value);
196 return *this;
197 }
199
201
204 inline const Aws::Vector<Category>& GetCategories() const { return m_categories; }
205 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
206 template <typename CategoriesT = Aws::Vector<Category>>
207 void SetCategories(CategoriesT&& value) {
208 m_categoriesHasBeenSet = true;
209 m_categories = std::forward<CategoriesT>(value);
210 }
211 template <typename CategoriesT = Aws::Vector<Category>>
212 SearchTextResultItem& WithCategories(CategoriesT&& value) {
213 SetCategories(std::forward<CategoriesT>(value));
214 return *this;
215 }
216 template <typename CategoriesT = Category>
217 SearchTextResultItem& AddCategories(CategoriesT&& value) {
218 m_categoriesHasBeenSet = true;
219 m_categories.emplace_back(std::forward<CategoriesT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Vector<FoodType>& GetFoodTypes() const { return m_foodTypes; }
229 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
230 template <typename FoodTypesT = Aws::Vector<FoodType>>
231 void SetFoodTypes(FoodTypesT&& value) {
232 m_foodTypesHasBeenSet = true;
233 m_foodTypes = std::forward<FoodTypesT>(value);
234 }
235 template <typename FoodTypesT = Aws::Vector<FoodType>>
236 SearchTextResultItem& WithFoodTypes(FoodTypesT&& value) {
237 SetFoodTypes(std::forward<FoodTypesT>(value));
238 return *this;
239 }
240 template <typename FoodTypesT = FoodType>
241 SearchTextResultItem& AddFoodTypes(FoodTypesT&& value) {
242 m_foodTypesHasBeenSet = true;
243 m_foodTypes.emplace_back(std::forward<FoodTypesT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::Vector<BusinessChain>& GetBusinessChains() const { return m_businessChains; }
253 inline bool BusinessChainsHasBeenSet() const { return m_businessChainsHasBeenSet; }
254 template <typename BusinessChainsT = Aws::Vector<BusinessChain>>
255 void SetBusinessChains(BusinessChainsT&& value) {
256 m_businessChainsHasBeenSet = true;
257 m_businessChains = std::forward<BusinessChainsT>(value);
258 }
259 template <typename BusinessChainsT = Aws::Vector<BusinessChain>>
260 SearchTextResultItem& WithBusinessChains(BusinessChainsT&& value) {
261 SetBusinessChains(std::forward<BusinessChainsT>(value));
262 return *this;
263 }
264 template <typename BusinessChainsT = BusinessChain>
265 SearchTextResultItem& AddBusinessChains(BusinessChainsT&& value) {
266 m_businessChainsHasBeenSet = true;
267 m_businessChains.emplace_back(std::forward<BusinessChainsT>(value));
268 return *this;
269 }
271
273
276 inline const Contacts& GetContacts() const { return m_contacts; }
277 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
278 template <typename ContactsT = Contacts>
279 void SetContacts(ContactsT&& value) {
280 m_contactsHasBeenSet = true;
281 m_contacts = std::forward<ContactsT>(value);
282 }
283 template <typename ContactsT = Contacts>
284 SearchTextResultItem& WithContacts(ContactsT&& value) {
285 SetContacts(std::forward<ContactsT>(value));
286 return *this;
287 }
289
291
294 inline const Aws::Vector<OpeningHours>& GetOpeningHours() const { return m_openingHours; }
295 inline bool OpeningHoursHasBeenSet() const { return m_openingHoursHasBeenSet; }
296 template <typename OpeningHoursT = Aws::Vector<OpeningHours>>
297 void SetOpeningHours(OpeningHoursT&& value) {
298 m_openingHoursHasBeenSet = true;
299 m_openingHours = std::forward<OpeningHoursT>(value);
300 }
301 template <typename OpeningHoursT = Aws::Vector<OpeningHours>>
302 SearchTextResultItem& WithOpeningHours(OpeningHoursT&& value) {
303 SetOpeningHours(std::forward<OpeningHoursT>(value));
304 return *this;
305 }
306 template <typename OpeningHoursT = OpeningHours>
307 SearchTextResultItem& AddOpeningHours(OpeningHoursT&& value) {
308 m_openingHoursHasBeenSet = true;
309 m_openingHours.emplace_back(std::forward<OpeningHoursT>(value));
310 return *this;
311 }
313
315
319 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
320 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
321 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
322 void SetAccessPoints(AccessPointsT&& value) {
323 m_accessPointsHasBeenSet = true;
324 m_accessPoints = std::forward<AccessPointsT>(value);
325 }
326 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
327 SearchTextResultItem& WithAccessPoints(AccessPointsT&& value) {
328 SetAccessPoints(std::forward<AccessPointsT>(value));
329 return *this;
330 }
331 template <typename AccessPointsT = AccessPoint>
332 SearchTextResultItem& AddAccessPoints(AccessPointsT&& value) {
333 m_accessPointsHasBeenSet = true;
334 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
335 return *this;
336 }
338
340
345 inline const Aws::Vector<AccessRestriction>& GetAccessRestrictions() const { return m_accessRestrictions; }
346 inline bool AccessRestrictionsHasBeenSet() const { return m_accessRestrictionsHasBeenSet; }
347 template <typename AccessRestrictionsT = Aws::Vector<AccessRestriction>>
348 void SetAccessRestrictions(AccessRestrictionsT&& value) {
349 m_accessRestrictionsHasBeenSet = true;
350 m_accessRestrictions = std::forward<AccessRestrictionsT>(value);
351 }
352 template <typename AccessRestrictionsT = Aws::Vector<AccessRestriction>>
353 SearchTextResultItem& WithAccessRestrictions(AccessRestrictionsT&& value) {
354 SetAccessRestrictions(std::forward<AccessRestrictionsT>(value));
355 return *this;
356 }
357 template <typename AccessRestrictionsT = AccessRestriction>
358 SearchTextResultItem& AddAccessRestrictions(AccessRestrictionsT&& value) {
359 m_accessRestrictionsHasBeenSet = true;
360 m_accessRestrictions.emplace_back(std::forward<AccessRestrictionsT>(value));
361 return *this;
362 }
364
366
369 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
370 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
371 template <typename TimeZoneT = TimeZone>
372 void SetTimeZone(TimeZoneT&& value) {
373 m_timeZoneHasBeenSet = true;
374 m_timeZone = std::forward<TimeZoneT>(value);
375 }
376 template <typename TimeZoneT = TimeZone>
377 SearchTextResultItem& WithTimeZone(TimeZoneT&& value) {
378 SetTimeZone(std::forward<TimeZoneT>(value));
379 return *this;
380 }
382
384
389 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
390 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
391 template <typename PoliticalViewT = Aws::String>
392 void SetPoliticalView(PoliticalViewT&& value) {
393 m_politicalViewHasBeenSet = true;
394 m_politicalView = std::forward<PoliticalViewT>(value);
395 }
396 template <typename PoliticalViewT = Aws::String>
397 SearchTextResultItem& WithPoliticalView(PoliticalViewT&& value) {
398 SetPoliticalView(std::forward<PoliticalViewT>(value));
399 return *this;
400 }
402
404
408 inline const PhonemeDetails& GetPhonemes() const { return m_phonemes; }
409 inline bool PhonemesHasBeenSet() const { return m_phonemesHasBeenSet; }
410 template <typename PhonemesT = PhonemeDetails>
411 void SetPhonemes(PhonemesT&& value) {
412 m_phonemesHasBeenSet = true;
413 m_phonemes = std::forward<PhonemesT>(value);
414 }
415 template <typename PhonemesT = PhonemeDetails>
416 SearchTextResultItem& WithPhonemes(PhonemesT&& value) {
417 SetPhonemes(std::forward<PhonemesT>(value));
418 return *this;
419 }
421 private:
422 Aws::String m_placeId;
423
424 PlaceType m_placeType{PlaceType::NOT_SET};
425
426 Aws::String m_title;
427
428 Address m_address;
429
430 bool m_addressNumberCorrected{false};
431
432 Aws::Vector<double> m_position;
433
434 long long m_distance{0};
435
436 Aws::Vector<double> m_mapView;
437
438 Aws::Vector<Category> m_categories;
439
440 Aws::Vector<FoodType> m_foodTypes;
441
442 Aws::Vector<BusinessChain> m_businessChains;
443
444 Contacts m_contacts;
445
446 Aws::Vector<OpeningHours> m_openingHours;
447
448 Aws::Vector<AccessPoint> m_accessPoints;
449
450 Aws::Vector<AccessRestriction> m_accessRestrictions;
451
452 TimeZone m_timeZone;
453
454 Aws::String m_politicalView;
455
456 PhonemeDetails m_phonemes;
457 bool m_placeIdHasBeenSet = false;
458 bool m_placeTypeHasBeenSet = false;
459 bool m_titleHasBeenSet = false;
460 bool m_addressHasBeenSet = false;
461 bool m_addressNumberCorrectedHasBeenSet = false;
462 bool m_positionHasBeenSet = false;
463 bool m_distanceHasBeenSet = false;
464 bool m_mapViewHasBeenSet = false;
465 bool m_categoriesHasBeenSet = false;
466 bool m_foodTypesHasBeenSet = false;
467 bool m_businessChainsHasBeenSet = false;
468 bool m_contactsHasBeenSet = false;
469 bool m_openingHoursHasBeenSet = false;
470 bool m_accessPointsHasBeenSet = false;
471 bool m_accessRestrictionsHasBeenSet = false;
472 bool m_timeZoneHasBeenSet = false;
473 bool m_politicalViewHasBeenSet = false;
474 bool m_phonemesHasBeenSet = false;
475};
476
477} // namespace Model
478} // namespace GeoPlaces
479} // namespace Aws
SearchTextResultItem & AddOpeningHours(OpeningHoursT &&value)
const Aws::Vector< AccessRestriction > & GetAccessRestrictions() const
SearchTextResultItem & WithPoliticalView(PoliticalViewT &&value)
const Aws::Vector< Category > & GetCategories() const
const Aws::Vector< BusinessChain > & GetBusinessChains() const
SearchTextResultItem & WithPhonemes(PhonemesT &&value)
SearchTextResultItem & WithAddressNumberCorrected(bool value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
SearchTextResultItem & WithCategories(CategoriesT &&value)
const Aws::Vector< FoodType > & GetFoodTypes() const
SearchTextResultItem & WithPosition(PositionT &&value)
SearchTextResultItem & WithOpeningHours(OpeningHoursT &&value)
SearchTextResultItem & AddCategories(CategoriesT &&value)
const Aws::Vector< double > & GetMapView() const
SearchTextResultItem & WithAccessPoints(AccessPointsT &&value)
SearchTextResultItem & AddBusinessChains(BusinessChainsT &&value)
AWS_GEOPLACES_API SearchTextResultItem(Aws::Utils::Json::JsonView jsonValue)
SearchTextResultItem & WithDistance(long long value)
AWS_GEOPLACES_API SearchTextResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OpeningHours > & GetOpeningHours() const
SearchTextResultItem & WithAddress(AddressT &&value)
SearchTextResultItem & WithAccessRestrictions(AccessRestrictionsT &&value)
SearchTextResultItem & WithBusinessChains(BusinessChainsT &&value)
SearchTextResultItem & WithPlaceId(PlaceIdT &&value)
SearchTextResultItem & AddPosition(double value)
void SetAccessRestrictions(AccessRestrictionsT &&value)
AWS_GEOPLACES_API SearchTextResultItem()=default
SearchTextResultItem & AddMapView(double value)
SearchTextResultItem & WithContacts(ContactsT &&value)
SearchTextResultItem & WithTimeZone(TimeZoneT &&value)
SearchTextResultItem & AddAccessRestrictions(AccessRestrictionsT &&value)
SearchTextResultItem & WithPlaceType(PlaceType value)
const Aws::Vector< double > & GetPosition() const
SearchTextResultItem & AddFoodTypes(FoodTypesT &&value)
SearchTextResultItem & AddAccessPoints(AccessPointsT &&value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
SearchTextResultItem & WithFoodTypes(FoodTypesT &&value)
SearchTextResultItem & WithTitle(TitleT &&value)
SearchTextResultItem & WithMapView(MapViewT &&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