AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Address.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-places/model/Country.h>
10#include <aws/geo-places/model/Region.h>
11#include <aws/geo-places/model/SubRegion.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/geo-places/model/StreetComponents.h>
14#include <aws/geo-places/model/SecondaryAddressComponent.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GeoPlaces
28{
29namespace Model
30{
31
37 class Address
38 {
39 public:
40 AWS_GEOPLACES_API Address() = default;
41 AWS_GEOPLACES_API Address(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GEOPLACES_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetLabel() const { return m_label; }
52 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
53 template<typename LabelT = Aws::String>
54 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
55 template<typename LabelT = Aws::String>
56 Address& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
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) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
67 template<typename CountryT = Country>
68 Address& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
70
72
76 inline const Region& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template<typename RegionT = Region>
79 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
80 template<typename RegionT = Region>
81 Address& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
83
85
88 inline const SubRegion& GetSubRegion() const { return m_subRegion; }
89 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
90 template<typename SubRegionT = SubRegion>
91 void SetSubRegion(SubRegionT&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::forward<SubRegionT>(value); }
92 template<typename SubRegionT = SubRegion>
93 Address& WithSubRegion(SubRegionT&& value) { SetSubRegion(std::forward<SubRegionT>(value)); return *this;}
95
97
101 inline const Aws::String& GetLocality() const { return m_locality; }
102 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
103 template<typename LocalityT = Aws::String>
104 void SetLocality(LocalityT&& value) { m_localityHasBeenSet = true; m_locality = std::forward<LocalityT>(value); }
105 template<typename LocalityT = Aws::String>
106 Address& WithLocality(LocalityT&& value) { SetLocality(std::forward<LocalityT>(value)); return *this;}
108
110
113 inline const Aws::String& GetDistrict() const { return m_district; }
114 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
115 template<typename DistrictT = Aws::String>
116 void SetDistrict(DistrictT&& value) { m_districtHasBeenSet = true; m_district = std::forward<DistrictT>(value); }
117 template<typename DistrictT = Aws::String>
118 Address& WithDistrict(DistrictT&& value) { SetDistrict(std::forward<DistrictT>(value)); return *this;}
120
122
126 inline const Aws::String& GetSubDistrict() const { return m_subDistrict; }
127 inline bool SubDistrictHasBeenSet() const { return m_subDistrictHasBeenSet; }
128 template<typename SubDistrictT = Aws::String>
129 void SetSubDistrict(SubDistrictT&& value) { m_subDistrictHasBeenSet = true; m_subDistrict = std::forward<SubDistrictT>(value); }
130 template<typename SubDistrictT = Aws::String>
131 Address& WithSubDistrict(SubDistrictT&& value) { SetSubDistrict(std::forward<SubDistrictT>(value)); return *this;}
133
135
140 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
141 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
142 template<typename PostalCodeT = Aws::String>
143 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
144 template<typename PostalCodeT = Aws::String>
145 Address& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
147
149
153 inline const Aws::String& GetBlock() const { return m_block; }
154 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
155 template<typename BlockT = Aws::String>
156 void SetBlock(BlockT&& value) { m_blockHasBeenSet = true; m_block = std::forward<BlockT>(value); }
157 template<typename BlockT = Aws::String>
158 Address& WithBlock(BlockT&& value) { SetBlock(std::forward<BlockT>(value)); return *this;}
160
162
166 inline const Aws::String& GetSubBlock() const { return m_subBlock; }
167 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
168 template<typename SubBlockT = Aws::String>
169 void SetSubBlock(SubBlockT&& value) { m_subBlockHasBeenSet = true; m_subBlock = std::forward<SubBlockT>(value); }
170 template<typename SubBlockT = Aws::String>
171 Address& WithSubBlock(SubBlockT&& value) { SetSubBlock(std::forward<SubBlockT>(value)); return *this;}
173
175
179 inline const Aws::Vector<Aws::String>& GetIntersection() const { return m_intersection; }
180 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
181 template<typename IntersectionT = Aws::Vector<Aws::String>>
182 void SetIntersection(IntersectionT&& value) { m_intersectionHasBeenSet = true; m_intersection = std::forward<IntersectionT>(value); }
183 template<typename IntersectionT = Aws::Vector<Aws::String>>
184 Address& WithIntersection(IntersectionT&& value) { SetIntersection(std::forward<IntersectionT>(value)); return *this;}
185 template<typename IntersectionT = Aws::String>
186 Address& AddIntersection(IntersectionT&& value) { m_intersectionHasBeenSet = true; m_intersection.emplace_back(std::forward<IntersectionT>(value)); return *this; }
188
190
193 inline const Aws::String& GetStreet() const { return m_street; }
194 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
195 template<typename StreetT = Aws::String>
196 void SetStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street = std::forward<StreetT>(value); }
197 template<typename StreetT = Aws::String>
198 Address& WithStreet(StreetT&& value) { SetStreet(std::forward<StreetT>(value)); return *this;}
200
202
206 inline const Aws::Vector<StreetComponents>& GetStreetComponents() const { return m_streetComponents; }
207 inline bool StreetComponentsHasBeenSet() const { return m_streetComponentsHasBeenSet; }
208 template<typename StreetComponentsT = Aws::Vector<StreetComponents>>
209 void SetStreetComponents(StreetComponentsT&& value) { m_streetComponentsHasBeenSet = true; m_streetComponents = std::forward<StreetComponentsT>(value); }
210 template<typename StreetComponentsT = Aws::Vector<StreetComponents>>
211 Address& WithStreetComponents(StreetComponentsT&& value) { SetStreetComponents(std::forward<StreetComponentsT>(value)); return *this;}
212 template<typename StreetComponentsT = StreetComponents>
213 Address& AddStreetComponents(StreetComponentsT&& value) { m_streetComponentsHasBeenSet = true; m_streetComponents.emplace_back(std::forward<StreetComponentsT>(value)); return *this; }
215
217
220 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
221 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
222 template<typename AddressNumberT = Aws::String>
223 void SetAddressNumber(AddressNumberT&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::forward<AddressNumberT>(value); }
224 template<typename AddressNumberT = Aws::String>
225 Address& WithAddressNumber(AddressNumberT&& value) { SetAddressNumber(std::forward<AddressNumberT>(value)); return *this;}
227
229
232 inline const Aws::String& GetBuilding() const { return m_building; }
233 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
234 template<typename BuildingT = Aws::String>
235 void SetBuilding(BuildingT&& value) { m_buildingHasBeenSet = true; m_building = std::forward<BuildingT>(value); }
236 template<typename BuildingT = Aws::String>
237 Address& WithBuilding(BuildingT&& value) { SetBuilding(std::forward<BuildingT>(value)); return *this;}
239
241
246 inline const Aws::Vector<SecondaryAddressComponent>& GetSecondaryAddressComponents() const { return m_secondaryAddressComponents; }
247 inline bool SecondaryAddressComponentsHasBeenSet() const { return m_secondaryAddressComponentsHasBeenSet; }
248 template<typename SecondaryAddressComponentsT = Aws::Vector<SecondaryAddressComponent>>
249 void SetSecondaryAddressComponents(SecondaryAddressComponentsT&& value) { m_secondaryAddressComponentsHasBeenSet = true; m_secondaryAddressComponents = std::forward<SecondaryAddressComponentsT>(value); }
250 template<typename SecondaryAddressComponentsT = Aws::Vector<SecondaryAddressComponent>>
251 Address& WithSecondaryAddressComponents(SecondaryAddressComponentsT&& value) { SetSecondaryAddressComponents(std::forward<SecondaryAddressComponentsT>(value)); return *this;}
252 template<typename SecondaryAddressComponentsT = SecondaryAddressComponent>
253 Address& AddSecondaryAddressComponents(SecondaryAddressComponentsT&& value) { m_secondaryAddressComponentsHasBeenSet = true; m_secondaryAddressComponents.emplace_back(std::forward<SecondaryAddressComponentsT>(value)); return *this; }
255 private:
256
257 Aws::String m_label;
258 bool m_labelHasBeenSet = false;
259
260 Country m_country;
261 bool m_countryHasBeenSet = false;
262
263 Region m_region;
264 bool m_regionHasBeenSet = false;
265
266 SubRegion m_subRegion;
267 bool m_subRegionHasBeenSet = false;
268
269 Aws::String m_locality;
270 bool m_localityHasBeenSet = false;
271
272 Aws::String m_district;
273 bool m_districtHasBeenSet = false;
274
275 Aws::String m_subDistrict;
276 bool m_subDistrictHasBeenSet = false;
277
278 Aws::String m_postalCode;
279 bool m_postalCodeHasBeenSet = false;
280
281 Aws::String m_block;
282 bool m_blockHasBeenSet = false;
283
284 Aws::String m_subBlock;
285 bool m_subBlockHasBeenSet = false;
286
287 Aws::Vector<Aws::String> m_intersection;
288 bool m_intersectionHasBeenSet = false;
289
290 Aws::String m_street;
291 bool m_streetHasBeenSet = false;
292
293 Aws::Vector<StreetComponents> m_streetComponents;
294 bool m_streetComponentsHasBeenSet = false;
295
296 Aws::String m_addressNumber;
297 bool m_addressNumberHasBeenSet = false;
298
299 Aws::String m_building;
300 bool m_buildingHasBeenSet = false;
301
302 Aws::Vector<SecondaryAddressComponent> m_secondaryAddressComponents;
303 bool m_secondaryAddressComponentsHasBeenSet = false;
304 };
305
306} // namespace Model
307} // namespace GeoPlaces
308} // namespace Aws
AWS_GEOPLACES_API Address(Aws::Utils::Json::JsonView jsonValue)
void SetPostalCode(PostalCodeT &&value)
Definition Address.h:143
bool DistrictHasBeenSet() const
Definition Address.h:114
const Aws::String & GetLabel() const
Definition Address.h:51
Address & AddIntersection(IntersectionT &&value)
Definition Address.h:186
Address & WithDistrict(DistrictT &&value)
Definition Address.h:118
Address & WithStreet(StreetT &&value)
Definition Address.h:198
Address & WithPostalCode(PostalCodeT &&value)
Definition Address.h:145
bool CountryHasBeenSet() const
Definition Address.h:64
Address & AddStreetComponents(StreetComponentsT &&value)
Definition Address.h:213
void SetCountry(CountryT &&value)
Definition Address.h:66
bool RegionHasBeenSet() const
Definition Address.h:77
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< StreetComponents > & GetStreetComponents() const
Definition Address.h:206
AWS_GEOPLACES_API Address()=default
void SetRegion(RegionT &&value)
Definition Address.h:79
void SetDistrict(DistrictT &&value)
Definition Address.h:116
const Aws::String & GetDistrict() const
Definition Address.h:113
void SetStreetComponents(StreetComponentsT &&value)
Definition Address.h:209
Address & WithRegion(RegionT &&value)
Definition Address.h:81
const Aws::Vector< SecondaryAddressComponent > & GetSecondaryAddressComponents() const
Definition Address.h:246
const Aws::String & GetLocality() const
Definition Address.h:101
Address & WithLocality(LocalityT &&value)
Definition Address.h:106
Address & WithSubBlock(SubBlockT &&value)
Definition Address.h:171
Address & WithBuilding(BuildingT &&value)
Definition Address.h:237
const Aws::Vector< Aws::String > & GetIntersection() const
Definition Address.h:179
bool SubDistrictHasBeenSet() const
Definition Address.h:127
const Aws::String & GetStreet() const
Definition Address.h:193
void SetSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:249
const Aws::String & GetAddressNumber() const
Definition Address.h:220
Address & WithSubRegion(SubRegionT &&value)
Definition Address.h:93
Address & WithAddressNumber(AddressNumberT &&value)
Definition Address.h:225
Address & WithSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:251
bool StreetComponentsHasBeenSet() const
Definition Address.h:207
void SetSubBlock(SubBlockT &&value)
Definition Address.h:169
void SetStreet(StreetT &&value)
Definition Address.h:196
const Aws::String & GetSubBlock() const
Definition Address.h:166
void SetSubRegion(SubRegionT &&value)
Definition Address.h:91
const Region & GetRegion() const
Definition Address.h:76
void SetBlock(BlockT &&value)
Definition Address.h:156
Address & WithLabel(LabelT &&value)
Definition Address.h:56
void SetLocality(LocalityT &&value)
Definition Address.h:104
AWS_GEOPLACES_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LocalityHasBeenSet() const
Definition Address.h:102
Address & AddSecondaryAddressComponents(SecondaryAddressComponentsT &&value)
Definition Address.h:253
void SetLabel(LabelT &&value)
Definition Address.h:54
const Aws::String & GetSubDistrict() const
Definition Address.h:126
const Aws::String & GetBlock() const
Definition Address.h:153
const Country & GetCountry() const
Definition Address.h:63
const Aws::String & GetPostalCode() const
Definition Address.h:140
Address & WithCountry(CountryT &&value)
Definition Address.h:68
Address & WithBlock(BlockT &&value)
Definition Address.h:158
Address & WithSubDistrict(SubDistrictT &&value)
Definition Address.h:131
bool SubRegionHasBeenSet() const
Definition Address.h:89
bool BuildingHasBeenSet() const
Definition Address.h:233
Address & WithStreetComponents(StreetComponentsT &&value)
Definition Address.h:211
bool SecondaryAddressComponentsHasBeenSet() const
Definition Address.h:247
bool PostalCodeHasBeenSet() const
Definition Address.h:141
void SetIntersection(IntersectionT &&value)
Definition Address.h:182
void SetSubDistrict(SubDistrictT &&value)
Definition Address.h:129
const Aws::String & GetBuilding() const
Definition Address.h:232
void SetBuilding(BuildingT &&value)
Definition Address.h:235
Address & WithIntersection(IntersectionT &&value)
Definition Address.h:184
bool IntersectionHasBeenSet() const
Definition Address.h:180
const SubRegion & GetSubRegion() const
Definition Address.h:88
bool SubBlockHasBeenSet() const
Definition Address.h:167
void SetAddressNumber(AddressNumberT &&value)
Definition Address.h:223
bool AddressNumberHasBeenSet() const
Definition Address.h:221
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue