AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AutocompleteAddressHighlights.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/model/CountryHighlights.h>
10#include <aws/geo-places/model/RegionHighlights.h>
11#include <aws/geo-places/model/SubRegionHighlights.h>
12#include <aws/geo-places/model/Highlight.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoPlaces
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_GEOPLACES_API AutocompleteAddressHighlights() = default;
43 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Vector<Highlight>& GetLabel() const { return m_label; }
54 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
55 template<typename LabelT = Aws::Vector<Highlight>>
56 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
57 template<typename LabelT = Aws::Vector<Highlight>>
58 AutocompleteAddressHighlights& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
59 template<typename LabelT = Highlight>
60 AutocompleteAddressHighlights& AddLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label.emplace_back(std::forward<LabelT>(value)); return *this; }
62
64
68 inline const CountryHighlights& GetCountry() const { return m_country; }
69 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
70 template<typename CountryT = CountryHighlights>
71 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
72 template<typename CountryT = CountryHighlights>
73 AutocompleteAddressHighlights& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
75
77
81 inline const RegionHighlights& GetRegion() const { return m_region; }
82 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
83 template<typename RegionT = RegionHighlights>
84 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
85 template<typename RegionT = RegionHighlights>
86 AutocompleteAddressHighlights& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
88
90
93 inline const SubRegionHighlights& GetSubRegion() const { return m_subRegion; }
94 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
95 template<typename SubRegionT = SubRegionHighlights>
96 void SetSubRegion(SubRegionT&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::forward<SubRegionT>(value); }
97 template<typename SubRegionT = SubRegionHighlights>
98 AutocompleteAddressHighlights& WithSubRegion(SubRegionT&& value) { SetSubRegion(std::forward<SubRegionT>(value)); return *this;}
100
102
106 inline const Aws::Vector<Highlight>& GetLocality() const { return m_locality; }
107 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
108 template<typename LocalityT = Aws::Vector<Highlight>>
109 void SetLocality(LocalityT&& value) { m_localityHasBeenSet = true; m_locality = std::forward<LocalityT>(value); }
110 template<typename LocalityT = Aws::Vector<Highlight>>
111 AutocompleteAddressHighlights& WithLocality(LocalityT&& value) { SetLocality(std::forward<LocalityT>(value)); return *this;}
112 template<typename LocalityT = Highlight>
113 AutocompleteAddressHighlights& AddLocality(LocalityT&& value) { m_localityHasBeenSet = true; m_locality.emplace_back(std::forward<LocalityT>(value)); return *this; }
115
117
120 inline const Aws::Vector<Highlight>& GetDistrict() const { return m_district; }
121 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
122 template<typename DistrictT = Aws::Vector<Highlight>>
123 void SetDistrict(DistrictT&& value) { m_districtHasBeenSet = true; m_district = std::forward<DistrictT>(value); }
124 template<typename DistrictT = Aws::Vector<Highlight>>
125 AutocompleteAddressHighlights& WithDistrict(DistrictT&& value) { SetDistrict(std::forward<DistrictT>(value)); return *this;}
126 template<typename DistrictT = Highlight>
127 AutocompleteAddressHighlights& AddDistrict(DistrictT&& value) { m_districtHasBeenSet = true; m_district.emplace_back(std::forward<DistrictT>(value)); return *this; }
129
131
135 inline const Aws::Vector<Highlight>& GetSubDistrict() const { return m_subDistrict; }
136 inline bool SubDistrictHasBeenSet() const { return m_subDistrictHasBeenSet; }
137 template<typename SubDistrictT = Aws::Vector<Highlight>>
138 void SetSubDistrict(SubDistrictT&& value) { m_subDistrictHasBeenSet = true; m_subDistrict = std::forward<SubDistrictT>(value); }
139 template<typename SubDistrictT = Aws::Vector<Highlight>>
140 AutocompleteAddressHighlights& WithSubDistrict(SubDistrictT&& value) { SetSubDistrict(std::forward<SubDistrictT>(value)); return *this;}
141 template<typename SubDistrictT = Highlight>
142 AutocompleteAddressHighlights& AddSubDistrict(SubDistrictT&& value) { m_subDistrictHasBeenSet = true; m_subDistrict.emplace_back(std::forward<SubDistrictT>(value)); return *this; }
144
146
149 inline const Aws::Vector<Highlight>& GetStreet() const { return m_street; }
150 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
151 template<typename StreetT = Aws::Vector<Highlight>>
152 void SetStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street = std::forward<StreetT>(value); }
153 template<typename StreetT = Aws::Vector<Highlight>>
154 AutocompleteAddressHighlights& WithStreet(StreetT&& value) { SetStreet(std::forward<StreetT>(value)); return *this;}
155 template<typename StreetT = Highlight>
156 AutocompleteAddressHighlights& AddStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street.emplace_back(std::forward<StreetT>(value)); return *this; }
158
160
164 inline const Aws::Vector<Highlight>& GetBlock() const { return m_block; }
165 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
166 template<typename BlockT = Aws::Vector<Highlight>>
167 void SetBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
168 template<typename BlockT = Aws::Vector<Highlight>>
169 AutocompleteAddressHighlights& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
170 template<typename BlockT = Highlight>
171 AutocompleteAddressHighlights& AddBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block.emplace_back(std::forward<BlockT>(value)); return *this; }
173
175
179 inline const Aws::Vector<Highlight>& GetSubBlock() const { return m_subBlock; }
180 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
181 template<typename SubBlockT = Aws::Vector<Highlight>>
182 void SetSubBlock(SubBlockT&& value) { m_subBlockHasBeenSet = true; m_subBlock = std::forward<SubBlockT>(value); }
183 template<typename SubBlockT = Aws::Vector<Highlight>>
184 AutocompleteAddressHighlights& WithSubBlock(SubBlockT&& value) { SetSubBlock(std::forward<SubBlockT>(value)); return *this;}
185 template<typename SubBlockT = Highlight>
186 AutocompleteAddressHighlights& AddSubBlock(SubBlockT&& value) { m_subBlockHasBeenSet = true; m_subBlock.emplace_back(std::forward<SubBlockT>(value)); return *this; }
188
190
194 inline const Aws::Vector<Aws::Vector<Highlight>>& GetIntersection() const { return m_intersection; }
195 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
196 template<typename IntersectionT = Aws::Vector<Aws::Vector<Highlight>>>
197 void SetIntersection(IntersectionT&& value) { m_intersectionHasBeenSet = true; m_intersection = std::forward<IntersectionT>(value); }
198 template<typename IntersectionT = Aws::Vector<Aws::Vector<Highlight>>>
199 AutocompleteAddressHighlights& WithIntersection(IntersectionT&& value) { SetIntersection(std::forward<IntersectionT>(value)); return *this;}
200 template<typename IntersectionT = Aws::Vector<Highlight>>
201 AutocompleteAddressHighlights& AddIntersection(IntersectionT&& value) { m_intersectionHasBeenSet = true; m_intersection.emplace_back(std::forward<IntersectionT>(value)); return *this; }
203
205
210 inline const Aws::Vector<Highlight>& GetPostalCode() const { return m_postalCode; }
211 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
212 template<typename PostalCodeT = Aws::Vector<Highlight>>
213 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
214 template<typename PostalCodeT = Aws::Vector<Highlight>>
215 AutocompleteAddressHighlights& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
216 template<typename PostalCodeT = Highlight>
217 AutocompleteAddressHighlights& AddPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode.emplace_back(std::forward<PostalCodeT>(value)); return *this; }
219
221
224 inline const Aws::Vector<Highlight>& GetAddressNumber() const { return m_addressNumber; }
225 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
226 template<typename AddressNumberT = Aws::Vector<Highlight>>
227 void SetAddressNumber(AddressNumberT&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::forward<AddressNumberT>(value); }
228 template<typename AddressNumberT = Aws::Vector<Highlight>>
229 AutocompleteAddressHighlights& WithAddressNumber(AddressNumberT&& value) { SetAddressNumber(std::forward<AddressNumberT>(value)); return *this;}
230 template<typename AddressNumberT = Highlight>
231 AutocompleteAddressHighlights& AddAddressNumber(AddressNumberT&& value) { m_addressNumberHasBeenSet = true; m_addressNumber.emplace_back(std::forward<AddressNumberT>(value)); return *this; }
233
235
238 inline const Aws::Vector<Highlight>& GetBuilding() const { return m_building; }
239 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
240 template<typename BuildingT = Aws::Vector<Highlight>>
241 void SetBuilding(BuildingT&& value) { m_buildingHasBeenSet = true; m_building = std::forward<BuildingT>(value); }
242 template<typename BuildingT = Aws::Vector<Highlight>>
243 AutocompleteAddressHighlights& WithBuilding(BuildingT&& value) { SetBuilding(std::forward<BuildingT>(value)); return *this;}
244 template<typename BuildingT = Highlight>
245 AutocompleteAddressHighlights& AddBuilding(BuildingT&& value) { m_buildingHasBeenSet = true; m_building.emplace_back(std::forward<BuildingT>(value)); return *this; }
247 private:
248
250 bool m_labelHasBeenSet = false;
251
252 CountryHighlights m_country;
253 bool m_countryHasBeenSet = false;
254
255 RegionHighlights m_region;
256 bool m_regionHasBeenSet = false;
257
258 SubRegionHighlights m_subRegion;
259 bool m_subRegionHasBeenSet = false;
260
261 Aws::Vector<Highlight> m_locality;
262 bool m_localityHasBeenSet = false;
263
264 Aws::Vector<Highlight> m_district;
265 bool m_districtHasBeenSet = false;
266
267 Aws::Vector<Highlight> m_subDistrict;
268 bool m_subDistrictHasBeenSet = false;
269
270 Aws::Vector<Highlight> m_street;
271 bool m_streetHasBeenSet = false;
272
274 bool m_blockHasBeenSet = false;
275
276 Aws::Vector<Highlight> m_subBlock;
277 bool m_subBlockHasBeenSet = false;
278
280 bool m_intersectionHasBeenSet = false;
281
282 Aws::Vector<Highlight> m_postalCode;
283 bool m_postalCodeHasBeenSet = false;
284
285 Aws::Vector<Highlight> m_addressNumber;
286 bool m_addressNumberHasBeenSet = false;
287
288 Aws::Vector<Highlight> m_building;
289 bool m_buildingHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace GeoPlaces
294} // 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