AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLabel(const Aws::Vector<Highlight>& value) { m_labelHasBeenSet = true; m_label = value; }
56 inline void SetLabel(Aws::Vector<Highlight>&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
57 inline AutocompleteAddressHighlights& WithLabel(const Aws::Vector<Highlight>& value) { SetLabel(value); return *this;}
58 inline AutocompleteAddressHighlights& WithLabel(Aws::Vector<Highlight>&& value) { SetLabel(std::move(value)); return *this;}
59 inline AutocompleteAddressHighlights& AddLabel(const Highlight& value) { m_labelHasBeenSet = true; m_label.push_back(value); return *this; }
60 inline AutocompleteAddressHighlights& AddLabel(Highlight&& value) { m_labelHasBeenSet = true; m_label.push_back(std::move(value)); return *this; }
62
64
68 inline const CountryHighlights& GetCountry() const{ return m_country; }
69 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
70 inline void SetCountry(const CountryHighlights& value) { m_countryHasBeenSet = true; m_country = value; }
71 inline void SetCountry(CountryHighlights&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
72 inline AutocompleteAddressHighlights& WithCountry(const CountryHighlights& value) { SetCountry(value); return *this;}
73 inline AutocompleteAddressHighlights& WithCountry(CountryHighlights&& value) { SetCountry(std::move(value)); return *this;}
75
77
81 inline const RegionHighlights& GetRegion() const{ return m_region; }
82 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
83 inline void SetRegion(const RegionHighlights& value) { m_regionHasBeenSet = true; m_region = value; }
84 inline void SetRegion(RegionHighlights&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
85 inline AutocompleteAddressHighlights& WithRegion(const RegionHighlights& value) { SetRegion(value); return *this;}
86 inline AutocompleteAddressHighlights& WithRegion(RegionHighlights&& value) { SetRegion(std::move(value)); return *this;}
88
90
93 inline const SubRegionHighlights& GetSubRegion() const{ return m_subRegion; }
94 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
95 inline void SetSubRegion(const SubRegionHighlights& value) { m_subRegionHasBeenSet = true; m_subRegion = value; }
96 inline void SetSubRegion(SubRegionHighlights&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::move(value); }
97 inline AutocompleteAddressHighlights& WithSubRegion(const SubRegionHighlights& value) { SetSubRegion(value); return *this;}
98 inline AutocompleteAddressHighlights& WithSubRegion(SubRegionHighlights&& value) { SetSubRegion(std::move(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 inline void SetLocality(const Aws::Vector<Highlight>& value) { m_localityHasBeenSet = true; m_locality = value; }
109 inline void SetLocality(Aws::Vector<Highlight>&& value) { m_localityHasBeenSet = true; m_locality = std::move(value); }
111 inline AutocompleteAddressHighlights& WithLocality(Aws::Vector<Highlight>&& value) { SetLocality(std::move(value)); return *this;}
112 inline AutocompleteAddressHighlights& AddLocality(const Highlight& value) { m_localityHasBeenSet = true; m_locality.push_back(value); return *this; }
113 inline AutocompleteAddressHighlights& AddLocality(Highlight&& value) { m_localityHasBeenSet = true; m_locality.push_back(std::move(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 inline void SetDistrict(const Aws::Vector<Highlight>& value) { m_districtHasBeenSet = true; m_district = value; }
123 inline void SetDistrict(Aws::Vector<Highlight>&& value) { m_districtHasBeenSet = true; m_district = std::move(value); }
125 inline AutocompleteAddressHighlights& WithDistrict(Aws::Vector<Highlight>&& value) { SetDistrict(std::move(value)); return *this;}
126 inline AutocompleteAddressHighlights& AddDistrict(const Highlight& value) { m_districtHasBeenSet = true; m_district.push_back(value); return *this; }
127 inline AutocompleteAddressHighlights& AddDistrict(Highlight&& value) { m_districtHasBeenSet = true; m_district.push_back(std::move(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 inline void SetSubDistrict(const Aws::Vector<Highlight>& value) { m_subDistrictHasBeenSet = true; m_subDistrict = value; }
138 inline void SetSubDistrict(Aws::Vector<Highlight>&& value) { m_subDistrictHasBeenSet = true; m_subDistrict = std::move(value); }
140 inline AutocompleteAddressHighlights& WithSubDistrict(Aws::Vector<Highlight>&& value) { SetSubDistrict(std::move(value)); return *this;}
141 inline AutocompleteAddressHighlights& AddSubDistrict(const Highlight& value) { m_subDistrictHasBeenSet = true; m_subDistrict.push_back(value); return *this; }
142 inline AutocompleteAddressHighlights& AddSubDistrict(Highlight&& value) { m_subDistrictHasBeenSet = true; m_subDistrict.push_back(std::move(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 inline void SetStreet(const Aws::Vector<Highlight>& value) { m_streetHasBeenSet = true; m_street = value; }
152 inline void SetStreet(Aws::Vector<Highlight>&& value) { m_streetHasBeenSet = true; m_street = std::move(value); }
153 inline AutocompleteAddressHighlights& WithStreet(const Aws::Vector<Highlight>& value) { SetStreet(value); return *this;}
154 inline AutocompleteAddressHighlights& WithStreet(Aws::Vector<Highlight>&& value) { SetStreet(std::move(value)); return *this;}
155 inline AutocompleteAddressHighlights& AddStreet(const Highlight& value) { m_streetHasBeenSet = true; m_street.push_back(value); return *this; }
156 inline AutocompleteAddressHighlights& AddStreet(Highlight&& value) { m_streetHasBeenSet = true; m_street.push_back(std::move(value)); return *this; }
158
160
163 inline const Aws::Vector<Highlight>& GetBlock() const{ return m_block; }
164 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
165 inline void SetBlock(const Aws::Vector<Highlight>& value) { m_blockHasBeenSet = true; m_block = value; }
166 inline void SetBlock(Aws::Vector<Highlight>&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
167 inline AutocompleteAddressHighlights& WithBlock(const Aws::Vector<Highlight>& value) { SetBlock(value); return *this;}
168 inline AutocompleteAddressHighlights& WithBlock(Aws::Vector<Highlight>&& value) { SetBlock(std::move(value)); return *this;}
169 inline AutocompleteAddressHighlights& AddBlock(const Highlight& value) { m_blockHasBeenSet = true; m_block.push_back(value); return *this; }
170 inline AutocompleteAddressHighlights& AddBlock(Highlight&& value) { m_blockHasBeenSet = true; m_block.push_back(std::move(value)); return *this; }
172
174
177 inline const Aws::Vector<Highlight>& GetSubBlock() const{ return m_subBlock; }
178 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
179 inline void SetSubBlock(const Aws::Vector<Highlight>& value) { m_subBlockHasBeenSet = true; m_subBlock = value; }
180 inline void SetSubBlock(Aws::Vector<Highlight>&& value) { m_subBlockHasBeenSet = true; m_subBlock = std::move(value); }
182 inline AutocompleteAddressHighlights& WithSubBlock(Aws::Vector<Highlight>&& value) { SetSubBlock(std::move(value)); return *this;}
183 inline AutocompleteAddressHighlights& AddSubBlock(const Highlight& value) { m_subBlockHasBeenSet = true; m_subBlock.push_back(value); return *this; }
184 inline AutocompleteAddressHighlights& AddSubBlock(Highlight&& value) { m_subBlockHasBeenSet = true; m_subBlock.push_back(std::move(value)); return *this; }
186
188
192 inline const Aws::Vector<Aws::Vector<Highlight>>& GetIntersection() const{ return m_intersection; }
193 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
194 inline void SetIntersection(const Aws::Vector<Aws::Vector<Highlight>>& value) { m_intersectionHasBeenSet = true; m_intersection = value; }
195 inline void SetIntersection(Aws::Vector<Aws::Vector<Highlight>>&& value) { m_intersectionHasBeenSet = true; m_intersection = std::move(value); }
198 inline AutocompleteAddressHighlights& AddIntersection(const Aws::Vector<Highlight>& value) { m_intersectionHasBeenSet = true; m_intersection.push_back(value); return *this; }
199 inline AutocompleteAddressHighlights& AddIntersection(Aws::Vector<Highlight>&& value) { m_intersectionHasBeenSet = true; m_intersection.push_back(std::move(value)); return *this; }
201
203
208 inline const Aws::Vector<Highlight>& GetPostalCode() const{ return m_postalCode; }
209 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
210 inline void SetPostalCode(const Aws::Vector<Highlight>& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
211 inline void SetPostalCode(Aws::Vector<Highlight>&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
213 inline AutocompleteAddressHighlights& WithPostalCode(Aws::Vector<Highlight>&& value) { SetPostalCode(std::move(value)); return *this;}
214 inline AutocompleteAddressHighlights& AddPostalCode(const Highlight& value) { m_postalCodeHasBeenSet = true; m_postalCode.push_back(value); return *this; }
215 inline AutocompleteAddressHighlights& AddPostalCode(Highlight&& value) { m_postalCodeHasBeenSet = true; m_postalCode.push_back(std::move(value)); return *this; }
217
219
222 inline const Aws::Vector<Highlight>& GetAddressNumber() const{ return m_addressNumber; }
223 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
224 inline void SetAddressNumber(const Aws::Vector<Highlight>& value) { m_addressNumberHasBeenSet = true; m_addressNumber = value; }
225 inline void SetAddressNumber(Aws::Vector<Highlight>&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::move(value); }
228 inline AutocompleteAddressHighlights& AddAddressNumber(const Highlight& value) { m_addressNumberHasBeenSet = true; m_addressNumber.push_back(value); return *this; }
229 inline AutocompleteAddressHighlights& AddAddressNumber(Highlight&& value) { m_addressNumberHasBeenSet = true; m_addressNumber.push_back(std::move(value)); return *this; }
231
233
236 inline const Aws::Vector<Highlight>& GetBuilding() const{ return m_building; }
237 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
238 inline void SetBuilding(const Aws::Vector<Highlight>& value) { m_buildingHasBeenSet = true; m_building = value; }
239 inline void SetBuilding(Aws::Vector<Highlight>&& value) { m_buildingHasBeenSet = true; m_building = std::move(value); }
241 inline AutocompleteAddressHighlights& WithBuilding(Aws::Vector<Highlight>&& value) { SetBuilding(std::move(value)); return *this;}
242 inline AutocompleteAddressHighlights& AddBuilding(const Highlight& value) { m_buildingHasBeenSet = true; m_building.push_back(value); return *this; }
243 inline AutocompleteAddressHighlights& AddBuilding(Highlight&& value) { m_buildingHasBeenSet = true; m_building.push_back(std::move(value)); return *this; }
245 private:
246
248 bool m_labelHasBeenSet = false;
249
250 CountryHighlights m_country;
251 bool m_countryHasBeenSet = false;
252
253 RegionHighlights m_region;
254 bool m_regionHasBeenSet = false;
255
256 SubRegionHighlights m_subRegion;
257 bool m_subRegionHasBeenSet = false;
258
259 Aws::Vector<Highlight> m_locality;
260 bool m_localityHasBeenSet = false;
261
262 Aws::Vector<Highlight> m_district;
263 bool m_districtHasBeenSet = false;
264
265 Aws::Vector<Highlight> m_subDistrict;
266 bool m_subDistrictHasBeenSet = false;
267
268 Aws::Vector<Highlight> m_street;
269 bool m_streetHasBeenSet = false;
270
272 bool m_blockHasBeenSet = false;
273
274 Aws::Vector<Highlight> m_subBlock;
275 bool m_subBlockHasBeenSet = false;
276
278 bool m_intersectionHasBeenSet = false;
279
280 Aws::Vector<Highlight> m_postalCode;
281 bool m_postalCodeHasBeenSet = false;
282
283 Aws::Vector<Highlight> m_addressNumber;
284 bool m_addressNumberHasBeenSet = false;
285
286 Aws::Vector<Highlight> m_building;
287 bool m_buildingHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace GeoPlaces
292} // namespace Aws
AutocompleteAddressHighlights & WithSubDistrict(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & AddLocality(Highlight &&value)
AutocompleteAddressHighlights & AddLabel(const Highlight &value)
AutocompleteAddressHighlights & AddBuilding(const Highlight &value)
AutocompleteAddressHighlights & WithBlock(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & WithAddressNumber(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & WithBlock(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & WithSubRegion(SubRegionHighlights &&value)
void SetIntersection(const Aws::Vector< Aws::Vector< Highlight > > &value)
AutocompleteAddressHighlights & AddSubDistrict(const Highlight &value)
AutocompleteAddressHighlights & AddSubBlock(Highlight &&value)
AutocompleteAddressHighlights & WithRegion(const RegionHighlights &value)
AutocompleteAddressHighlights & WithPostalCode(Aws::Vector< Highlight > &&value)
void SetPostalCode(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & AddPostalCode(const Highlight &value)
AutocompleteAddressHighlights & WithCountry(const CountryHighlights &value)
AutocompleteAddressHighlights & AddLabel(Highlight &&value)
AutocompleteAddressHighlights & WithPostalCode(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & WithStreet(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & WithLabel(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & WithSubBlock(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & AddPostalCode(Highlight &&value)
AWS_GEOPLACES_API AutocompleteAddressHighlights & operator=(Aws::Utils::Json::JsonView jsonValue)
AutocompleteAddressHighlights & WithBuilding(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & WithRegion(RegionHighlights &&value)
AutocompleteAddressHighlights & AddAddressNumber(const Highlight &value)
void SetIntersection(Aws::Vector< Aws::Vector< Highlight > > &&value)
AutocompleteAddressHighlights & WithSubDistrict(const Aws::Vector< Highlight > &value)
void SetSubDistrict(const Aws::Vector< Highlight > &value)
const Aws::Vector< Aws::Vector< Highlight > > & GetIntersection() const
AutocompleteAddressHighlights & AddIntersection(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & WithAddressNumber(Aws::Vector< Highlight > &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AutocompleteAddressHighlights & WithStreet(const Aws::Vector< Highlight > &value)
AWS_GEOPLACES_API AutocompleteAddressHighlights(Aws::Utils::Json::JsonView jsonValue)
AutocompleteAddressHighlights & WithIntersection(const Aws::Vector< Aws::Vector< Highlight > > &value)
AutocompleteAddressHighlights & AddStreet(Highlight &&value)
AutocompleteAddressHighlights & WithSubBlock(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & AddBuilding(Highlight &&value)
AutocompleteAddressHighlights & WithBuilding(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & AddLocality(const Highlight &value)
void SetAddressNumber(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & AddAddressNumber(Highlight &&value)
AutocompleteAddressHighlights & WithDistrict(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & AddDistrict(Highlight &&value)
AutocompleteAddressHighlights & WithLocality(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & WithLocality(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & WithLabel(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & AddSubDistrict(Highlight &&value)
AutocompleteAddressHighlights & AddBlock(Highlight &&value)
AutocompleteAddressHighlights & AddSubBlock(const Highlight &value)
AutocompleteAddressHighlights & AddDistrict(const Highlight &value)
AutocompleteAddressHighlights & WithCountry(CountryHighlights &&value)
AutocompleteAddressHighlights & WithIntersection(Aws::Vector< Aws::Vector< Highlight > > &&value)
AutocompleteAddressHighlights & AddStreet(const Highlight &value)
AutocompleteAddressHighlights & AddIntersection(const Aws::Vector< Highlight > &value)
AutocompleteAddressHighlights & WithDistrict(Aws::Vector< Highlight > &&value)
AutocompleteAddressHighlights & WithSubRegion(const SubRegionHighlights &value)
AutocompleteAddressHighlights & AddBlock(const Highlight &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue