AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GeoPlaces
27{
28namespace Model
29{
30
36 class Address
37 {
38 public:
39 AWS_GEOPLACES_API Address();
40 AWS_GEOPLACES_API Address(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOPLACES_API Address& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetLabel() const{ return m_label; }
51 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
52 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
53 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
54 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
55 inline Address& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
56 inline Address& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
57 inline Address& WithLabel(const char* value) { SetLabel(value); return *this;}
59
61
64 inline const Country& GetCountry() const{ return m_country; }
65 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
66 inline void SetCountry(const Country& value) { m_countryHasBeenSet = true; m_country = value; }
67 inline void SetCountry(Country&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
68 inline Address& WithCountry(const Country& value) { SetCountry(value); return *this;}
69 inline Address& WithCountry(Country&& value) { SetCountry(std::move(value)); return *this;}
71
73
77 inline const Region& GetRegion() const{ return m_region; }
78 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
79 inline void SetRegion(const Region& value) { m_regionHasBeenSet = true; m_region = value; }
80 inline void SetRegion(Region&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
81 inline Address& WithRegion(const Region& value) { SetRegion(value); return *this;}
82 inline Address& WithRegion(Region&& value) { SetRegion(std::move(value)); return *this;}
84
86
89 inline const SubRegion& GetSubRegion() const{ return m_subRegion; }
90 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
91 inline void SetSubRegion(const SubRegion& value) { m_subRegionHasBeenSet = true; m_subRegion = value; }
92 inline void SetSubRegion(SubRegion&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::move(value); }
93 inline Address& WithSubRegion(const SubRegion& value) { SetSubRegion(value); return *this;}
94 inline Address& WithSubRegion(SubRegion&& value) { SetSubRegion(std::move(value)); return *this;}
96
98
102 inline const Aws::String& GetLocality() const{ return m_locality; }
103 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
104 inline void SetLocality(const Aws::String& value) { m_localityHasBeenSet = true; m_locality = value; }
105 inline void SetLocality(Aws::String&& value) { m_localityHasBeenSet = true; m_locality = std::move(value); }
106 inline void SetLocality(const char* value) { m_localityHasBeenSet = true; m_locality.assign(value); }
107 inline Address& WithLocality(const Aws::String& value) { SetLocality(value); return *this;}
108 inline Address& WithLocality(Aws::String&& value) { SetLocality(std::move(value)); return *this;}
109 inline Address& WithLocality(const char* value) { SetLocality(value); return *this;}
111
113
116 inline const Aws::String& GetDistrict() const{ return m_district; }
117 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
118 inline void SetDistrict(const Aws::String& value) { m_districtHasBeenSet = true; m_district = value; }
119 inline void SetDistrict(Aws::String&& value) { m_districtHasBeenSet = true; m_district = std::move(value); }
120 inline void SetDistrict(const char* value) { m_districtHasBeenSet = true; m_district.assign(value); }
121 inline Address& WithDistrict(const Aws::String& value) { SetDistrict(value); return *this;}
122 inline Address& WithDistrict(Aws::String&& value) { SetDistrict(std::move(value)); return *this;}
123 inline Address& WithDistrict(const char* value) { SetDistrict(value); return *this;}
125
127
131 inline const Aws::String& GetSubDistrict() const{ return m_subDistrict; }
132 inline bool SubDistrictHasBeenSet() const { return m_subDistrictHasBeenSet; }
133 inline void SetSubDistrict(const Aws::String& value) { m_subDistrictHasBeenSet = true; m_subDistrict = value; }
134 inline void SetSubDistrict(Aws::String&& value) { m_subDistrictHasBeenSet = true; m_subDistrict = std::move(value); }
135 inline void SetSubDistrict(const char* value) { m_subDistrictHasBeenSet = true; m_subDistrict.assign(value); }
136 inline Address& WithSubDistrict(const Aws::String& value) { SetSubDistrict(value); return *this;}
137 inline Address& WithSubDistrict(Aws::String&& value) { SetSubDistrict(std::move(value)); return *this;}
138 inline Address& WithSubDistrict(const char* value) { SetSubDistrict(value); return *this;}
140
142
147 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
148 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
149 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
150 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
151 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
152 inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
153 inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
154 inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
156
158
162 inline const Aws::String& GetBlock() const{ return m_block; }
163 inline bool BlockHasBeenSet() const { return m_blockHasBeenSet; }
164 inline void SetBlock(const Aws::String& value) { m_blockHasBeenSet = true; m_block = value; }
165 inline void SetBlock(Aws::String&& value) { m_blockHasBeenSet = true; m_block = std::move(value); }
166 inline void SetBlock(const char* value) { m_blockHasBeenSet = true; m_block.assign(value); }
167 inline Address& WithBlock(const Aws::String& value) { SetBlock(value); return *this;}
168 inline Address& WithBlock(Aws::String&& value) { SetBlock(std::move(value)); return *this;}
169 inline Address& WithBlock(const char* value) { SetBlock(value); return *this;}
171
173
177 inline const Aws::String& GetSubBlock() const{ return m_subBlock; }
178 inline bool SubBlockHasBeenSet() const { return m_subBlockHasBeenSet; }
179 inline void SetSubBlock(const Aws::String& value) { m_subBlockHasBeenSet = true; m_subBlock = value; }
180 inline void SetSubBlock(Aws::String&& value) { m_subBlockHasBeenSet = true; m_subBlock = std::move(value); }
181 inline void SetSubBlock(const char* value) { m_subBlockHasBeenSet = true; m_subBlock.assign(value); }
182 inline Address& WithSubBlock(const Aws::String& value) { SetSubBlock(value); return *this;}
183 inline Address& WithSubBlock(Aws::String&& value) { SetSubBlock(std::move(value)); return *this;}
184 inline Address& WithSubBlock(const char* value) { SetSubBlock(value); return *this;}
186
188
192 inline const Aws::Vector<Aws::String>& GetIntersection() const{ return m_intersection; }
193 inline bool IntersectionHasBeenSet() const { return m_intersectionHasBeenSet; }
194 inline void SetIntersection(const Aws::Vector<Aws::String>& value) { m_intersectionHasBeenSet = true; m_intersection = value; }
195 inline void SetIntersection(Aws::Vector<Aws::String>&& value) { m_intersectionHasBeenSet = true; m_intersection = std::move(value); }
196 inline Address& WithIntersection(const Aws::Vector<Aws::String>& value) { SetIntersection(value); return *this;}
197 inline Address& WithIntersection(Aws::Vector<Aws::String>&& value) { SetIntersection(std::move(value)); return *this;}
198 inline Address& AddIntersection(const Aws::String& value) { m_intersectionHasBeenSet = true; m_intersection.push_back(value); return *this; }
199 inline Address& AddIntersection(Aws::String&& value) { m_intersectionHasBeenSet = true; m_intersection.push_back(std::move(value)); return *this; }
200 inline Address& AddIntersection(const char* value) { m_intersectionHasBeenSet = true; m_intersection.push_back(value); return *this; }
202
204
207 inline const Aws::String& GetStreet() const{ return m_street; }
208 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
209 inline void SetStreet(const Aws::String& value) { m_streetHasBeenSet = true; m_street = value; }
210 inline void SetStreet(Aws::String&& value) { m_streetHasBeenSet = true; m_street = std::move(value); }
211 inline void SetStreet(const char* value) { m_streetHasBeenSet = true; m_street.assign(value); }
212 inline Address& WithStreet(const Aws::String& value) { SetStreet(value); return *this;}
213 inline Address& WithStreet(Aws::String&& value) { SetStreet(std::move(value)); return *this;}
214 inline Address& WithStreet(const char* value) { SetStreet(value); return *this;}
216
218
222 inline const Aws::Vector<StreetComponents>& GetStreetComponents() const{ return m_streetComponents; }
223 inline bool StreetComponentsHasBeenSet() const { return m_streetComponentsHasBeenSet; }
224 inline void SetStreetComponents(const Aws::Vector<StreetComponents>& value) { m_streetComponentsHasBeenSet = true; m_streetComponents = value; }
225 inline void SetStreetComponents(Aws::Vector<StreetComponents>&& value) { m_streetComponentsHasBeenSet = true; m_streetComponents = std::move(value); }
227 inline Address& WithStreetComponents(Aws::Vector<StreetComponents>&& value) { SetStreetComponents(std::move(value)); return *this;}
228 inline Address& AddStreetComponents(const StreetComponents& value) { m_streetComponentsHasBeenSet = true; m_streetComponents.push_back(value); return *this; }
229 inline Address& AddStreetComponents(StreetComponents&& value) { m_streetComponentsHasBeenSet = true; m_streetComponents.push_back(std::move(value)); return *this; }
231
233
236 inline const Aws::String& GetAddressNumber() const{ return m_addressNumber; }
237 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
238 inline void SetAddressNumber(const Aws::String& value) { m_addressNumberHasBeenSet = true; m_addressNumber = value; }
239 inline void SetAddressNumber(Aws::String&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::move(value); }
240 inline void SetAddressNumber(const char* value) { m_addressNumberHasBeenSet = true; m_addressNumber.assign(value); }
241 inline Address& WithAddressNumber(const Aws::String& value) { SetAddressNumber(value); return *this;}
242 inline Address& WithAddressNumber(Aws::String&& value) { SetAddressNumber(std::move(value)); return *this;}
243 inline Address& WithAddressNumber(const char* value) { SetAddressNumber(value); return *this;}
245
247
250 inline const Aws::String& GetBuilding() const{ return m_building; }
251 inline bool BuildingHasBeenSet() const { return m_buildingHasBeenSet; }
252 inline void SetBuilding(const Aws::String& value) { m_buildingHasBeenSet = true; m_building = value; }
253 inline void SetBuilding(Aws::String&& value) { m_buildingHasBeenSet = true; m_building = std::move(value); }
254 inline void SetBuilding(const char* value) { m_buildingHasBeenSet = true; m_building.assign(value); }
255 inline Address& WithBuilding(const Aws::String& value) { SetBuilding(value); return *this;}
256 inline Address& WithBuilding(Aws::String&& value) { SetBuilding(std::move(value)); return *this;}
257 inline Address& WithBuilding(const char* value) { SetBuilding(value); return *this;}
259 private:
260
261 Aws::String m_label;
262 bool m_labelHasBeenSet = false;
263
264 Country m_country;
265 bool m_countryHasBeenSet = false;
266
267 Region m_region;
268 bool m_regionHasBeenSet = false;
269
270 SubRegion m_subRegion;
271 bool m_subRegionHasBeenSet = false;
272
273 Aws::String m_locality;
274 bool m_localityHasBeenSet = false;
275
276 Aws::String m_district;
277 bool m_districtHasBeenSet = false;
278
279 Aws::String m_subDistrict;
280 bool m_subDistrictHasBeenSet = false;
281
282 Aws::String m_postalCode;
283 bool m_postalCodeHasBeenSet = false;
284
285 Aws::String m_block;
286 bool m_blockHasBeenSet = false;
287
288 Aws::String m_subBlock;
289 bool m_subBlockHasBeenSet = false;
290
291 Aws::Vector<Aws::String> m_intersection;
292 bool m_intersectionHasBeenSet = false;
293
294 Aws::String m_street;
295 bool m_streetHasBeenSet = false;
296
297 Aws::Vector<StreetComponents> m_streetComponents;
298 bool m_streetComponentsHasBeenSet = false;
299
300 Aws::String m_addressNumber;
301 bool m_addressNumberHasBeenSet = false;
302
303 Aws::String m_building;
304 bool m_buildingHasBeenSet = false;
305 };
306
307} // namespace Model
308} // namespace GeoPlaces
309} // namespace Aws
void SetDistrict(const Aws::String &value)
Definition Address.h:118
Address & WithLabel(Aws::String &&value)
Definition Address.h:56
AWS_GEOPLACES_API Address(Aws::Utils::Json::JsonView jsonValue)
bool DistrictHasBeenSet() const
Definition Address.h:117
Address & WithAddressNumber(const char *value)
Definition Address.h:243
void SetAddressNumber(const Aws::String &value)
Definition Address.h:238
void SetRegion(const Region &value)
Definition Address.h:79
Address & WithBuilding(const char *value)
Definition Address.h:257
const Aws::String & GetLabel() const
Definition Address.h:50
Address & WithSubBlock(const char *value)
Definition Address.h:184
void SetStreet(const Aws::String &value)
Definition Address.h:209
void SetSubDistrict(Aws::String &&value)
Definition Address.h:134
Address & AddStreetComponents(const StreetComponents &value)
Definition Address.h:228
Address & AddStreetComponents(StreetComponents &&value)
Definition Address.h:229
Address & WithSubDistrict(const char *value)
Definition Address.h:138
Address & WithCountry(Country &&value)
Definition Address.h:69
void SetBuilding(const Aws::String &value)
Definition Address.h:252
bool CountryHasBeenSet() const
Definition Address.h:65
Address & AddIntersection(Aws::String &&value)
Definition Address.h:199
bool RegionHasBeenSet() const
Definition Address.h:78
Address & WithCountry(const Country &value)
Definition Address.h:68
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubRegion(SubRegion &&value)
Definition Address.h:92
const Aws::Vector< StreetComponents > & GetStreetComponents() const
Definition Address.h:222
Address & WithLocality(Aws::String &&value)
Definition Address.h:108
Address & WithLocality(const char *value)
Definition Address.h:109
Address & WithSubBlock(const Aws::String &value)
Definition Address.h:182
AWS_GEOPLACES_API Address()
void SetRegion(Region &&value)
Definition Address.h:80
const Aws::String & GetDistrict() const
Definition Address.h:116
void SetLocality(Aws::String &&value)
Definition Address.h:105
Address & WithSubDistrict(Aws::String &&value)
Definition Address.h:137
void SetSubDistrict(const char *value)
Definition Address.h:135
Address & WithIntersection(const Aws::Vector< Aws::String > &value)
Definition Address.h:196
Address & WithPostalCode(Aws::String &&value)
Definition Address.h:153
const Aws::String & GetLocality() const
Definition Address.h:102
Address & WithBuilding(const Aws::String &value)
Definition Address.h:255
void SetStreetComponents(const Aws::Vector< StreetComponents > &value)
Definition Address.h:224
void SetAddressNumber(const char *value)
Definition Address.h:240
Address & AddIntersection(const char *value)
Definition Address.h:200
void SetPostalCode(const char *value)
Definition Address.h:151
void SetLabel(const char *value)
Definition Address.h:54
Address & WithDistrict(const Aws::String &value)
Definition Address.h:121
Address & WithBlock(const Aws::String &value)
Definition Address.h:167
void SetIntersection(Aws::Vector< Aws::String > &&value)
Definition Address.h:195
void SetStreet(Aws::String &&value)
Definition Address.h:210
void SetPostalCode(Aws::String &&value)
Definition Address.h:150
const Aws::Vector< Aws::String > & GetIntersection() const
Definition Address.h:192
bool SubDistrictHasBeenSet() const
Definition Address.h:132
Address & WithSubRegion(const SubRegion &value)
Definition Address.h:93
const Aws::String & GetStreet() const
Definition Address.h:207
const Aws::String & GetAddressNumber() const
Definition Address.h:236
void SetLocality(const char *value)
Definition Address.h:106
Address & AddIntersection(const Aws::String &value)
Definition Address.h:198
void SetBuilding(const char *value)
Definition Address.h:254
Address & WithRegion(Region &&value)
Definition Address.h:82
bool StreetComponentsHasBeenSet() const
Definition Address.h:223
Address & WithBlock(Aws::String &&value)
Definition Address.h:168
const Aws::String & GetSubBlock() const
Definition Address.h:177
Address & WithIntersection(Aws::Vector< Aws::String > &&value)
Definition Address.h:197
Address & WithSubRegion(SubRegion &&value)
Definition Address.h:94
void SetCountry(const Country &value)
Definition Address.h:66
const Region & GetRegion() const
Definition Address.h:77
void SetBuilding(Aws::String &&value)
Definition Address.h:253
Address & WithLabel(const char *value)
Definition Address.h:57
void SetStreet(const char *value)
Definition Address.h:211
Address & WithBuilding(Aws::String &&value)
Definition Address.h:256
Address & WithStreetComponents(Aws::Vector< StreetComponents > &&value)
Definition Address.h:227
Address & WithLocality(const Aws::String &value)
Definition Address.h:107
void SetLabel(const Aws::String &value)
Definition Address.h:52
void SetDistrict(Aws::String &&value)
Definition Address.h:119
void SetSubDistrict(const Aws::String &value)
Definition Address.h:133
AWS_GEOPLACES_API Address & operator=(Aws::Utils::Json::JsonView jsonValue)
Address & WithStreet(const char *value)
Definition Address.h:214
bool LocalityHasBeenSet() const
Definition Address.h:103
const Aws::String & GetSubDistrict() const
Definition Address.h:131
const Aws::String & GetBlock() const
Definition Address.h:162
const Country & GetCountry() const
Definition Address.h:64
void SetLocality(const Aws::String &value)
Definition Address.h:104
const Aws::String & GetPostalCode() const
Definition Address.h:147
Address & WithAddressNumber(Aws::String &&value)
Definition Address.h:242
Address & WithDistrict(const char *value)
Definition Address.h:123
void SetSubBlock(Aws::String &&value)
Definition Address.h:180
Address & WithStreetComponents(const Aws::Vector< StreetComponents > &value)
Definition Address.h:226
void SetBlock(const Aws::String &value)
Definition Address.h:164
bool SubRegionHasBeenSet() const
Definition Address.h:90
void SetCountry(Country &&value)
Definition Address.h:67
Address & WithPostalCode(const char *value)
Definition Address.h:154
void SetDistrict(const char *value)
Definition Address.h:120
bool BuildingHasBeenSet() const
Definition Address.h:251
Address & WithRegion(const Region &value)
Definition Address.h:81
void SetSubRegion(const SubRegion &value)
Definition Address.h:91
Address & WithStreet(const Aws::String &value)
Definition Address.h:212
Address & WithLabel(const Aws::String &value)
Definition Address.h:55
Address & WithSubBlock(Aws::String &&value)
Definition Address.h:183
bool PostalCodeHasBeenSet() const
Definition Address.h:148
void SetPostalCode(const Aws::String &value)
Definition Address.h:149
Address & WithAddressNumber(const Aws::String &value)
Definition Address.h:241
Address & WithPostalCode(const Aws::String &value)
Definition Address.h:152
void SetSubBlock(const char *value)
Definition Address.h:181
Address & WithBlock(const char *value)
Definition Address.h:169
void SetIntersection(const Aws::Vector< Aws::String > &value)
Definition Address.h:194
void SetStreetComponents(Aws::Vector< StreetComponents > &&value)
Definition Address.h:225
void SetBlock(Aws::String &&value)
Definition Address.h:165
Address & WithStreet(Aws::String &&value)
Definition Address.h:213
const Aws::String & GetBuilding() const
Definition Address.h:250
bool IntersectionHasBeenSet() const
Definition Address.h:193
void SetBlock(const char *value)
Definition Address.h:166
Address & WithDistrict(Aws::String &&value)
Definition Address.h:122
const SubRegion & GetSubRegion() const
Definition Address.h:89
bool SubBlockHasBeenSet() const
Definition Address.h:178
void SetLabel(Aws::String &&value)
Definition Address.h:53
Address & WithSubDistrict(const Aws::String &value)
Definition Address.h:136
void SetAddressNumber(Aws::String &&value)
Definition Address.h:239
void SetSubBlock(const Aws::String &value)
Definition Address.h:179
bool AddressNumberHasBeenSet() const
Definition Address.h:237
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue