AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
195 inline const Aws::String& GetBlock() const { return m_block; }
196 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
197 template <typename BlockT = Aws::String>
198 void SetBlock(BlockT&& value) {
199 m_blockHasBeenSet = true;
200 m_block = std::forward<BlockT>(value);
201 }
202 template <typename BlockT = Aws::String>
203 Address& WithBlock(BlockT&& value) {
204 SetBlock(std::forward<BlockT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetSubBlock() const { return m_subBlock; }
215 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
216 template <typename SubBlockT = Aws::String>
217 void SetSubBlock(SubBlockT&& value) {
218 m_subBlockHasBeenSet = true;
219 m_subBlock = std::forward<SubBlockT>(value);
220 }
221 template <typename SubBlockT = Aws::String>
222 Address& WithSubBlock(SubBlockT&& value) {
223 SetSubBlock(std::forward<SubBlockT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::Vector<Aws::String>& GetIntersection() const { return m_intersection; }
234 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
235 template <typename IntersectionT = Aws::Vector<Aws::String>>
236 void SetIntersection(IntersectionT&& value) {
237 m_intersectionHasBeenSet = true;
238 m_intersection = std::forward<IntersectionT>(value);
239 }
240 template <typename IntersectionT = Aws::Vector<Aws::String>>
241 Address& WithIntersection(IntersectionT&& value) {
242 SetIntersection(std::forward<IntersectionT>(value));
243 return *this;
244 }
245 template <typename IntersectionT = Aws::String>
246 Address& AddIntersection(IntersectionT&& value) {
247 m_intersectionHasBeenSet = true;
248 m_intersection.emplace_back(std::forward<IntersectionT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetStreet() const { return m_street; }
258 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
259 template <typename StreetT = Aws::String>
260 void SetStreet(StreetT&& value) {
261 m_streetHasBeenSet = true;
262 m_street = std::forward<StreetT>(value);
263 }
264 template <typename StreetT = Aws::String>
265 Address& WithStreet(StreetT&& value) {
266 SetStreet(std::forward<StreetT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::Vector<StreetComponents>& GetStreetComponents() const { return m_streetComponents; }
277 inline bool StreetComponentsHasBeenSet() const { return m_streetComponentsHasBeenSet; }
278 template <typename StreetComponentsT = Aws::Vector<StreetComponents>>
279 void SetStreetComponents(StreetComponentsT&& value) {
280 m_streetComponentsHasBeenSet = true;
281 m_streetComponents = std::forward<StreetComponentsT>(value);
282 }
283 template <typename StreetComponentsT = Aws::Vector<StreetComponents>>
284 Address& WithStreetComponents(StreetComponentsT&& value) {
285 SetStreetComponents(std::forward<StreetComponentsT>(value));
286 return *this;
287 }
288 template <typename StreetComponentsT = StreetComponents>
289 Address& AddStreetComponents(StreetComponentsT&& value) {
290 m_streetComponentsHasBeenSet = true;
291 m_streetComponents.emplace_back(std::forward<StreetComponentsT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
301 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
302 template <typename AddressNumberT = Aws::String>
303 void SetAddressNumber(AddressNumberT&& value) {
304 m_addressNumberHasBeenSet = true;
305 m_addressNumber = std::forward<AddressNumberT>(value);
306 }
307 template <typename AddressNumberT = Aws::String>
308 Address& WithAddressNumber(AddressNumberT&& value) {
309 SetAddressNumber(std::forward<AddressNumberT>(value));
310 return *this;
311 }
313
315
318 inline const Aws::String& GetBuilding() const { return m_building; }
319 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
320 template <typename BuildingT = Aws::String>
321 void SetBuilding(BuildingT&& value) {
322 m_buildingHasBeenSet = true;
323 m_building = std::forward<BuildingT>(value);
324 }
325 template <typename BuildingT = Aws::String>
326 Address& WithBuilding(BuildingT&& value) {
327 SetBuilding(std::forward<BuildingT>(value));
328 return *this;
329 }
331
333
338 inline const Aws::Vector<SecondaryAddressComponent>& GetSecondaryAddressComponents() const { return m_secondaryAddressComponents; }
339 inline bool SecondaryAddressComponentsHasBeenSet() const { return m_secondaryAddressComponentsHasBeenSet; }
340 template <typename SecondaryAddressComponentsT = Aws::Vector<SecondaryAddressComponent>>
341 void SetSecondaryAddressComponents(SecondaryAddressComponentsT&& value) {
342 m_secondaryAddressComponentsHasBeenSet = true;
343 m_secondaryAddressComponents = std::forward<SecondaryAddressComponentsT>(value);
344 }
345 template <typename SecondaryAddressComponentsT = Aws::Vector<SecondaryAddressComponent>>
346 Address& WithSecondaryAddressComponents(SecondaryAddressComponentsT&& value) {
347 SetSecondaryAddressComponents(std::forward<SecondaryAddressComponentsT>(value));
348 return *this;
349 }
350 template <typename SecondaryAddressComponentsT = SecondaryAddressComponent>
351 Address& AddSecondaryAddressComponents(SecondaryAddressComponentsT&& value) {
352 m_secondaryAddressComponentsHasBeenSet = true;
353 m_secondaryAddressComponents.emplace_back(std::forward<SecondaryAddressComponentsT>(value));
354 return *this;
355 }
357 private:
358 Aws::String m_label;
359 bool m_labelHasBeenSet = false;
360
361 Country m_country;
362 bool m_countryHasBeenSet = false;
363
364 Region m_region;
365 bool m_regionHasBeenSet = false;
366
367 SubRegion m_subRegion;
368 bool m_subRegionHasBeenSet = false;
369
370 Aws::String m_locality;
371 bool m_localityHasBeenSet = false;
372
373 Aws::String m_district;
374 bool m_districtHasBeenSet = false;
375
376 Aws::String m_subDistrict;
377 bool m_subDistrictHasBeenSet = false;
378
379 Aws::String m_postalCode;
380 bool m_postalCodeHasBeenSet = false;
381
382 Aws::String m_block;
383 bool m_blockHasBeenSet = false;
384
385 Aws::String m_subBlock;
386 bool m_subBlockHasBeenSet = false;
387
388 Aws::Vector<Aws::String> m_intersection;
389 bool m_intersectionHasBeenSet = false;
390
391 Aws::String m_street;
392 bool m_streetHasBeenSet = false;
393
394 Aws::Vector<StreetComponents> m_streetComponents;
395 bool m_streetComponentsHasBeenSet = false;
396
397 Aws::String m_addressNumber;
398 bool m_addressNumberHasBeenSet = false;
399
400 Aws::String m_building;
401 bool m_buildingHasBeenSet = false;
402
403 Aws::Vector<SecondaryAddressComponent> m_secondaryAddressComponents;
404 bool m_secondaryAddressComponentsHasBeenSet = false;
405};
406
407} // namespace Model
408} // namespace GeoPlaces
409} // 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:246
Address & WithDistrict(DistrictT &&value)
Definition Address.h:145
Address & WithStreet(StreetT &&value)
Definition Address.h:265
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:184
bool CountryHasBeenSet() const
Definition Address.h:64
Address & AddStreetComponents(StreetComponentsT &&value)
Definition Address.h:289
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:276
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:279
Address & WithRegion(RegionT &&value)
Definition Address.h:90
const Aws::Vector< SecondaryAddressComponent > & GetSecondaryAddressComponents() const
Definition Address.h:338
const Aws::String & GetLocality() const
Definition Address.h:119
Address & WithLocality(LocalityT &&value)
Definition Address.h:127
Address & WithSubBlock(SubBlockT &&value)
Definition Address.h:222
Address & WithBuilding(BuildingT &&value)
Definition Address.h:326
const Aws::Vector< Aws::String > & GetIntersection() const
Definition Address.h:233
bool SubDistrictHasBeenSet() const
Definition Address.h:157
const Aws::String & GetStreet() const
Definition Address.h:257
void SetSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:341
const Aws::String & GetAddressNumber() const
Definition Address.h:300
Address & WithSubRegion(SubRegionT &&value)
Definition Address.h:108
Address & WithAddressNumber(AddressNumberT &&value)
Definition Address.h:308
Address & WithSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:346
bool StreetComponentsHasBeenSet() const
Definition Address.h:277
void SetSubBlock(SubBlockT &&value)
Definition Address.h:217
void SetStreet(StreetT &&value)
Definition Address.h:260
const Aws::String & GetSubBlock() const
Definition Address.h:214
void SetSubRegion(SubRegionT &&value)
Definition Address.h:103
const Region & GetRegion() const
Definition Address.h:82
void SetBlock(BlockT &&value)
Definition Address.h:198
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:351
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:195
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:203
Address & WithSubDistrict(SubDistrictT &&value)
Definition Address.h:164
bool SubRegionHasBeenSet() const
Definition Address.h:101
bool BuildingHasBeenSet() const
Definition Address.h:319
Address & WithStreetComponents(StreetComponentsT &&value)
Definition Address.h:284
bool SecondaryAddressComponentsHasBeenSet() const
Definition Address.h:339
bool PostalCodeHasBeenSet() const
Definition Address.h:177
void SetIntersection(IntersectionT &&value)
Definition Address.h:236
void SetSubDistrict(SubDistrictT &&value)
Definition Address.h:159
const Aws::String & GetBuilding() const
Definition Address.h:318
void SetBuilding(BuildingT &&value)
Definition Address.h:321
Address & WithIntersection(IntersectionT &&value)
Definition Address.h:241
bool IntersectionHasBeenSet() const
Definition Address.h:234
const SubRegion & GetSubRegion() const
Definition Address.h:100
bool SubBlockHasBeenSet() const
Definition Address.h:215
void SetAddressNumber(AddressNumberT &&value)
Definition Address.h:303
bool AddressNumberHasBeenSet() const
Definition Address.h:301
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue