AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Place.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/location/LocationService_EXPORTS.h>
10#include <aws/location/model/PlaceGeometry.h>
11#include <aws/location/model/TimeZone.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService {
23namespace Model {
24
32class Place {
33 public:
34 AWS_LOCATIONSERVICE_API Place() = default;
35 AWS_LOCATIONSERVICE_API Place(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LOCATIONSERVICE_API Place& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetLabel() const { return m_label; }
45 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
46 template <typename LabelT = Aws::String>
47 void SetLabel(LabelT&& value) {
48 m_labelHasBeenSet = true;
49 m_label = std::forward<LabelT>(value);
50 }
51 template <typename LabelT = Aws::String>
52 Place& WithLabel(LabelT&& value) {
53 SetLabel(std::forward<LabelT>(value));
54 return *this;
55 }
57
59
60 inline const PlaceGeometry& GetGeometry() const { return m_geometry; }
61 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
62 template <typename GeometryT = PlaceGeometry>
63 void SetGeometry(GeometryT&& value) {
64 m_geometryHasBeenSet = true;
65 m_geometry = std::forward<GeometryT>(value);
66 }
67 template <typename GeometryT = PlaceGeometry>
68 Place& WithGeometry(GeometryT&& value) {
69 SetGeometry(std::forward<GeometryT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
79 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
80 template <typename AddressNumberT = Aws::String>
81 void SetAddressNumber(AddressNumberT&& value) {
82 m_addressNumberHasBeenSet = true;
83 m_addressNumber = std::forward<AddressNumberT>(value);
84 }
85 template <typename AddressNumberT = Aws::String>
86 Place& WithAddressNumber(AddressNumberT&& value) {
87 SetAddressNumber(std::forward<AddressNumberT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetStreet() const { return m_street; }
98 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
99 template <typename StreetT = Aws::String>
100 void SetStreet(StreetT&& value) {
101 m_streetHasBeenSet = true;
102 m_street = std::forward<StreetT>(value);
103 }
104 template <typename StreetT = Aws::String>
105 Place& WithStreet(StreetT&& value) {
106 SetStreet(std::forward<StreetT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetNeighborhood() const { return m_neighborhood; }
116 inline bool NeighborhoodHasBeenSet() const { return m_neighborhoodHasBeenSet; }
117 template <typename NeighborhoodT = Aws::String>
118 void SetNeighborhood(NeighborhoodT&& value) {
119 m_neighborhoodHasBeenSet = true;
120 m_neighborhood = std::forward<NeighborhoodT>(value);
121 }
122 template <typename NeighborhoodT = Aws::String>
123 Place& WithNeighborhood(NeighborhoodT&& value) {
124 SetNeighborhood(std::forward<NeighborhoodT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetMunicipality() const { return m_municipality; }
135 inline bool MunicipalityHasBeenSet() const { return m_municipalityHasBeenSet; }
136 template <typename MunicipalityT = Aws::String>
137 void SetMunicipality(MunicipalityT&& value) {
138 m_municipalityHasBeenSet = true;
139 m_municipality = std::forward<MunicipalityT>(value);
140 }
141 template <typename MunicipalityT = Aws::String>
142 Place& WithMunicipality(MunicipalityT&& value) {
143 SetMunicipality(std::forward<MunicipalityT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetSubRegion() const { return m_subRegion; }
154 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
155 template <typename SubRegionT = Aws::String>
156 void SetSubRegion(SubRegionT&& value) {
157 m_subRegionHasBeenSet = true;
158 m_subRegion = std::forward<SubRegionT>(value);
159 }
160 template <typename SubRegionT = Aws::String>
161 Place& WithSubRegion(SubRegionT&& value) {
162 SetSubRegion(std::forward<SubRegionT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::String& GetRegion() const { return m_region; }
173 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
174 template <typename RegionT = Aws::String>
175 void SetRegion(RegionT&& value) {
176 m_regionHasBeenSet = true;
177 m_region = std::forward<RegionT>(value);
178 }
179 template <typename RegionT = Aws::String>
180 Place& WithRegion(RegionT&& value) {
181 SetRegion(std::forward<RegionT>(value));
182 return *this;
183 }
185
187
192 inline const Aws::String& GetCountry() const { return m_country; }
193 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
194 template <typename CountryT = Aws::String>
195 void SetCountry(CountryT&& value) {
196 m_countryHasBeenSet = true;
197 m_country = std::forward<CountryT>(value);
198 }
199 template <typename CountryT = Aws::String>
200 Place& WithCountry(CountryT&& value) {
201 SetCountry(std::forward<CountryT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
212 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
213 template <typename PostalCodeT = Aws::String>
214 void SetPostalCode(PostalCodeT&& value) {
215 m_postalCodeHasBeenSet = true;
216 m_postalCode = std::forward<PostalCodeT>(value);
217 }
218 template <typename PostalCodeT = Aws::String>
219 Place& WithPostalCode(PostalCodeT&& value) {
220 SetPostalCode(std::forward<PostalCodeT>(value));
221 return *this;
222 }
224
226
235 inline bool GetInterpolated() const { return m_interpolated; }
236 inline bool InterpolatedHasBeenSet() const { return m_interpolatedHasBeenSet; }
237 inline void SetInterpolated(bool value) {
238 m_interpolatedHasBeenSet = true;
239 m_interpolated = value;
240 }
241 inline Place& WithInterpolated(bool value) {
242 SetInterpolated(value);
243 return *this;
244 }
246
248
252 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
253 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
254 template <typename TimeZoneT = TimeZone>
255 void SetTimeZone(TimeZoneT&& value) {
256 m_timeZoneHasBeenSet = true;
257 m_timeZone = std::forward<TimeZoneT>(value);
258 }
259 template <typename TimeZoneT = TimeZone>
260 Place& WithTimeZone(TimeZoneT&& value) {
261 SetTimeZone(std::forward<TimeZoneT>(value));
262 return *this;
263 }
265
267
272 inline const Aws::String& GetUnitType() const { return m_unitType; }
273 inline bool UnitTypeHasBeenSet() const { return m_unitTypeHasBeenSet; }
274 template <typename UnitTypeT = Aws::String>
275 void SetUnitType(UnitTypeT&& value) {
276 m_unitTypeHasBeenSet = true;
277 m_unitType = std::forward<UnitTypeT>(value);
278 }
279 template <typename UnitTypeT = Aws::String>
280 Place& WithUnitType(UnitTypeT&& value) {
281 SetUnitType(std::forward<UnitTypeT>(value));
282 return *this;
283 }
285
287
293 inline const Aws::String& GetUnitNumber() const { return m_unitNumber; }
294 inline bool UnitNumberHasBeenSet() const { return m_unitNumberHasBeenSet; }
295 template <typename UnitNumberT = Aws::String>
296 void SetUnitNumber(UnitNumberT&& value) {
297 m_unitNumberHasBeenSet = true;
298 m_unitNumber = std::forward<UnitNumberT>(value);
299 }
300 template <typename UnitNumberT = Aws::String>
301 Place& WithUnitNumber(UnitNumberT&& value) {
302 SetUnitNumber(std::forward<UnitNumberT>(value));
303 return *this;
304 }
306
308
315 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
316 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
317 template <typename CategoriesT = Aws::Vector<Aws::String>>
318 void SetCategories(CategoriesT&& value) {
319 m_categoriesHasBeenSet = true;
320 m_categories = std::forward<CategoriesT>(value);
321 }
322 template <typename CategoriesT = Aws::Vector<Aws::String>>
323 Place& WithCategories(CategoriesT&& value) {
324 SetCategories(std::forward<CategoriesT>(value));
325 return *this;
326 }
327 template <typename CategoriesT = Aws::String>
328 Place& AddCategories(CategoriesT&& value) {
329 m_categoriesHasBeenSet = true;
330 m_categories.emplace_back(std::forward<CategoriesT>(value));
331 return *this;
332 }
334
336
340 inline const Aws::Vector<Aws::String>& GetSupplementalCategories() const { return m_supplementalCategories; }
341 inline bool SupplementalCategoriesHasBeenSet() const { return m_supplementalCategoriesHasBeenSet; }
342 template <typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
343 void SetSupplementalCategories(SupplementalCategoriesT&& value) {
344 m_supplementalCategoriesHasBeenSet = true;
345 m_supplementalCategories = std::forward<SupplementalCategoriesT>(value);
346 }
347 template <typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
348 Place& WithSupplementalCategories(SupplementalCategoriesT&& value) {
349 SetSupplementalCategories(std::forward<SupplementalCategoriesT>(value));
350 return *this;
351 }
352 template <typename SupplementalCategoriesT = Aws::String>
353 Place& AddSupplementalCategories(SupplementalCategoriesT&& value) {
354 m_supplementalCategoriesHasBeenSet = true;
355 m_supplementalCategories.emplace_back(std::forward<SupplementalCategoriesT>(value));
356 return *this;
357 }
359
361
368 inline const Aws::String& GetSubMunicipality() const { return m_subMunicipality; }
369 inline bool SubMunicipalityHasBeenSet() const { return m_subMunicipalityHasBeenSet; }
370 template <typename SubMunicipalityT = Aws::String>
371 void SetSubMunicipality(SubMunicipalityT&& value) {
372 m_subMunicipalityHasBeenSet = true;
373 m_subMunicipality = std::forward<SubMunicipalityT>(value);
374 }
375 template <typename SubMunicipalityT = Aws::String>
376 Place& WithSubMunicipality(SubMunicipalityT&& value) {
377 SetSubMunicipality(std::forward<SubMunicipalityT>(value));
378 return *this;
379 }
381 private:
382 Aws::String m_label;
383
384 PlaceGeometry m_geometry;
385
386 Aws::String m_addressNumber;
387
388 Aws::String m_street;
389
390 Aws::String m_neighborhood;
391
392 Aws::String m_municipality;
393
394 Aws::String m_subRegion;
395
396 Aws::String m_region;
397
398 Aws::String m_country;
399
400 Aws::String m_postalCode;
401
402 bool m_interpolated{false};
403
404 TimeZone m_timeZone;
405
406 Aws::String m_unitType;
407
408 Aws::String m_unitNumber;
409
410 Aws::Vector<Aws::String> m_categories;
411
412 Aws::Vector<Aws::String> m_supplementalCategories;
413
414 Aws::String m_subMunicipality;
415 bool m_labelHasBeenSet = false;
416 bool m_geometryHasBeenSet = false;
417 bool m_addressNumberHasBeenSet = false;
418 bool m_streetHasBeenSet = false;
419 bool m_neighborhoodHasBeenSet = false;
420 bool m_municipalityHasBeenSet = false;
421 bool m_subRegionHasBeenSet = false;
422 bool m_regionHasBeenSet = false;
423 bool m_countryHasBeenSet = false;
424 bool m_postalCodeHasBeenSet = false;
425 bool m_interpolatedHasBeenSet = false;
426 bool m_timeZoneHasBeenSet = false;
427 bool m_unitTypeHasBeenSet = false;
428 bool m_unitNumberHasBeenSet = false;
429 bool m_categoriesHasBeenSet = false;
430 bool m_supplementalCategoriesHasBeenSet = false;
431 bool m_subMunicipalityHasBeenSet = false;
432};
433
434} // namespace Model
435} // namespace LocationService
436} // namespace Aws
void SetAddressNumber(AddressNumberT &&value)
Definition Place.h:81
Place & WithStreet(StreetT &&value)
Definition Place.h:105
Place & WithNeighborhood(NeighborhoodT &&value)
Definition Place.h:123
Place & WithSubMunicipality(SubMunicipalityT &&value)
Definition Place.h:376
void SetGeometry(GeometryT &&value)
Definition Place.h:63
void SetSubMunicipality(SubMunicipalityT &&value)
Definition Place.h:371
const Aws::String & GetPostalCode() const
Definition Place.h:211
bool InterpolatedHasBeenSet() const
Definition Place.h:236
Place & AddSupplementalCategories(SupplementalCategoriesT &&value)
Definition Place.h:353
void SetLabel(LabelT &&value)
Definition Place.h:47
Place & WithSubRegion(SubRegionT &&value)
Definition Place.h:161
void SetSupplementalCategories(SupplementalCategoriesT &&value)
Definition Place.h:343
bool SubMunicipalityHasBeenSet() const
Definition Place.h:369
Place & WithCountry(CountryT &&value)
Definition Place.h:200
Place & WithUnitType(UnitTypeT &&value)
Definition Place.h:280
Place & WithSupplementalCategories(SupplementalCategoriesT &&value)
Definition Place.h:348
AWS_LOCATIONSERVICE_API Place & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreet(StreetT &&value)
Definition Place.h:100
const Aws::String & GetSubRegion() const
Definition Place.h:153
Place & WithUnitNumber(UnitNumberT &&value)
Definition Place.h:301
const Aws::String & GetLabel() const
Definition Place.h:44
void SetPostalCode(PostalCodeT &&value)
Definition Place.h:214
Place & WithLabel(LabelT &&value)
Definition Place.h:52
void SetTimeZone(TimeZoneT &&value)
Definition Place.h:255
Place & WithPostalCode(PostalCodeT &&value)
Definition Place.h:219
const Aws::String & GetCountry() const
Definition Place.h:192
Place & AddCategories(CategoriesT &&value)
Definition Place.h:328
void SetCategories(CategoriesT &&value)
Definition Place.h:318
const Aws::Vector< Aws::String > & GetCategories() const
Definition Place.h:315
const TimeZone & GetTimeZone() const
Definition Place.h:252
const Aws::String & GetAddressNumber() const
Definition Place.h:78
bool SupplementalCategoriesHasBeenSet() const
Definition Place.h:341
void SetUnitNumber(UnitNumberT &&value)
Definition Place.h:296
Place & WithAddressNumber(AddressNumberT &&value)
Definition Place.h:86
void SetRegion(RegionT &&value)
Definition Place.h:175
void SetSubRegion(SubRegionT &&value)
Definition Place.h:156
void SetInterpolated(bool value)
Definition Place.h:237
Place & WithTimeZone(TimeZoneT &&value)
Definition Place.h:260
const PlaceGeometry & GetGeometry() const
Definition Place.h:60
bool MunicipalityHasBeenSet() const
Definition Place.h:135
const Aws::String & GetSubMunicipality() const
Definition Place.h:368
void SetNeighborhood(NeighborhoodT &&value)
Definition Place.h:118
Place & WithGeometry(GeometryT &&value)
Definition Place.h:68
const Aws::String & GetUnitType() const
Definition Place.h:272
AWS_LOCATIONSERVICE_API Place()=default
Place & WithCategories(CategoriesT &&value)
Definition Place.h:323
Place & WithMunicipality(MunicipalityT &&value)
Definition Place.h:142
const Aws::String & GetNeighborhood() const
Definition Place.h:115
AWS_LOCATIONSERVICE_API Place(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMunicipality() const
Definition Place.h:134
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Place & WithInterpolated(bool value)
Definition Place.h:241
bool AddressNumberHasBeenSet() const
Definition Place.h:79
Place & WithRegion(RegionT &&value)
Definition Place.h:180
void SetMunicipality(MunicipalityT &&value)
Definition Place.h:137
void SetCountry(CountryT &&value)
Definition Place.h:195
const Aws::Vector< Aws::String > & GetSupplementalCategories() const
Definition Place.h:340
const Aws::String & GetStreet() const
Definition Place.h:97
const Aws::String & GetRegion() const
Definition Place.h:172
const Aws::String & GetUnitNumber() const
Definition Place.h:293
void SetUnitType(UnitTypeT &&value)
Definition Place.h:275
bool NeighborhoodHasBeenSet() const
Definition Place.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue