AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/Country.h>
11#include <aws/geo-places/model/Region.h>
12#include <aws/geo-places/model/SecondaryAddressComponent.h>
13#include <aws/geo-places/model/StreetComponents.h>
14#include <aws/geo-places/model/SubRegion.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoPlaces {
26namespace Model {
27
33class Address {
34 public:
35 AWS_GEOPLACES_API Address() = default;
36 AWS_GEOPLACES_API Address(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetLabel() const { return m_label; }
46 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
47 template <typename LabelT = Aws::String>
48 void SetLabel(LabelT&& value) {
49 m_labelHasBeenSet = true;
50 m_label = std::forward<LabelT>(value);
51 }
52 template <typename LabelT = Aws::String>
53 Address& WithLabel(LabelT&& value) {
54 SetLabel(std::forward<LabelT>(value));
55 return *this;
56 }
58
60
63 inline const Country& GetCountry() const { return m_country; }
64 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
65 template <typename CountryT = Country>
66 void SetCountry(CountryT&& value) {
67 m_countryHasBeenSet = true;
68 m_country = std::forward<CountryT>(value);
69 }
70 template <typename CountryT = Country>
71 Address& WithCountry(CountryT&& value) {
72 SetCountry(std::forward<CountryT>(value));
73 return *this;
74 }
76
78
82 inline const Region& GetRegion() const { return m_region; }
83 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
84 template <typename RegionT = Region>
85 void SetRegion(RegionT&& value) {
86 m_regionHasBeenSet = true;
87 m_region = std::forward<RegionT>(value);
88 }
89 template <typename RegionT = Region>
90 Address& WithRegion(RegionT&& value) {
91 SetRegion(std::forward<RegionT>(value));
92 return *this;
93 }
95
97
100 inline const SubRegion& GetSubRegion() const { return m_subRegion; }
101 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
102 template <typename SubRegionT = SubRegion>
103 void SetSubRegion(SubRegionT&& value) {
104 m_subRegionHasBeenSet = true;
105 m_subRegion = std::forward<SubRegionT>(value);
106 }
107 template <typename SubRegionT = SubRegion>
108 Address& WithSubRegion(SubRegionT&& value) {
109 SetSubRegion(std::forward<SubRegionT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetLocality() const { return m_locality; }
120 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
121 template <typename LocalityT = Aws::String>
122 void SetLocality(LocalityT&& value) {
123 m_localityHasBeenSet = true;
124 m_locality = std::forward<LocalityT>(value);
125 }
126 template <typename LocalityT = Aws::String>
127 Address& WithLocality(LocalityT&& value) {
128 SetLocality(std::forward<LocalityT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetDistrict() const { return m_district; }
138 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
139 template <typename DistrictT = Aws::String>
140 void SetDistrict(DistrictT&& value) {
141 m_districtHasBeenSet = true;
142 m_district = std::forward<DistrictT>(value);
143 }
144 template <typename DistrictT = Aws::String>
145 Address& WithDistrict(DistrictT&& value) {
146 SetDistrict(std::forward<DistrictT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::String& GetSubDistrict() const { return m_subDistrict; }
157 inline bool SubDistrictHasBeenSet() const { return m_subDistrictHasBeenSet; }
158 template <typename SubDistrictT = Aws::String>
159 void SetSubDistrict(SubDistrictT&& value) {
160 m_subDistrictHasBeenSet = true;
161 m_subDistrict = std::forward<SubDistrictT>(value);
162 }
163 template <typename SubDistrictT = Aws::String>
164 Address& WithSubDistrict(SubDistrictT&& value) {
165 SetSubDistrict(std::forward<SubDistrictT>(value));
166 return *this;
167 }
169
171
176 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
177 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
178 template <typename PostalCodeT = Aws::String>
179 void SetPostalCode(PostalCodeT&& value) {
180 m_postalCodeHasBeenSet = true;
181 m_postalCode = std::forward<PostalCodeT>(value);
182 }
183 template <typename PostalCodeT = Aws::String>
184 Address& WithPostalCode(PostalCodeT&& value) {
185 SetPostalCode(std::forward<PostalCodeT>(value));
186 return *this;
187 }
189
191
197 inline const Aws::String& GetBlock() const { return m_block; }
198 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
199 template <typename BlockT = Aws::String>
200 void SetBlock(BlockT&& value) {
201 m_blockHasBeenSet = true;
202 m_block = std::forward<BlockT>(value);
203 }
204 template <typename BlockT = Aws::String>
205 Address& WithBlock(BlockT&& value) {
206 SetBlock(std::forward<BlockT>(value));
207 return *this;
208 }
210
212
218 inline const Aws::String& GetSubBlock() const { return m_subBlock; }
219 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
220 template <typename SubBlockT = Aws::String>
221 void SetSubBlock(SubBlockT&& value) {
222 m_subBlockHasBeenSet = true;
223 m_subBlock = std::forward<SubBlockT>(value);
224 }
225 template <typename SubBlockT = Aws::String>
226 Address& WithSubBlock(SubBlockT&& value) {
227 SetSubBlock(std::forward<SubBlockT>(value));
228 return *this;
229 }
231
233
240 inline const Aws::Vector<Aws::String>& GetIntersection() const { return m_intersection; }
241 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
242 template <typename IntersectionT = Aws::Vector<Aws::String>>
243 void SetIntersection(IntersectionT&& value) {
244 m_intersectionHasBeenSet = true;
245 m_intersection = std::forward<IntersectionT>(value);
246 }
247 template <typename IntersectionT = Aws::Vector<Aws::String>>
248 Address& WithIntersection(IntersectionT&& value) {
249 SetIntersection(std::forward<IntersectionT>(value));
250 return *this;
251 }
252 template <typename IntersectionT = Aws::String>
253 Address& AddIntersection(IntersectionT&& value) {
254 m_intersectionHasBeenSet = true;
255 m_intersection.emplace_back(std::forward<IntersectionT>(value));
256 return *this;
257 }
259
261
264 inline const Aws::String& GetStreet() const { return m_street; }
265 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
266 template <typename StreetT = Aws::String>
267 void SetStreet(StreetT&& value) {
268 m_streetHasBeenSet = true;
269 m_street = std::forward<StreetT>(value);
270 }
271 template <typename StreetT = Aws::String>
272 Address& WithStreet(StreetT&& value) {
273 SetStreet(std::forward<StreetT>(value));
274 return *this;
275 }
277
279
285 inline const Aws::Vector<StreetComponents>& GetStreetComponents() const { return m_streetComponents; }
286 inline bool StreetComponentsHasBeenSet() const { return m_streetComponentsHasBeenSet; }
287 template <typename StreetComponentsT = Aws::Vector<StreetComponents>>
288 void SetStreetComponents(StreetComponentsT&& value) {
289 m_streetComponentsHasBeenSet = true;
290 m_streetComponents = std::forward<StreetComponentsT>(value);
291 }
292 template <typename StreetComponentsT = Aws::Vector<StreetComponents>>
293 Address& WithStreetComponents(StreetComponentsT&& value) {
294 SetStreetComponents(std::forward<StreetComponentsT>(value));
295 return *this;
296 }
297 template <typename StreetComponentsT = StreetComponents>
298 Address& AddStreetComponents(StreetComponentsT&& value) {
299 m_streetComponentsHasBeenSet = true;
300 m_streetComponents.emplace_back(std::forward<StreetComponentsT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
310 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
311 template <typename AddressNumberT = Aws::String>
312 void SetAddressNumber(AddressNumberT&& value) {
313 m_addressNumberHasBeenSet = true;
314 m_addressNumber = std::forward<AddressNumberT>(value);
315 }
316 template <typename AddressNumberT = Aws::String>
317 Address& WithAddressNumber(AddressNumberT&& value) {
318 SetAddressNumber(std::forward<AddressNumberT>(value));
319 return *this;
320 }
322
324
330 inline const Aws::String& GetBuilding() const { return m_building; }
331 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
332 template <typename BuildingT = Aws::String>
333 void SetBuilding(BuildingT&& value) {
334 m_buildingHasBeenSet = true;
335 m_building = std::forward<BuildingT>(value);
336 }
337 template <typename BuildingT = Aws::String>
338 Address& WithBuilding(BuildingT&& value) {
339 SetBuilding(std::forward<BuildingT>(value));
340 return *this;
341 }
343
345
355 inline const Aws::Vector<SecondaryAddressComponent>& GetSecondaryAddressComponents() const { return m_secondaryAddressComponents; }
356 inline bool SecondaryAddressComponentsHasBeenSet() const { return m_secondaryAddressComponentsHasBeenSet; }
357 template <typename SecondaryAddressComponentsT = Aws::Vector<SecondaryAddressComponent>>
358 void SetSecondaryAddressComponents(SecondaryAddressComponentsT&& value) {
359 m_secondaryAddressComponentsHasBeenSet = true;
360 m_secondaryAddressComponents = std::forward<SecondaryAddressComponentsT>(value);
361 }
362 template <typename SecondaryAddressComponentsT = Aws::Vector<SecondaryAddressComponent>>
363 Address& WithSecondaryAddressComponents(SecondaryAddressComponentsT&& value) {
364 SetSecondaryAddressComponents(std::forward<SecondaryAddressComponentsT>(value));
365 return *this;
366 }
367 template <typename SecondaryAddressComponentsT = SecondaryAddressComponent>
368 Address& AddSecondaryAddressComponents(SecondaryAddressComponentsT&& value) {
369 m_secondaryAddressComponentsHasBeenSet = true;
370 m_secondaryAddressComponents.emplace_back(std::forward<SecondaryAddressComponentsT>(value));
371 return *this;
372 }
374 private:
375 Aws::String m_label;
376
377 Country m_country;
378
379 Region m_region;
380
381 SubRegion m_subRegion;
382
383 Aws::String m_locality;
384
385 Aws::String m_district;
386
387 Aws::String m_subDistrict;
388
389 Aws::String m_postalCode;
390
391 Aws::String m_block;
392
393 Aws::String m_subBlock;
394
395 Aws::Vector<Aws::String> m_intersection;
396
397 Aws::String m_street;
398
399 Aws::Vector<StreetComponents> m_streetComponents;
400
401 Aws::String m_addressNumber;
402
403 Aws::String m_building;
404
405 Aws::Vector<SecondaryAddressComponent> m_secondaryAddressComponents;
406 bool m_labelHasBeenSet = false;
407 bool m_countryHasBeenSet = false;
408 bool m_regionHasBeenSet = false;
409 bool m_subRegionHasBeenSet = false;
410 bool m_localityHasBeenSet = false;
411 bool m_districtHasBeenSet = false;
412 bool m_subDistrictHasBeenSet = false;
413 bool m_postalCodeHasBeenSet = false;
414 bool m_blockHasBeenSet = false;
415 bool m_subBlockHasBeenSet = false;
416 bool m_intersectionHasBeenSet = false;
417 bool m_streetHasBeenSet = false;
418 bool m_streetComponentsHasBeenSet = false;
419 bool m_addressNumberHasBeenSet = false;
420 bool m_buildingHasBeenSet = false;
421 bool m_secondaryAddressComponentsHasBeenSet = false;
422};
423
424} // namespace Model
425} // namespace GeoPlaces
426} // namespace Aws
AWS_GEOPLACES_API Address(Aws::Utils::Json::JsonView jsonValue)
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:179
bool DistrictHasBeenSet() const
Definition Address.h:138
const Aws::String & GetLabel() const
Definition Address.h:45
Address & AddIntersection(IntersectionT &&value)
Definition Address.h:253
Address & WithDistrict(DistrictT &&value)
Definition Address.h:145
Address & WithStreet(StreetT &&value)
Definition Address.h:272
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:184
bool CountryHasBeenSet() const
Definition Address.h:64
Address & AddStreetComponents(StreetComponentsT &&value)
Definition Address.h:298
void SetCountry(CountryT &&value)
Definition Address.h:66
bool RegionHasBeenSet() const
Definition Address.h:83
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< StreetComponents > & GetStreetComponents() const
Definition Address.h:285
AWS_GEOPLACES_API Address()=default
void SetRegion(RegionT &&value)
Definition Address.h:85
void SetDistrict(DistrictT &&value)
Definition Address.h:140
const Aws::String & GetDistrict() const
Definition Address.h:137
void SetStreetComponents(StreetComponentsT &&value)
Definition Address.h:288
Address & WithRegion(RegionT &&value)
Definition Address.h:90
const Aws::Vector< SecondaryAddressComponent > & GetSecondaryAddressComponents() const
Definition Address.h:355
const Aws::String & GetLocality() const
Definition Address.h:119
Address & WithLocality(LocalityT &&value)
Definition Address.h:127
Address & WithSubBlock(SubBlockT &&value)
Definition Address.h:226
Address & WithBuilding(BuildingT &&value)
Definition Address.h:338
const Aws::Vector< Aws::String > & GetIntersection() const
Definition Address.h:240
bool SubDistrictHasBeenSet() const
Definition Address.h:157
const Aws::String & GetStreet() const
Definition Address.h:264
void SetSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:358
const Aws::String & GetAddressNumber() const
Definition Address.h:309
Address & WithSubRegion(SubRegionT &&value)
Definition Address.h:108
Address & WithAddressNumber(AddressNumberT &&value)
Definition Address.h:317
Address & WithSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:363
bool StreetComponentsHasBeenSet() const
Definition Address.h:286
void SetSubBlock(SubBlockT &&value)
Definition Address.h:221
void SetStreet(StreetT &&value)
Definition Address.h:267
const Aws::String & GetSubBlock() const
Definition Address.h:218
void SetSubRegion(SubRegionT &&value)
Definition Address.h:103
const Region & GetRegion() const
Definition Address.h:82
void SetBlock(BlockT &&value)
Definition Address.h:200
Address & WithLabel(LabelT &&value)
Definition Address.h:53
void SetLocality(LocalityT &&value)
Definition Address.h:122
AWS_GEOPLACES_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LocalityHasBeenSet() const
Definition Address.h:120
Address & AddSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:368
void SetLabel(LabelT &&value)
Definition Address.h:48
const Aws::String & GetSubDistrict() const
Definition Address.h:156
const Aws::String & GetBlock() const
Definition Address.h:197
const Country & GetCountry() const
Definition Address.h:63
const Aws::String & GetPostalCode() const
Definition Address.h:176
Address & WithCountry(CountryT &&value)
Definition Address.h:71
Address & WithBlock(BlockT &&value)
Definition Address.h:205
Address & WithSubDistrict(SubDistrictT &&value)
Definition Address.h:164
bool SubRegionHasBeenSet() const
Definition Address.h:101
bool BuildingHasBeenSet() const
Definition Address.h:331
Address & WithStreetComponents(StreetComponentsT &&value)
Definition Address.h:293
bool SecondaryAddressComponentsHasBeenSet() const
Definition Address.h:356
bool PostalCodeHasBeenSet() const
Definition Address.h:177
void SetIntersection(IntersectionT &&value)
Definition Address.h:243
void SetSubDistrict(SubDistrictT &&value)
Definition Address.h:159
const Aws::String & GetBuilding() const
Definition Address.h:330
void SetBuilding(BuildingT &&value)
Definition Address.h:333
Address & WithIntersection(IntersectionT &&value)
Definition Address.h:248
bool IntersectionHasBeenSet() const
Definition Address.h:241
const SubRegion & GetSubRegion() const
Definition Address.h:100
bool SubBlockHasBeenSet() const
Definition Address.h:219
void SetAddressNumber(AddressNumberT &&value)
Definition Address.h:312
bool AddressNumberHasBeenSet() const
Definition Address.h:310
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue