AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetPlaceResult.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/PostalCodeDetails.h>
16#include <aws/geo-places/model/Category.h>
17#include <aws/geo-places/model/FoodType.h>
18#include <aws/geo-places/model/BusinessChain.h>
19#include <aws/geo-places/model/OpeningHours.h>
20#include <aws/geo-places/model/AccessPoint.h>
21#include <aws/geo-places/model/AccessRestriction.h>
22#include <utility>
23
24namespace Aws
25{
26template<typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34} // namespace Json
35} // namespace Utils
36namespace GeoPlaces
37{
38namespace Model
39{
41 {
42 public:
43 AWS_GEOPLACES_API GetPlaceResult();
46
47
49
53 inline const Aws::String& GetPlaceId() const{ return m_placeId; }
54 inline void SetPlaceId(const Aws::String& value) { m_placeId = value; }
55 inline void SetPlaceId(Aws::String&& value) { m_placeId = std::move(value); }
56 inline void SetPlaceId(const char* value) { m_placeId.assign(value); }
57 inline GetPlaceResult& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
58 inline GetPlaceResult& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
59 inline GetPlaceResult& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
61
63
67 inline const PlaceType& GetPlaceType() const{ return m_placeType; }
68 inline void SetPlaceType(const PlaceType& value) { m_placeType = value; }
69 inline void SetPlaceType(PlaceType&& value) { m_placeType = std::move(value); }
70 inline GetPlaceResult& WithPlaceType(const PlaceType& value) { SetPlaceType(value); return *this;}
71 inline GetPlaceResult& WithPlaceType(PlaceType&& value) { SetPlaceType(std::move(value)); return *this;}
73
75
79 inline const Aws::String& GetTitle() const{ return m_title; }
80 inline void SetTitle(const Aws::String& value) { m_title = value; }
81 inline void SetTitle(Aws::String&& value) { m_title = std::move(value); }
82 inline void SetTitle(const char* value) { m_title.assign(value); }
83 inline GetPlaceResult& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
84 inline GetPlaceResult& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
85 inline GetPlaceResult& WithTitle(const char* value) { SetTitle(value); return *this;}
87
89
95 inline const Aws::String& GetPricingBucket() const{ return m_pricingBucket; }
96 inline void SetPricingBucket(const Aws::String& value) { m_pricingBucket = value; }
97 inline void SetPricingBucket(Aws::String&& value) { m_pricingBucket = std::move(value); }
98 inline void SetPricingBucket(const char* value) { m_pricingBucket.assign(value); }
99 inline GetPlaceResult& WithPricingBucket(const Aws::String& value) { SetPricingBucket(value); return *this;}
100 inline GetPlaceResult& WithPricingBucket(Aws::String&& value) { SetPricingBucket(std::move(value)); return *this;}
101 inline GetPlaceResult& WithPricingBucket(const char* value) { SetPricingBucket(value); return *this;}
103
105
108 inline const Address& GetAddress() const{ return m_address; }
109 inline void SetAddress(const Address& value) { m_address = value; }
110 inline void SetAddress(Address&& value) { m_address = std::move(value); }
111 inline GetPlaceResult& WithAddress(const Address& value) { SetAddress(value); return *this;}
112 inline GetPlaceResult& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;}
114
116
119 inline bool GetAddressNumberCorrected() const{ return m_addressNumberCorrected; }
120 inline void SetAddressNumberCorrected(bool value) { m_addressNumberCorrected = value; }
121 inline GetPlaceResult& WithAddressNumberCorrected(bool value) { SetAddressNumberCorrected(value); return *this;}
123
125
128 inline const Aws::Vector<PostalCodeDetails>& GetPostalCodeDetails() const{ return m_postalCodeDetails; }
129 inline void SetPostalCodeDetails(const Aws::Vector<PostalCodeDetails>& value) { m_postalCodeDetails = value; }
130 inline void SetPostalCodeDetails(Aws::Vector<PostalCodeDetails>&& value) { m_postalCodeDetails = std::move(value); }
133 inline GetPlaceResult& AddPostalCodeDetails(const PostalCodeDetails& value) { m_postalCodeDetails.push_back(value); return *this; }
134 inline GetPlaceResult& AddPostalCodeDetails(PostalCodeDetails&& value) { m_postalCodeDetails.push_back(std::move(value)); return *this; }
136
138
141 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
142 inline void SetPosition(const Aws::Vector<double>& value) { m_position = value; }
143 inline void SetPosition(Aws::Vector<double>&& value) { m_position = std::move(value); }
144 inline GetPlaceResult& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
145 inline GetPlaceResult& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
146 inline GetPlaceResult& AddPosition(double value) { m_position.push_back(value); return *this; }
148
150
156 inline const Aws::Vector<double>& GetMapView() const{ return m_mapView; }
157 inline void SetMapView(const Aws::Vector<double>& value) { m_mapView = value; }
158 inline void SetMapView(Aws::Vector<double>&& value) { m_mapView = std::move(value); }
159 inline GetPlaceResult& WithMapView(const Aws::Vector<double>& value) { SetMapView(value); return *this;}
160 inline GetPlaceResult& WithMapView(Aws::Vector<double>&& value) { SetMapView(std::move(value)); return *this;}
161 inline GetPlaceResult& AddMapView(double value) { m_mapView.push_back(value); return *this; }
163
165
168 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
169 inline void SetCategories(const Aws::Vector<Category>& value) { m_categories = value; }
170 inline void SetCategories(Aws::Vector<Category>&& value) { m_categories = std::move(value); }
171 inline GetPlaceResult& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
172 inline GetPlaceResult& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
173 inline GetPlaceResult& AddCategories(const Category& value) { m_categories.push_back(value); return *this; }
174 inline GetPlaceResult& AddCategories(Category&& value) { m_categories.push_back(std::move(value)); return *this; }
176
178
181 inline const Aws::Vector<FoodType>& GetFoodTypes() const{ return m_foodTypes; }
182 inline void SetFoodTypes(const Aws::Vector<FoodType>& value) { m_foodTypes = value; }
183 inline void SetFoodTypes(Aws::Vector<FoodType>&& value) { m_foodTypes = std::move(value); }
184 inline GetPlaceResult& WithFoodTypes(const Aws::Vector<FoodType>& value) { SetFoodTypes(value); return *this;}
185 inline GetPlaceResult& WithFoodTypes(Aws::Vector<FoodType>&& value) { SetFoodTypes(std::move(value)); return *this;}
186 inline GetPlaceResult& AddFoodTypes(const FoodType& value) { m_foodTypes.push_back(value); return *this; }
187 inline GetPlaceResult& AddFoodTypes(FoodType&& value) { m_foodTypes.push_back(std::move(value)); return *this; }
189
191
194 inline const Aws::Vector<BusinessChain>& GetBusinessChains() const{ return m_businessChains; }
195 inline void SetBusinessChains(const Aws::Vector<BusinessChain>& value) { m_businessChains = value; }
196 inline void SetBusinessChains(Aws::Vector<BusinessChain>&& value) { m_businessChains = std::move(value); }
198 inline GetPlaceResult& WithBusinessChains(Aws::Vector<BusinessChain>&& value) { SetBusinessChains(std::move(value)); return *this;}
199 inline GetPlaceResult& AddBusinessChains(const BusinessChain& value) { m_businessChains.push_back(value); return *this; }
200 inline GetPlaceResult& AddBusinessChains(BusinessChain&& value) { m_businessChains.push_back(std::move(value)); return *this; }
202
204
207 inline const Contacts& GetContacts() const{ return m_contacts; }
208 inline void SetContacts(const Contacts& value) { m_contacts = value; }
209 inline void SetContacts(Contacts&& value) { m_contacts = std::move(value); }
210 inline GetPlaceResult& WithContacts(const Contacts& value) { SetContacts(value); return *this;}
211 inline GetPlaceResult& WithContacts(Contacts&& value) { SetContacts(std::move(value)); return *this;}
213
215
218 inline const Aws::Vector<OpeningHours>& GetOpeningHours() const{ return m_openingHours; }
219 inline void SetOpeningHours(const Aws::Vector<OpeningHours>& value) { m_openingHours = value; }
220 inline void SetOpeningHours(Aws::Vector<OpeningHours>&& value) { m_openingHours = std::move(value); }
221 inline GetPlaceResult& WithOpeningHours(const Aws::Vector<OpeningHours>& value) { SetOpeningHours(value); return *this;}
222 inline GetPlaceResult& WithOpeningHours(Aws::Vector<OpeningHours>&& value) { SetOpeningHours(std::move(value)); return *this;}
223 inline GetPlaceResult& AddOpeningHours(const OpeningHours& value) { m_openingHours.push_back(value); return *this; }
224 inline GetPlaceResult& AddOpeningHours(OpeningHours&& value) { m_openingHours.push_back(std::move(value)); return *this; }
226
228
231 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const{ return m_accessPoints; }
232 inline void SetAccessPoints(const Aws::Vector<AccessPoint>& value) { m_accessPoints = value; }
233 inline void SetAccessPoints(Aws::Vector<AccessPoint>&& value) { m_accessPoints = std::move(value); }
234 inline GetPlaceResult& WithAccessPoints(const Aws::Vector<AccessPoint>& value) { SetAccessPoints(value); return *this;}
235 inline GetPlaceResult& WithAccessPoints(Aws::Vector<AccessPoint>&& value) { SetAccessPoints(std::move(value)); return *this;}
236 inline GetPlaceResult& AddAccessPoints(const AccessPoint& value) { m_accessPoints.push_back(value); return *this; }
237 inline GetPlaceResult& AddAccessPoints(AccessPoint&& value) { m_accessPoints.push_back(std::move(value)); return *this; }
239
241
246 inline const Aws::Vector<AccessRestriction>& GetAccessRestrictions() const{ return m_accessRestrictions; }
247 inline void SetAccessRestrictions(const Aws::Vector<AccessRestriction>& value) { m_accessRestrictions = value; }
248 inline void SetAccessRestrictions(Aws::Vector<AccessRestriction>&& value) { m_accessRestrictions = std::move(value); }
251 inline GetPlaceResult& AddAccessRestrictions(const AccessRestriction& value) { m_accessRestrictions.push_back(value); return *this; }
252 inline GetPlaceResult& AddAccessRestrictions(AccessRestriction&& value) { m_accessRestrictions.push_back(std::move(value)); return *this; }
254
256
259 inline const TimeZone& GetTimeZone() const{ return m_timeZone; }
260 inline void SetTimeZone(const TimeZone& value) { m_timeZone = value; }
261 inline void SetTimeZone(TimeZone&& value) { m_timeZone = std::move(value); }
262 inline GetPlaceResult& WithTimeZone(const TimeZone& value) { SetTimeZone(value); return *this;}
263 inline GetPlaceResult& WithTimeZone(TimeZone&& value) { SetTimeZone(std::move(value)); return *this;}
265
267
272 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
273 inline void SetPoliticalView(const Aws::String& value) { m_politicalView = value; }
274 inline void SetPoliticalView(Aws::String&& value) { m_politicalView = std::move(value); }
275 inline void SetPoliticalView(const char* value) { m_politicalView.assign(value); }
276 inline GetPlaceResult& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
277 inline GetPlaceResult& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
278 inline GetPlaceResult& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
280
282
286 inline const PhonemeDetails& GetPhonemes() const{ return m_phonemes; }
287 inline void SetPhonemes(const PhonemeDetails& value) { m_phonemes = value; }
288 inline void SetPhonemes(PhonemeDetails&& value) { m_phonemes = std::move(value); }
289 inline GetPlaceResult& WithPhonemes(const PhonemeDetails& value) { SetPhonemes(value); return *this;}
290 inline GetPlaceResult& WithPhonemes(PhonemeDetails&& value) { SetPhonemes(std::move(value)); return *this;}
292
294
295 inline const Aws::String& GetRequestId() const{ return m_requestId; }
296 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
297 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
298 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
299 inline GetPlaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
300 inline GetPlaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
301 inline GetPlaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
303 private:
304
305 Aws::String m_placeId;
306
307 PlaceType m_placeType;
308
309 Aws::String m_title;
310
311 Aws::String m_pricingBucket;
312
313 Address m_address;
314
315 bool m_addressNumberCorrected;
316
317 Aws::Vector<PostalCodeDetails> m_postalCodeDetails;
318
319 Aws::Vector<double> m_position;
320
321 Aws::Vector<double> m_mapView;
322
323 Aws::Vector<Category> m_categories;
324
325 Aws::Vector<FoodType> m_foodTypes;
326
327 Aws::Vector<BusinessChain> m_businessChains;
328
329 Contacts m_contacts;
330
331 Aws::Vector<OpeningHours> m_openingHours;
332
333 Aws::Vector<AccessPoint> m_accessPoints;
334
335 Aws::Vector<AccessRestriction> m_accessRestrictions;
336
337 TimeZone m_timeZone;
338
339 Aws::String m_politicalView;
340
341 PhonemeDetails m_phonemes;
342
343 Aws::String m_requestId;
344 };
345
346} // namespace Model
347} // namespace GeoPlaces
348} // namespace Aws
GetPlaceResult & AddPosition(double value)
const Aws::String & GetTitle() const
void SetAccessPoints(Aws::Vector< AccessPoint > &&value)
void SetAccessPoints(const Aws::Vector< AccessPoint > &value)
void SetPosition(Aws::Vector< double > &&value)
const Aws::Vector< FoodType > & GetFoodTypes() const
GetPlaceResult & WithBusinessChains(Aws::Vector< BusinessChain > &&value)
GetPlaceResult & AddAccessPoints(const AccessPoint &value)
GetPlaceResult & WithPlaceType(PlaceType &&value)
const PlaceType & GetPlaceType() const
void SetPhonemes(const PhonemeDetails &value)
const Contacts & GetContacts() const
void SetAccessRestrictions(const Aws::Vector< AccessRestriction > &value)
void SetBusinessChains(Aws::Vector< BusinessChain > &&value)
GetPlaceResult & WithCategories(Aws::Vector< Category > &&value)
GetPlaceResult & AddBusinessChains(const BusinessChain &value)
AWS_GEOPLACES_API GetPlaceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPlaceResult & WithPricingBucket(Aws::String &&value)
GetPlaceResult & AddAccessPoints(AccessPoint &&value)
GetPlaceResult & WithOpeningHours(Aws::Vector< OpeningHours > &&value)
GetPlaceResult & WithPoliticalView(Aws::String &&value)
GetPlaceResult & WithPhonemes(PhonemeDetails &&value)
GetPlaceResult & WithContacts(const Contacts &value)
void SetAddress(const Address &value)
void SetPlaceId(const Aws::String &value)
const Aws::Vector< Category > & GetCategories() const
GetPlaceResult & AddPostalCodeDetails(PostalCodeDetails &&value)
const Aws::Vector< BusinessChain > & GetBusinessChains() const
void SetPoliticalView(const char *value)
GetPlaceResult & AddAccessRestrictions(AccessRestriction &&value)
GetPlaceResult & WithPlaceId(const Aws::String &value)
const Aws::String & GetRequestId() const
void SetPoliticalView(const Aws::String &value)
void SetPostalCodeDetails(const Aws::Vector< PostalCodeDetails > &value)
const Aws::String & GetPlaceId() const
void SetCategories(Aws::Vector< Category > &&value)
GetPlaceResult & WithTimeZone(TimeZone &&value)
GetPlaceResult & WithAccessRestrictions(Aws::Vector< AccessRestriction > &&value)
GetPlaceResult & AddMapView(double value)
void SetBusinessChains(const Aws::Vector< BusinessChain > &value)
void SetPlaceId(Aws::String &&value)
void SetPricingBucket(Aws::String &&value)
AWS_GEOPLACES_API GetPlaceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetOpeningHours(Aws::Vector< OpeningHours > &&value)
GetPlaceResult & WithFoodTypes(const Aws::Vector< FoodType > &value)
GetPlaceResult & WithMapView(Aws::Vector< double > &&value)
GetPlaceResult & WithAccessPoints(const Aws::Vector< AccessPoint > &value)
GetPlaceResult & WithTitle(Aws::String &&value)
GetPlaceResult & WithAddressNumberCorrected(bool value)
GetPlaceResult & WithRequestId(const Aws::String &value)
void SetPhonemes(PhonemeDetails &&value)
GetPlaceResult & WithAccessPoints(Aws::Vector< AccessPoint > &&value)
const Aws::Vector< OpeningHours > & GetOpeningHours() const
GetPlaceResult & WithPosition(Aws::Vector< double > &&value)
GetPlaceResult & WithMapView(const Aws::Vector< double > &value)
GetPlaceResult & WithPoliticalView(const Aws::String &value)
void SetAccessRestrictions(Aws::Vector< AccessRestriction > &&value)
void SetPricingBucket(const Aws::String &value)
GetPlaceResult & WithPostalCodeDetails(const Aws::Vector< PostalCodeDetails > &value)
const Aws::Vector< PostalCodeDetails > & GetPostalCodeDetails() const
void SetFoodTypes(const Aws::Vector< FoodType > &value)
GetPlaceResult & AddFoodTypes(FoodType &&value)
GetPlaceResult & WithBusinessChains(const Aws::Vector< BusinessChain > &value)
const Aws::String & GetPricingBucket() const
const Aws::Vector< double > & GetPosition() const
GetPlaceResult & WithFoodTypes(Aws::Vector< FoodType > &&value)
const Aws::String & GetPoliticalView() const
GetPlaceResult & WithPostalCodeDetails(Aws::Vector< PostalCodeDetails > &&value)
GetPlaceResult & WithAddress(const Address &value)
void SetTimeZone(const TimeZone &value)
GetPlaceResult & WithRequestId(const char *value)
void SetOpeningHours(const Aws::Vector< OpeningHours > &value)
GetPlaceResult & AddCategories(Category &&value)
GetPlaceResult & WithPricingBucket(const Aws::String &value)
GetPlaceResult & WithOpeningHours(const Aws::Vector< OpeningHours > &value)
GetPlaceResult & AddFoodTypes(const FoodType &value)
GetPlaceResult & WithContacts(Contacts &&value)
GetPlaceResult & WithPlaceType(const PlaceType &value)
GetPlaceResult & AddAccessRestrictions(const AccessRestriction &value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
GetPlaceResult & WithTitle(const Aws::String &value)
void SetPlaceType(PlaceType &&value)
GetPlaceResult & WithTitle(const char *value)
GetPlaceResult & WithRequestId(Aws::String &&value)
void SetMapView(Aws::Vector< double > &&value)
GetPlaceResult & WithCategories(const Aws::Vector< Category > &value)
GetPlaceResult & WithAccessRestrictions(const Aws::Vector< AccessRestriction > &value)
GetPlaceResult & WithAddress(Address &&value)
void SetPlaceType(const PlaceType &value)
GetPlaceResult & WithPlaceId(Aws::String &&value)
GetPlaceResult & AddCategories(const Category &value)
GetPlaceResult & WithPricingBucket(const char *value)
const TimeZone & GetTimeZone() const
const PhonemeDetails & GetPhonemes() const
GetPlaceResult & WithTimeZone(const TimeZone &value)
const Aws::Vector< double > & GetMapView() const
void SetTitle(const Aws::String &value)
GetPlaceResult & AddOpeningHours(OpeningHours &&value)
GetPlaceResult & AddOpeningHours(const OpeningHours &value)
const Aws::Vector< AccessRestriction > & GetAccessRestrictions() const
void SetRequestId(const Aws::String &value)
void SetTitle(Aws::String &&value)
void SetCategories(const Aws::Vector< Category > &value)
void SetPosition(const Aws::Vector< double > &value)
GetPlaceResult & AddBusinessChains(BusinessChain &&value)
void SetMapView(const Aws::Vector< double > &value)
GetPlaceResult & WithPoliticalView(const char *value)
void SetPricingBucket(const char *value)
void SetPostalCodeDetails(Aws::Vector< PostalCodeDetails > &&value)
void SetContacts(const Contacts &value)
void SetPoliticalView(Aws::String &&value)
GetPlaceResult & WithPlaceId(const char *value)
void SetFoodTypes(Aws::Vector< FoodType > &&value)
GetPlaceResult & WithPhonemes(const PhonemeDetails &value)
GetPlaceResult & AddPostalCodeDetails(const PostalCodeDetails &value)
void SetRequestId(Aws::String &&value)
GetPlaceResult & WithPosition(const 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