AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SuggestPlaceResult.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/PhonemeDetails.h>
14#include <aws/geo-places/model/Category.h>
15#include <aws/geo-places/model/FoodType.h>
16#include <aws/geo-places/model/BusinessChain.h>
17#include <aws/geo-places/model/AccessPoint.h>
18#include <aws/geo-places/model/AccessRestriction.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace GeoPlaces
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_GEOPLACES_API SuggestPlaceResult();
45 AWS_GEOPLACES_API SuggestPlaceResult(Aws::Utils::Json::JsonView jsonValue);
47 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetPlaceId() const{ return m_placeId; }
56 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
57 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
58 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
59 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
60 inline SuggestPlaceResult& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
61 inline SuggestPlaceResult& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
62 inline SuggestPlaceResult& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
64
66
70 inline const PlaceType& GetPlaceType() const{ return m_placeType; }
71 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
72 inline void SetPlaceType(const PlaceType& value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
73 inline void SetPlaceType(PlaceType&& value) { m_placeTypeHasBeenSet = true; m_placeType = std::move(value); }
74 inline SuggestPlaceResult& WithPlaceType(const PlaceType& value) { SetPlaceType(value); return *this;}
75 inline SuggestPlaceResult& WithPlaceType(PlaceType&& value) { SetPlaceType(std::move(value)); return *this;}
77
79
82 inline const Address& GetAddress() const{ return m_address; }
83 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
84 inline void SetAddress(const Address& value) { m_addressHasBeenSet = true; m_address = value; }
85 inline void SetAddress(Address&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
86 inline SuggestPlaceResult& WithAddress(const Address& value) { SetAddress(value); return *this;}
87 inline SuggestPlaceResult& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;}
89
91
94 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
95 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
96 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
97 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
98 inline SuggestPlaceResult& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
99 inline SuggestPlaceResult& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
100 inline SuggestPlaceResult& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
102
104
107 inline long long GetDistance() const{ return m_distance; }
108 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
109 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
110 inline SuggestPlaceResult& WithDistance(long long value) { SetDistance(value); return *this;}
112
114
120 inline const Aws::Vector<double>& GetMapView() const{ return m_mapView; }
121 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
122 inline void SetMapView(const Aws::Vector<double>& value) { m_mapViewHasBeenSet = true; m_mapView = value; }
123 inline void SetMapView(Aws::Vector<double>&& value) { m_mapViewHasBeenSet = true; m_mapView = std::move(value); }
124 inline SuggestPlaceResult& WithMapView(const Aws::Vector<double>& value) { SetMapView(value); return *this;}
125 inline SuggestPlaceResult& WithMapView(Aws::Vector<double>&& value) { SetMapView(std::move(value)); return *this;}
126 inline SuggestPlaceResult& AddMapView(double value) { m_mapViewHasBeenSet = true; m_mapView.push_back(value); return *this; }
128
130
133 inline const Aws::Vector<Category>& GetCategories() const{ return m_categories; }
134 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
135 inline void SetCategories(const Aws::Vector<Category>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
136 inline void SetCategories(Aws::Vector<Category>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
137 inline SuggestPlaceResult& WithCategories(const Aws::Vector<Category>& value) { SetCategories(value); return *this;}
138 inline SuggestPlaceResult& WithCategories(Aws::Vector<Category>&& value) { SetCategories(std::move(value)); return *this;}
139 inline SuggestPlaceResult& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
140 inline SuggestPlaceResult& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
142
144
147 inline const Aws::Vector<FoodType>& GetFoodTypes() const{ return m_foodTypes; }
148 inline bool FoodTypesHasBeenSet() const { return m_foodTypesHasBeenSet; }
149 inline void SetFoodTypes(const Aws::Vector<FoodType>& value) { m_foodTypesHasBeenSet = true; m_foodTypes = value; }
150 inline void SetFoodTypes(Aws::Vector<FoodType>&& value) { m_foodTypesHasBeenSet = true; m_foodTypes = std::move(value); }
151 inline SuggestPlaceResult& WithFoodTypes(const Aws::Vector<FoodType>& value) { SetFoodTypes(value); return *this;}
152 inline SuggestPlaceResult& WithFoodTypes(Aws::Vector<FoodType>&& value) { SetFoodTypes(std::move(value)); return *this;}
153 inline SuggestPlaceResult& AddFoodTypes(const FoodType& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(value); return *this; }
154 inline SuggestPlaceResult& AddFoodTypes(FoodType&& value) { m_foodTypesHasBeenSet = true; m_foodTypes.push_back(std::move(value)); return *this; }
156
158
161 inline const Aws::Vector<BusinessChain>& GetBusinessChains() const{ return m_businessChains; }
162 inline bool BusinessChainsHasBeenSet() const { return m_businessChainsHasBeenSet; }
163 inline void SetBusinessChains(const Aws::Vector<BusinessChain>& value) { m_businessChainsHasBeenSet = true; m_businessChains = value; }
164 inline void SetBusinessChains(Aws::Vector<BusinessChain>&& value) { m_businessChainsHasBeenSet = true; m_businessChains = std::move(value); }
166 inline SuggestPlaceResult& WithBusinessChains(Aws::Vector<BusinessChain>&& value) { SetBusinessChains(std::move(value)); return *this;}
167 inline SuggestPlaceResult& AddBusinessChains(const BusinessChain& value) { m_businessChainsHasBeenSet = true; m_businessChains.push_back(value); return *this; }
168 inline SuggestPlaceResult& AddBusinessChains(BusinessChain&& value) { m_businessChainsHasBeenSet = true; m_businessChains.push_back(std::move(value)); return *this; }
170
172
175 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const{ return m_accessPoints; }
176 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
177 inline void SetAccessPoints(const Aws::Vector<AccessPoint>& value) { m_accessPointsHasBeenSet = true; m_accessPoints = value; }
178 inline void SetAccessPoints(Aws::Vector<AccessPoint>&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::move(value); }
180 inline SuggestPlaceResult& WithAccessPoints(Aws::Vector<AccessPoint>&& value) { SetAccessPoints(std::move(value)); return *this;}
181 inline SuggestPlaceResult& AddAccessPoints(const AccessPoint& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(value); return *this; }
182 inline SuggestPlaceResult& AddAccessPoints(AccessPoint&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.push_back(std::move(value)); return *this; }
184
186
191 inline const Aws::Vector<AccessRestriction>& GetAccessRestrictions() const{ return m_accessRestrictions; }
192 inline bool AccessRestrictionsHasBeenSet() const { return m_accessRestrictionsHasBeenSet; }
193 inline void SetAccessRestrictions(const Aws::Vector<AccessRestriction>& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions = value; }
194 inline void SetAccessRestrictions(Aws::Vector<AccessRestriction>&& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions = std::move(value); }
197 inline SuggestPlaceResult& AddAccessRestrictions(const AccessRestriction& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions.push_back(value); return *this; }
198 inline SuggestPlaceResult& AddAccessRestrictions(AccessRestriction&& value) { m_accessRestrictionsHasBeenSet = true; m_accessRestrictions.push_back(std::move(value)); return *this; }
200
202
205 inline const TimeZone& GetTimeZone() const{ return m_timeZone; }
206 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
207 inline void SetTimeZone(const TimeZone& value) { m_timeZoneHasBeenSet = true; m_timeZone = value; }
208 inline void SetTimeZone(TimeZone&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::move(value); }
209 inline SuggestPlaceResult& WithTimeZone(const TimeZone& value) { SetTimeZone(value); return *this;}
210 inline SuggestPlaceResult& WithTimeZone(TimeZone&& value) { SetTimeZone(std::move(value)); return *this;}
212
214
219 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
220 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
221 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
222 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
223 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
224 inline SuggestPlaceResult& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
225 inline SuggestPlaceResult& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
226 inline SuggestPlaceResult& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
228
230
234 inline const PhonemeDetails& GetPhonemes() const{ return m_phonemes; }
235 inline bool PhonemesHasBeenSet() const { return m_phonemesHasBeenSet; }
236 inline void SetPhonemes(const PhonemeDetails& value) { m_phonemesHasBeenSet = true; m_phonemes = value; }
237 inline void SetPhonemes(PhonemeDetails&& value) { m_phonemesHasBeenSet = true; m_phonemes = std::move(value); }
238 inline SuggestPlaceResult& WithPhonemes(const PhonemeDetails& value) { SetPhonemes(value); return *this;}
239 inline SuggestPlaceResult& WithPhonemes(PhonemeDetails&& value) { SetPhonemes(std::move(value)); return *this;}
241 private:
242
243 Aws::String m_placeId;
244 bool m_placeIdHasBeenSet = false;
245
246 PlaceType m_placeType;
247 bool m_placeTypeHasBeenSet = false;
248
249 Address m_address;
250 bool m_addressHasBeenSet = false;
251
252 Aws::Vector<double> m_position;
253 bool m_positionHasBeenSet = false;
254
255 long long m_distance;
256 bool m_distanceHasBeenSet = false;
257
258 Aws::Vector<double> m_mapView;
259 bool m_mapViewHasBeenSet = false;
260
261 Aws::Vector<Category> m_categories;
262 bool m_categoriesHasBeenSet = false;
263
264 Aws::Vector<FoodType> m_foodTypes;
265 bool m_foodTypesHasBeenSet = false;
266
267 Aws::Vector<BusinessChain> m_businessChains;
268 bool m_businessChainsHasBeenSet = false;
269
270 Aws::Vector<AccessPoint> m_accessPoints;
271 bool m_accessPointsHasBeenSet = false;
272
273 Aws::Vector<AccessRestriction> m_accessRestrictions;
274 bool m_accessRestrictionsHasBeenSet = false;
275
276 TimeZone m_timeZone;
277 bool m_timeZoneHasBeenSet = false;
278
279 Aws::String m_politicalView;
280 bool m_politicalViewHasBeenSet = false;
281
282 PhonemeDetails m_phonemes;
283 bool m_phonemesHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace GeoPlaces
288} // namespace Aws
SuggestPlaceResult & AddCategories(Category &&value)
SuggestPlaceResult & WithAccessPoints(Aws::Vector< AccessPoint > &&value)
SuggestPlaceResult & AddAccessPoints(AccessPoint &&value)
void SetPoliticalView(const Aws::String &value)
SuggestPlaceResult & WithAccessRestrictions(Aws::Vector< AccessRestriction > &&value)
SuggestPlaceResult & WithPhonemes(const PhonemeDetails &value)
SuggestPlaceResult & WithTimeZone(const TimeZone &value)
AWS_GEOPLACES_API SuggestPlaceResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetMapView() const
SuggestPlaceResult & AddAccessRestrictions(const AccessRestriction &value)
SuggestPlaceResult & WithPoliticalView(const Aws::String &value)
void SetMapView(Aws::Vector< double > &&value)
const Aws::Vector< FoodType > & GetFoodTypes() const
void SetBusinessChains(const Aws::Vector< BusinessChain > &value)
SuggestPlaceResult & WithPlaceId(const Aws::String &value)
SuggestPlaceResult & AddCategories(const Category &value)
SuggestPlaceResult & WithMapView(Aws::Vector< double > &&value)
SuggestPlaceResult & AddAccessRestrictions(AccessRestriction &&value)
void SetPosition(Aws::Vector< double > &&value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
void SetAccessRestrictions(Aws::Vector< AccessRestriction > &&value)
SuggestPlaceResult & WithAddress(const Address &value)
SuggestPlaceResult & AddPosition(double value)
const PhonemeDetails & GetPhonemes() const
SuggestPlaceResult & WithFoodTypes(Aws::Vector< FoodType > &&value)
void SetPlaceType(const PlaceType &value)
SuggestPlaceResult & WithBusinessChains(Aws::Vector< BusinessChain > &&value)
SuggestPlaceResult & AddFoodTypes(const FoodType &value)
SuggestPlaceResult & WithPlaceType(PlaceType &&value)
SuggestPlaceResult & WithAddress(Address &&value)
void SetAccessPoints(const Aws::Vector< AccessPoint > &value)
SuggestPlaceResult & WithDistance(long long value)
SuggestPlaceResult & WithPoliticalView(const char *value)
void SetCategories(Aws::Vector< Category > &&value)
const Aws::Vector< BusinessChain > & GetBusinessChains() const
const Aws::Vector< Category > & GetCategories() const
void SetFoodTypes(Aws::Vector< FoodType > &&value)
void SetBusinessChains(Aws::Vector< BusinessChain > &&value)
SuggestPlaceResult & WithFoodTypes(const Aws::Vector< FoodType > &value)
const Aws::Vector< AccessRestriction > & GetAccessRestrictions() const
void SetMapView(const Aws::Vector< double > &value)
const Aws::Vector< double > & GetPosition() const
SuggestPlaceResult & WithMapView(const Aws::Vector< double > &value)
SuggestPlaceResult & AddAccessPoints(const AccessPoint &value)
SuggestPlaceResult & WithTimeZone(TimeZone &&value)
void SetPosition(const Aws::Vector< double > &value)
SuggestPlaceResult & WithAccessPoints(const Aws::Vector< AccessPoint > &value)
SuggestPlaceResult & AddFoodTypes(FoodType &&value)
SuggestPlaceResult & WithPoliticalView(Aws::String &&value)
AWS_GEOPLACES_API SuggestPlaceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SuggestPlaceResult & WithPlaceId(Aws::String &&value)
SuggestPlaceResult & WithPosition(const Aws::Vector< double > &value)
SuggestPlaceResult & WithCategories(const Aws::Vector< Category > &value)
SuggestPlaceResult & WithAccessRestrictions(const Aws::Vector< AccessRestriction > &value)
SuggestPlaceResult & WithPosition(Aws::Vector< double > &&value)
SuggestPlaceResult & WithBusinessChains(const Aws::Vector< BusinessChain > &value)
void SetFoodTypes(const Aws::Vector< FoodType > &value)
SuggestPlaceResult & AddBusinessChains(BusinessChain &&value)
void SetAccessRestrictions(const Aws::Vector< AccessRestriction > &value)
SuggestPlaceResult & WithPlaceId(const char *value)
void SetPhonemes(const PhonemeDetails &value)
void SetCategories(const Aws::Vector< Category > &value)
SuggestPlaceResult & WithCategories(Aws::Vector< Category > &&value)
void SetPlaceId(const Aws::String &value)
SuggestPlaceResult & WithPhonemes(PhonemeDetails &&value)
void SetAccessPoints(Aws::Vector< AccessPoint > &&value)
SuggestPlaceResult & WithPlaceType(const PlaceType &value)
SuggestPlaceResult & AddMapView(double value)
SuggestPlaceResult & AddBusinessChains(const BusinessChain &value)
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