AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchTextResultItem.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/Contacts.h>
13#include <aws/geo-places/model/TimeZone.h>
14#include <aws/geo-places/model/PhonemeDetails.h>
15#include <aws/geo-places/model/Category.h>
16#include <aws/geo-places/model/FoodType.h>
17#include <aws/geo-places/model/BusinessChain.h>
18#include <aws/geo-places/model/OpeningHours.h>
19#include <aws/geo-places/model/AccessPoint.h>
20#include <aws/geo-places/model/AccessRestriction.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace GeoPlaces
34{
35namespace Model
36{
37
44 {
45 public:
46 AWS_GEOPLACES_API SearchTextResultItem();
49 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const Aws::String& GetPlaceId() const{ return m_placeId; }
58 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
59 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
60 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
61 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
62 inline SearchTextResultItem& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
63 inline SearchTextResultItem& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
64 inline SearchTextResultItem& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
66
68
72 inline const PlaceType& GetPlaceType() const{ return m_placeType; }
73 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
74 inline void SetPlaceType(const PlaceType& value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
75 inline void SetPlaceType(PlaceType&& value) { m_placeTypeHasBeenSet = true; m_placeType = std::move(value); }
76 inline SearchTextResultItem& WithPlaceType(const PlaceType& value) { SetPlaceType(value); return *this;}
77 inline SearchTextResultItem& WithPlaceType(PlaceType&& value) { SetPlaceType(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetTitle() const{ return m_title; }
85 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
86 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
87 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
88 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
89 inline SearchTextResultItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
90 inline SearchTextResultItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
91 inline SearchTextResultItem& WithTitle(const char* value) { SetTitle(value); return *this;}
93
95
98 inline const Address& GetAddress() const{ return m_address; }
99 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
100 inline void SetAddress(const Address& value) { m_addressHasBeenSet = true; m_address = value; }
101 inline void SetAddress(Address&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
102 inline SearchTextResultItem& WithAddress(const Address& value) { SetAddress(value); return *this;}
103 inline SearchTextResultItem& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;}
105
107
110 inline bool GetAddressNumberCorrected() const{ return m_addressNumberCorrected; }
111 inline bool AddressNumberCorrectedHasBeenSet() const { return m_addressNumberCorrectedHasBeenSet; }
112 inline void SetAddressNumberCorrected(bool value) { m_addressNumberCorrectedHasBeenSet = true; m_addressNumberCorrected = value; }
115
117
120 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
121 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
122 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
123 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
124 inline SearchTextResultItem& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
125 inline SearchTextResultItem& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
126 inline SearchTextResultItem& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
128
130
133 inline long long GetDistance() const{ return m_distance; }
134 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
135 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
136 inline SearchTextResultItem& WithDistance(long long value) { SetDistance(value); return *this;}
138
140
146 inline const Aws::Vector<double>& GetMapView() const{ return m_mapView; }
147 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
148 inline void SetMapView(const Aws::Vector<double>& value) { m_mapViewHasBeenSet = true; m_mapView = value; }
149 inline void SetMapView(Aws::Vector<double>&& value) { m_mapViewHasBeenSet = true; m_mapView = std::move(value); }
150 inline SearchTextResultItem& WithMapView(const Aws::Vector<double>& value) { SetMapView(value); return *this;}
151 inline SearchTextResultItem& WithMapView(Aws::Vector<double>&& value) { SetMapView(std::move(value)); return *this;}
152 inline SearchTextResultItem& AddMapView(double value) { m_mapViewHasBeenSet = true; m_mapView.push_back(value); return *this; }
154
156
159 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
160 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
161 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
162 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
163 inline SearchTextResultItem& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
164 inline SearchTextResultItem& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
165 inline SearchTextResultItem& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
166 inline SearchTextResultItem& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
168
170
173 inline const Aws::Vector<FoodType>& GetFoodTypes() const{ return m_foodTypes; }
174 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
175 inline void SetFoodTypes(const Aws::Vector<FoodType>& value) { m_foodTypesHasBeenSet = true; m_foodTypes = value; }
176 inline void SetFoodTypes(Aws::Vector<FoodType>&& value) { m_foodTypesHasBeenSet = true; m_foodTypes = std::move(value); }
177 inline SearchTextResultItem& WithFoodTypes(const Aws::Vector<FoodType>& value) { SetFoodTypes(value); return *this;}
178 inline SearchTextResultItem& WithFoodTypes(Aws::Vector<FoodType>&& value) { SetFoodTypes(std::move(value)); return *this;}
179 inline SearchTextResultItem& AddFoodTypes(const FoodType& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(value); return *this; }
180 inline SearchTextResultItem& AddFoodTypes(FoodType&& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(std::move(value)); return *this; }
182
184
187 inline const Aws::Vector<BusinessChain>& GetBusinessChains() const{ return m_businessChains; }
188 inline bool BusinessChainsHasBeenSet() const { return m_businessChainsHasBeenSet; }
189 inline void SetBusinessChains(const Aws::Vector<BusinessChain>& value) { m_businessChainsHasBeenSet = true; m_businessChains = value; }
190 inline void SetBusinessChains(Aws::Vector<BusinessChain>&& value) { m_businessChainsHasBeenSet = true; m_businessChains = std::move(value); }
192 inline SearchTextResultItem& WithBusinessChains(Aws::Vector<BusinessChain>&& value) { SetBusinessChains(std::move(value)); return *this;}
193 inline SearchTextResultItem& AddBusinessChains(const BusinessChain& value) { m_businessChainsHasBeenSet = true; m_businessChains.push_back(value); return *this; }
194 inline SearchTextResultItem& AddBusinessChains(BusinessChain&& value) { m_businessChainsHasBeenSet = true; m_businessChains.push_back(std::move(value)); return *this; }
196
198
201 inline const Contacts& GetContacts() const{ return m_contacts; }
202 inline bool ContactsHasBeenSet() const { return m_contactsHasBeenSet; }
203 inline void SetContacts(const Contacts& value) { m_contactsHasBeenSet = true; m_contacts = value; }
204 inline void SetContacts(Contacts&& value) { m_contactsHasBeenSet = true; m_contacts = std::move(value); }
205 inline SearchTextResultItem& WithContacts(const Contacts& value) { SetContacts(value); return *this;}
206 inline SearchTextResultItem& WithContacts(Contacts&& value) { SetContacts(std::move(value)); return *this;}
208
210
213 inline const Aws::Vector<OpeningHours>& GetOpeningHours() const{ return m_openingHours; }
214 inline bool OpeningHoursHasBeenSet() const { return m_openingHoursHasBeenSet; }
215 inline void SetOpeningHours(const Aws::Vector<OpeningHours>& value) { m_openingHoursHasBeenSet = true; m_openingHours = value; }
216 inline void SetOpeningHours(Aws::Vector<OpeningHours>&& value) { m_openingHoursHasBeenSet = true; m_openingHours = std::move(value); }
218 inline SearchTextResultItem& WithOpeningHours(Aws::Vector<OpeningHours>&& value) { SetOpeningHours(std::move(value)); return *this;}
219 inline SearchTextResultItem& AddOpeningHours(const OpeningHours& value) { m_openingHoursHasBeenSet = true; m_openingHours.push_back(value); return *this; }
220 inline SearchTextResultItem& AddOpeningHours(OpeningHours&& value) { m_openingHoursHasBeenSet = true; m_openingHours.push_back(std::move(value)); return *this; }
222
224
227 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const{ return m_accessPoints; }
228 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
229 inline void SetAccessPoints(const Aws::Vector<AccessPoint>& value) { m_accessPointsHasBeenSet = true; m_accessPoints = value; }
230 inline void SetAccessPoints(Aws::Vector<AccessPoint>&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::move(value); }
232 inline SearchTextResultItem& WithAccessPoints(Aws::Vector<AccessPoint>&& value) { SetAccessPoints(std::move(value)); return *this;}
233 inline SearchTextResultItem& AddAccessPoints(const AccessPoint& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(value); return *this; }
234 inline SearchTextResultItem& AddAccessPoints(AccessPoint&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(std::move(value)); return *this; }
236
238
243 inline const Aws::Vector<AccessRestriction>& GetAccessRestrictions() const{ return m_accessRestrictions; }
244 inline bool AccessRestrictionsHasBeenSet() const { return m_accessRestrictionsHasBeenSet; }
245 inline void SetAccessRestrictions(const Aws::Vector<AccessRestriction>& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions = value; }
246 inline void SetAccessRestrictions(Aws::Vector<AccessRestriction>&& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions = std::move(value); }
249 inline SearchTextResultItem& AddAccessRestrictions(const AccessRestriction& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions.push_back(value); return *this; }
250 inline SearchTextResultItem& AddAccessRestrictions(AccessRestriction&& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions.push_back(std::move(value)); return *this; }
252
254
257 inline const TimeZone& GetTimeZone() const{ return m_timeZone; }
258 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
259 inline void SetTimeZone(const TimeZone& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
260 inline void SetTimeZone(TimeZone&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
261 inline SearchTextResultItem& WithTimeZone(const TimeZone& value) { SetTimeZone(value); return *this;}
262 inline SearchTextResultItem& WithTimeZone(TimeZone&& value) { SetTimeZone(std::move(value)); return *this;}
264
266
271 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
272 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
273 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
274 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
275 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
276 inline SearchTextResultItem& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
277 inline SearchTextResultItem& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
278 inline SearchTextResultItem& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
280
282
286 inline const PhonemeDetails& GetPhonemes() const{ return m_phonemes; }
287 inline bool PhonemesHasBeenSet() const { return m_phonemesHasBeenSet; }
288 inline void SetPhonemes(const PhonemeDetails& value) { m_phonemesHasBeenSet = true; m_phonemes = value; }
289 inline void SetPhonemes(PhonemeDetails&& value) { m_phonemesHasBeenSet = true; m_phonemes = std::move(value); }
290 inline SearchTextResultItem& WithPhonemes(const PhonemeDetails& value) { SetPhonemes(value); return *this;}
291 inline SearchTextResultItem& WithPhonemes(PhonemeDetails&& value) { SetPhonemes(std::move(value)); return *this;}
293 private:
294
295 Aws::String m_placeId;
296 bool m_placeIdHasBeenSet = false;
297
298 PlaceType m_placeType;
299 bool m_placeTypeHasBeenSet = false;
300
301 Aws::String m_title;
302 bool m_titleHasBeenSet = false;
303
304 Address m_address;
305 bool m_addressHasBeenSet = false;
306
307 bool m_addressNumberCorrected;
308 bool m_addressNumberCorrectedHasBeenSet = false;
309
310 Aws::Vector<double> m_position;
311 bool m_positionHasBeenSet = false;
312
313 long long m_distance;
314 bool m_distanceHasBeenSet = false;
315
316 Aws::Vector<double> m_mapView;
317 bool m_mapViewHasBeenSet = false;
318
319 Aws::Vector<Category> m_categories;
320 bool m_categoriesHasBeenSet = false;
321
322 Aws::Vector<FoodType> m_foodTypes;
323 bool m_foodTypesHasBeenSet = false;
324
325 Aws::Vector<BusinessChain> m_businessChains;
326 bool m_businessChainsHasBeenSet = false;
327
328 Contacts m_contacts;
329 bool m_contactsHasBeenSet = false;
330
331 Aws::Vector<OpeningHours> m_openingHours;
332 bool m_openingHoursHasBeenSet = false;
333
334 Aws::Vector<AccessPoint> m_accessPoints;
335 bool m_accessPointsHasBeenSet = false;
336
337 Aws::Vector<AccessRestriction> m_accessRestrictions;
338 bool m_accessRestrictionsHasBeenSet = false;
339
340 TimeZone m_timeZone;
341 bool m_timeZoneHasBeenSet = false;
342
343 Aws::String m_politicalView;
344 bool m_politicalViewHasBeenSet = false;
345
346 PhonemeDetails m_phonemes;
347 bool m_phonemesHasBeenSet = false;
348 };
349
350} // namespace Model
351} // namespace GeoPlaces
352} // namespace Aws
SearchTextResultItem & WithTitle(const char *value)
void SetPhonemes(const PhonemeDetails &value)
SearchTextResultItem & WithOpeningHours(Aws::Vector< OpeningHours > &&value)
SearchTextResultItem & WithContacts(const Contacts &value)
void SetAccessRestrictions(const Aws::Vector< AccessRestriction > &value)
SearchTextResultItem & WithAddress(const Address &value)
const Aws::Vector< AccessRestriction > & GetAccessRestrictions() const
const Aws::Vector< Category > & GetCategories() const
SearchTextResultItem & WithBusinessChains(const Aws::Vector< BusinessChain > &value)
SearchTextResultItem & AddAccessPoints(const AccessPoint &value)
const Aws::Vector< BusinessChain > & GetBusinessChains() const
void SetCategories(Aws::Vector< Category > &&value)
SearchTextResultItem & WithAccessPoints(Aws::Vector< AccessPoint > &&value)
SearchTextResultItem & WithPlaceType(PlaceType &&value)
SearchTextResultItem & WithOpeningHours(const Aws::Vector< OpeningHours > &value)
SearchTextResultItem & WithAddressNumberCorrected(bool value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
SearchTextResultItem & WithCategories(const Aws::Vector< Category > &value)
SearchTextResultItem & WithMapView(Aws::Vector< double > &&value)
SearchTextResultItem & AddBusinessChains(const BusinessChain &value)
SearchTextResultItem & WithPosition(Aws::Vector< double > &&value)
SearchTextResultItem & WithPoliticalView(Aws::String &&value)
SearchTextResultItem & WithCategories(Aws::Vector< Category > &&value)
const Aws::Vector< FoodType > & GetFoodTypes() const
SearchTextResultItem & AddOpeningHours(OpeningHours &&value)
const Aws::Vector< double > & GetMapView() const
void SetCategories(const Aws::Vector< Category > &value)
void SetOpeningHours(Aws::Vector< OpeningHours > &&value)
SearchTextResultItem & AddAccessRestrictions(AccessRestriction &&value)
SearchTextResultItem & WithPosition(const Aws::Vector< double > &value)
AWS_GEOPLACES_API SearchTextResultItem(Aws::Utils::Json::JsonView jsonValue)
SearchTextResultItem & WithDistance(long long value)
SearchTextResultItem & WithFoodTypes(Aws::Vector< FoodType > &&value)
SearchTextResultItem & WithTitle(const Aws::String &value)
SearchTextResultItem & WithAccessRestrictions(Aws::Vector< AccessRestriction > &&value)
AWS_GEOPLACES_API SearchTextResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OpeningHours > & GetOpeningHours() const
void SetPosition(Aws::Vector< double > &&value)
void SetPosition(const Aws::Vector< double > &value)
SearchTextResultItem & WithAccessPoints(const Aws::Vector< AccessPoint > &value)
void SetBusinessChains(const Aws::Vector< BusinessChain > &value)
SearchTextResultItem & WithPlaceId(const char *value)
void SetMapView(const Aws::Vector< double > &value)
SearchTextResultItem & WithAddress(Address &&value)
void SetOpeningHours(const Aws::Vector< OpeningHours > &value)
SearchTextResultItem & AddCategories(const Category &value)
SearchTextResultItem & WithPoliticalView(const Aws::String &value)
void SetFoodTypes(Aws::Vector< FoodType > &&value)
void SetAccessPoints(Aws::Vector< AccessPoint > &&value)
void SetAccessPoints(const Aws::Vector< AccessPoint > &value)
void SetBusinessChains(Aws::Vector< BusinessChain > &&value)
void SetPoliticalView(const Aws::String &value)
SearchTextResultItem & AddPosition(double value)
SearchTextResultItem & AddCategories(Category &&value)
SearchTextResultItem & WithBusinessChains(Aws::Vector< BusinessChain > &&value)
void SetFoodTypes(const Aws::Vector< FoodType > &value)
SearchTextResultItem & WithTimeZone(const TimeZone &value)
SearchTextResultItem & AddOpeningHours(const OpeningHours &value)
SearchTextResultItem & AddMapView(double value)
SearchTextResultItem & WithFoodTypes(const Aws::Vector< FoodType > &value)
SearchTextResultItem & WithTitle(Aws::String &&value)
SearchTextResultItem & WithContacts(Contacts &&value)
const Aws::Vector< double > & GetPosition() const
SearchTextResultItem & WithPlaceType(const PlaceType &value)
SearchTextResultItem & WithMapView(const Aws::Vector< double > &value)
SearchTextResultItem & AddAccessRestrictions(const AccessRestriction &value)
SearchTextResultItem & WithPhonemes(PhonemeDetails &&value)
SearchTextResultItem & AddBusinessChains(BusinessChain &&value)
SearchTextResultItem & AddAccessPoints(AccessPoint &&value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
SearchTextResultItem & AddFoodTypes(const FoodType &value)
SearchTextResultItem & AddFoodTypes(FoodType &&value)
SearchTextResultItem & WithTimeZone(TimeZone &&value)
void SetAccessRestrictions(Aws::Vector< AccessRestriction > &&value)
SearchTextResultItem & WithPoliticalView(const char *value)
SearchTextResultItem & WithPlaceId(const Aws::String &value)
SearchTextResultItem & WithAccessRestrictions(const Aws::Vector< AccessRestriction > &value)
SearchTextResultItem & WithPhonemes(const PhonemeDetails &value)
SearchTextResultItem & WithPlaceId(Aws::String &&value)
void SetMapView(Aws::Vector< double > &&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