AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AutocompleteAddressHighlights.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9#include <aws/geo-places/model/CountryHighlights.h>
10#include <aws/geo-places/model/Highlight.h>
11#include <aws/geo-places/model/RegionHighlights.h>
12#include <aws/geo-places/model/SubRegionHighlights.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces {
24namespace Model {
25
34 public:
35 AWS_GEOPLACES_API AutocompleteAddressHighlights() = default;
38 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::Vector<Highlight>& GetLabel() const { return m_label; }
48 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
49 template <typename LabelT = Aws::Vector<Highlight>>
50 void SetLabel(LabelT&& value) {
51 m_labelHasBeenSet = true;
52 m_label = std::forward<LabelT>(value);
53 }
54 template <typename LabelT = Aws::Vector<Highlight>>
56 SetLabel(std::forward<LabelT>(value));
57 return *this;
58 }
59 template <typename LabelT = Highlight>
61 m_labelHasBeenSet = true;
62 m_label.emplace_back(std::forward<LabelT>(value));
63 return *this;
64 }
66
68
72 inline const CountryHighlights& GetCountry() const { return m_country; }
73 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
74 template <typename CountryT = CountryHighlights>
75 void SetCountry(CountryT&& value) {
76 m_countryHasBeenSet = true;
77 m_country = std::forward<CountryT>(value);
78 }
79 template <typename CountryT = CountryHighlights>
81 SetCountry(std::forward<CountryT>(value));
82 return *this;
83 }
85
87
91 inline const RegionHighlights& GetRegion() const { return m_region; }
92 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
93 template <typename RegionT = RegionHighlights>
94 void SetRegion(RegionT&& value) {
95 m_regionHasBeenSet = true;
96 m_region = std::forward<RegionT>(value);
97 }
98 template <typename RegionT = RegionHighlights>
100 SetRegion(std::forward<RegionT>(value));
101 return *this;
102 }
104
106
109 inline const SubRegionHighlights& GetSubRegion() const { return m_subRegion; }
110 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
111 template <typename SubRegionT = SubRegionHighlights>
112 void SetSubRegion(SubRegionT&& value) {
113 m_subRegionHasBeenSet = true;
114 m_subRegion = std::forward<SubRegionT>(value);
115 }
116 template <typename SubRegionT = SubRegionHighlights>
118 SetSubRegion(std::forward<SubRegionT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Vector<Highlight>& GetLocality() const { return m_locality; }
129 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
130 template <typename LocalityT = Aws::Vector<Highlight>>
131 void SetLocality(LocalityT&& value) {
132 m_localityHasBeenSet = true;
133 m_locality = std::forward<LocalityT>(value);
134 }
135 template <typename LocalityT = Aws::Vector<Highlight>>
137 SetLocality(std::forward<LocalityT>(value));
138 return *this;
139 }
140 template <typename LocalityT = Highlight>
142 m_localityHasBeenSet = true;
143 m_locality.emplace_back(std::forward<LocalityT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<Highlight>& GetDistrict() const { return m_district; }
153 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
154 template <typename DistrictT = Aws::Vector<Highlight>>
155 void SetDistrict(DistrictT&& value) {
156 m_districtHasBeenSet = true;
157 m_district = std::forward<DistrictT>(value);
158 }
159 template <typename DistrictT = Aws::Vector<Highlight>>
161 SetDistrict(std::forward<DistrictT>(value));
162 return *this;
163 }
164 template <typename DistrictT = Highlight>
166 m_districtHasBeenSet = true;
167 m_district.emplace_back(std::forward<DistrictT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::Vector<Highlight>& GetSubDistrict() const { return m_subDistrict; }
178 inline bool SubDistrictHasBeenSet() const { return m_subDistrictHasBeenSet; }
179 template <typename SubDistrictT = Aws::Vector<Highlight>>
180 void SetSubDistrict(SubDistrictT&& value) {
181 m_subDistrictHasBeenSet = true;
182 m_subDistrict = std::forward<SubDistrictT>(value);
183 }
184 template <typename SubDistrictT = Aws::Vector<Highlight>>
186 SetSubDistrict(std::forward<SubDistrictT>(value));
187 return *this;
188 }
189 template <typename SubDistrictT = Highlight>
191 m_subDistrictHasBeenSet = true;
192 m_subDistrict.emplace_back(std::forward<SubDistrictT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Vector<Highlight>& GetStreet() const { return m_street; }
202 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
203 template <typename StreetT = Aws::Vector<Highlight>>
204 void SetStreet(StreetT&& value) {
205 m_streetHasBeenSet = true;
206 m_street = std::forward<StreetT>(value);
207 }
208 template <typename StreetT = Aws::Vector<Highlight>>
210 SetStreet(std::forward<StreetT>(value));
211 return *this;
212 }
213 template <typename StreetT = Highlight>
215 m_streetHasBeenSet = true;
216 m_street.emplace_back(std::forward<StreetT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::Vector<Highlight>& GetBlock() const { return m_block; }
227 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
228 template <typename BlockT = Aws::Vector<Highlight>>
229 void SetBlock(BlockT&& value) {
230 m_blockHasBeenSet = true;
231 m_block = std::forward<BlockT>(value);
232 }
233 template <typename BlockT = Aws::Vector<Highlight>>
235 SetBlock(std::forward<BlockT>(value));
236 return *this;
237 }
238 template <typename BlockT = Highlight>
240 m_blockHasBeenSet = true;
241 m_block.emplace_back(std::forward<BlockT>(value));
242 return *this;
243 }
245
247
251 inline const Aws::Vector<Highlight>& GetSubBlock() const { return m_subBlock; }
252 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
253 template <typename SubBlockT = Aws::Vector<Highlight>>
254 void SetSubBlock(SubBlockT&& value) {
255 m_subBlockHasBeenSet = true;
256 m_subBlock = std::forward<SubBlockT>(value);
257 }
258 template <typename SubBlockT = Aws::Vector<Highlight>>
260 SetSubBlock(std::forward<SubBlockT>(value));
261 return *this;
262 }
263 template <typename SubBlockT = Highlight>
265 m_subBlockHasBeenSet = true;
266 m_subBlock.emplace_back(std::forward<SubBlockT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::Vector<Aws::Vector<Highlight>>& GetIntersection() const { return m_intersection; }
277 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
278 template <typename IntersectionT = Aws::Vector<Aws::Vector<Highlight>>>
279 void SetIntersection(IntersectionT&& value) {
280 m_intersectionHasBeenSet = true;
281 m_intersection = std::forward<IntersectionT>(value);
282 }
283 template <typename IntersectionT = Aws::Vector<Aws::Vector<Highlight>>>
285 SetIntersection(std::forward<IntersectionT>(value));
286 return *this;
287 }
288 template <typename IntersectionT = Aws::Vector<Highlight>>
290 m_intersectionHasBeenSet = true;
291 m_intersection.emplace_back(std::forward<IntersectionT>(value));
292 return *this;
293 }
295
297
302 inline const Aws::Vector<Highlight>& GetPostalCode() const { return m_postalCode; }
303 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
304 template <typename PostalCodeT = Aws::Vector<Highlight>>
305 void SetPostalCode(PostalCodeT&& value) {
306 m_postalCodeHasBeenSet = true;
307 m_postalCode = std::forward<PostalCodeT>(value);
308 }
309 template <typename PostalCodeT = Aws::Vector<Highlight>>
311 SetPostalCode(std::forward<PostalCodeT>(value));
312 return *this;
313 }
314 template <typename PostalCodeT = Highlight>
316 m_postalCodeHasBeenSet = true;
317 m_postalCode.emplace_back(std::forward<PostalCodeT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Vector<Highlight>& GetAddressNumber() const { return m_addressNumber; }
327 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
328 template <typename AddressNumberT = Aws::Vector<Highlight>>
329 void SetAddressNumber(AddressNumberT&& value) {
330 m_addressNumberHasBeenSet = true;
331 m_addressNumber = std::forward<AddressNumberT>(value);
332 }
333 template <typename AddressNumberT = Aws::Vector<Highlight>>
335 SetAddressNumber(std::forward<AddressNumberT>(value));
336 return *this;
337 }
338 template <typename AddressNumberT = Highlight>
340 m_addressNumberHasBeenSet = true;
341 m_addressNumber.emplace_back(std::forward<AddressNumberT>(value));
342 return *this;
343 }
345
347
350 inline const Aws::Vector<Highlight>& GetBuilding() const { return m_building; }
351 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
352 template <typename BuildingT = Aws::Vector<Highlight>>
353 void SetBuilding(BuildingT&& value) {
354 m_buildingHasBeenSet = true;
355 m_building = std::forward<BuildingT>(value);
356 }
357 template <typename BuildingT = Aws::Vector<Highlight>>
359 SetBuilding(std::forward<BuildingT>(value));
360 return *this;
361 }
362 template <typename BuildingT = Highlight>
364 m_buildingHasBeenSet = true;
365 m_building.emplace_back(std::forward<BuildingT>(value));
366 return *this;
367 }
369 private:
371 bool m_labelHasBeenSet = false;
372
373 CountryHighlights m_country;
374 bool m_countryHasBeenSet = false;
375
376 RegionHighlights m_region;
377 bool m_regionHasBeenSet = false;
378
379 SubRegionHighlights m_subRegion;
380 bool m_subRegionHasBeenSet = false;
381
382 Aws::Vector<Highlight> m_locality;
383 bool m_localityHasBeenSet = false;
384
385 Aws::Vector<Highlight> m_district;
386 bool m_districtHasBeenSet = false;
387
388 Aws::Vector<Highlight> m_subDistrict;
389 bool m_subDistrictHasBeenSet = false;
390
391 Aws::Vector<Highlight> m_street;
392 bool m_streetHasBeenSet = false;
393
395 bool m_blockHasBeenSet = false;
396
397 Aws::Vector<Highlight> m_subBlock;
398 bool m_subBlockHasBeenSet = false;
399
401 bool m_intersectionHasBeenSet = false;
402
403 Aws::Vector<Highlight> m_postalCode;
404 bool m_postalCodeHasBeenSet = false;
405
406 Aws::Vector<Highlight> m_addressNumber;
407 bool m_addressNumberHasBeenSet = false;
408
409 Aws::Vector<Highlight> m_building;
410 bool m_buildingHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace GeoPlaces
415} // namespace Aws
AutocompleteAddressHighlights & WithSubRegion(SubRegionT &&value)
AutocompleteAddressHighlights & WithDistrict(DistrictT &&value)
AutocompleteAddressHighlights & WithAddressNumber(AddressNumberT &&value)
AutocompleteAddressHighlights & AddPostalCode(PostalCodeT &&value)
AutocompleteAddressHighlights & WithSubBlock(SubBlockT &&value)
AutocompleteAddressHighlights & AddIntersection(IntersectionT &&value)
AutocompleteAddressHighlights & AddStreet(StreetT &&value)
AutocompleteAddressHighlights & WithSubDistrict(SubDistrictT &&value)
AutocompleteAddressHighlights & WithBlock(BlockT &&value)
AWS_GEOPLACES_API AutocompleteAddressHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
AutocompleteAddressHighlights & AddAddressNumber(AddressNumberT &&value)
AutocompleteAddressHighlights & AddBuilding(BuildingT &&value)
AutocompleteAddressHighlights & AddLabel(LabelT &&value)
const Aws::Vector< Aws::Vector< Highlight > > & GetIntersection() const
AutocompleteAddressHighlights & WithLocality(LocalityT &&value)
AutocompleteAddressHighlights & WithCountry(CountryT &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOPLACES_API AutocompleteAddressHighlights(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API AutocompleteAddressHighlights()=default
AutocompleteAddressHighlights & WithStreet(StreetT &&value)
AutocompleteAddressHighlights & AddLocality(LocalityT &&value)
AutocompleteAddressHighlights & WithIntersection(IntersectionT &&value)
AutocompleteAddressHighlights & AddBlock(BlockT &&value)
AutocompleteAddressHighlights & WithRegion(RegionT &&value)
AutocompleteAddressHighlights & WithLabel(LabelT &&value)
AutocompleteAddressHighlights & AddDistrict(DistrictT &&value)
AutocompleteAddressHighlights & WithPostalCode(PostalCodeT &&value)
AutocompleteAddressHighlights & WithBuilding(BuildingT &&value)
AutocompleteAddressHighlights & AddSubDistrict(SubDistrictT &&value)
AutocompleteAddressHighlights & AddSubBlock(SubBlockT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue