AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Place.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/location/model/PlaceGeometry.h>
10#include <aws/location/model/TimeZone.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LocationService
25{
26namespace Model
27{
28
36 class Place
37 {
38 public:
39 AWS_LOCATIONSERVICE_API Place() = default;
40 AWS_LOCATIONSERVICE_API Place(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOCATIONSERVICE_API Place& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LOCATIONSERVICE_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 template<typename LabelT = Aws::String>
53 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
54 template<typename LabelT = Aws::String>
55 Place& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
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) { m_geometryHasBeenSet = true; m_geometry = std::forward<GeometryT>(value); }
64 template<typename GeometryT = PlaceGeometry>
65 Place& WithGeometry(GeometryT&& value) { SetGeometry(std::forward<GeometryT>(value)); return *this;}
67
69
72 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
73 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
74 template<typename AddressNumberT = Aws::String>
75 void SetAddressNumber(AddressNumberT&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::forward<AddressNumberT>(value); }
76 template<typename AddressNumberT = Aws::String>
77 Place& WithAddressNumber(AddressNumberT&& value) { SetAddressNumber(std::forward<AddressNumberT>(value)); return *this;}
79
81
85 inline const Aws::String& GetStreet() const { return m_street; }
86 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
87 template<typename StreetT = Aws::String>
88 void SetStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street = std::forward<StreetT>(value); }
89 template<typename StreetT = Aws::String>
90 Place& WithStreet(StreetT&& value) { SetStreet(std::forward<StreetT>(value)); return *this;}
92
94
97 inline const Aws::String& GetNeighborhood() const { return m_neighborhood; }
98 inline bool NeighborhoodHasBeenSet() const { return m_neighborhoodHasBeenSet; }
99 template<typename NeighborhoodT = Aws::String>
100 void SetNeighborhood(NeighborhoodT&& value) { m_neighborhoodHasBeenSet = true; m_neighborhood = std::forward<NeighborhoodT>(value); }
101 template<typename NeighborhoodT = Aws::String>
102 Place& WithNeighborhood(NeighborhoodT&& value) { SetNeighborhood(std::forward<NeighborhoodT>(value)); return *this;}
104
106
110 inline const Aws::String& GetMunicipality() const { return m_municipality; }
111 inline bool MunicipalityHasBeenSet() const { return m_municipalityHasBeenSet; }
112 template<typename MunicipalityT = Aws::String>
113 void SetMunicipality(MunicipalityT&& value) { m_municipalityHasBeenSet = true; m_municipality = std::forward<MunicipalityT>(value); }
114 template<typename MunicipalityT = Aws::String>
115 Place& WithMunicipality(MunicipalityT&& value) { SetMunicipality(std::forward<MunicipalityT>(value)); return *this;}
117
119
123 inline const Aws::String& GetSubRegion() const { return m_subRegion; }
124 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
125 template<typename SubRegionT = Aws::String>
126 void SetSubRegion(SubRegionT&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::forward<SubRegionT>(value); }
127 template<typename SubRegionT = Aws::String>
128 Place& WithSubRegion(SubRegionT&& value) { SetSubRegion(std::forward<SubRegionT>(value)); return *this;}
130
132
136 inline const Aws::String& GetRegion() const { return m_region; }
137 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
138 template<typename RegionT = Aws::String>
139 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
140 template<typename RegionT = Aws::String>
141 Place& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
143
145
150 inline const Aws::String& GetCountry() const { return m_country; }
151 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
152 template<typename CountryT = Aws::String>
153 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
154 template<typename CountryT = Aws::String>
155 Place& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
157
159
163 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
164 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
165 template<typename PostalCodeT = Aws::String>
166 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
167 template<typename PostalCodeT = Aws::String>
168 Place& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
170
172
181 inline bool GetInterpolated() const { return m_interpolated; }
182 inline bool InterpolatedHasBeenSet() const { return m_interpolatedHasBeenSet; }
183 inline void SetInterpolated(bool value) { m_interpolatedHasBeenSet = true; m_interpolated = value; }
184 inline Place& WithInterpolated(bool value) { SetInterpolated(value); return *this;}
186
188
192 inline const TimeZone& GetTimeZone() const { return m_timeZone; }
193 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
194 template<typename TimeZoneT = TimeZone>
195 void SetTimeZone(TimeZoneT&& value) { m_timeZoneHasBeenSet = true; m_timeZone = std::forward<TimeZoneT>(value); }
196 template<typename TimeZoneT = TimeZone>
197 Place& WithTimeZone(TimeZoneT&& value) { SetTimeZone(std::forward<TimeZoneT>(value)); return *this;}
199
201
206 inline const Aws::String& GetUnitType() const { return m_unitType; }
207 inline bool UnitTypeHasBeenSet() const { return m_unitTypeHasBeenSet; }
208 template<typename UnitTypeT = Aws::String>
209 void SetUnitType(UnitTypeT&& value) { m_unitTypeHasBeenSet = true; m_unitType = std::forward<UnitTypeT>(value); }
210 template<typename UnitTypeT = Aws::String>
211 Place& WithUnitType(UnitTypeT&& value) { SetUnitType(std::forward<UnitTypeT>(value)); return *this;}
213
215
221 inline const Aws::String& GetUnitNumber() const { return m_unitNumber; }
222 inline bool UnitNumberHasBeenSet() const { return m_unitNumberHasBeenSet; }
223 template<typename UnitNumberT = Aws::String>
224 void SetUnitNumber(UnitNumberT&& value) { m_unitNumberHasBeenSet = true; m_unitNumber = std::forward<UnitNumberT>(value); }
225 template<typename UnitNumberT = Aws::String>
226 Place& WithUnitNumber(UnitNumberT&& value) { SetUnitNumber(std::forward<UnitNumberT>(value)); return *this;}
228
230
237 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
238 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
239 template<typename CategoriesT = Aws::Vector<Aws::String>>
240 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
241 template<typename CategoriesT = Aws::Vector<Aws::String>>
242 Place& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
243 template<typename CategoriesT = Aws::String>
244 Place& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
246
248
252 inline const Aws::Vector<Aws::String>& GetSupplementalCategories() const { return m_supplementalCategories; }
253 inline bool SupplementalCategoriesHasBeenSet() const { return m_supplementalCategoriesHasBeenSet; }
254 template<typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
255 void SetSupplementalCategories(SupplementalCategoriesT&& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories = std::forward<SupplementalCategoriesT>(value); }
256 template<typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
257 Place& WithSupplementalCategories(SupplementalCategoriesT&& value) { SetSupplementalCategories(std::forward<SupplementalCategoriesT>(value)); return *this;}
258 template<typename SupplementalCategoriesT = Aws::String>
259 Place& AddSupplementalCategories(SupplementalCategoriesT&& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories.emplace_back(std::forward<SupplementalCategoriesT>(value)); return *this; }
261
263
270 inline const Aws::String& GetSubMunicipality() const { return m_subMunicipality; }
271 inline bool SubMunicipalityHasBeenSet() const { return m_subMunicipalityHasBeenSet; }
272 template<typename SubMunicipalityT = Aws::String>
273 void SetSubMunicipality(SubMunicipalityT&& value) { m_subMunicipalityHasBeenSet = true; m_subMunicipality = std::forward<SubMunicipalityT>(value); }
274 template<typename SubMunicipalityT = Aws::String>
275 Place& WithSubMunicipality(SubMunicipalityT&& value) { SetSubMunicipality(std::forward<SubMunicipalityT>(value)); return *this;}
277 private:
278
279 Aws::String m_label;
280 bool m_labelHasBeenSet = false;
281
282 PlaceGeometry m_geometry;
283 bool m_geometryHasBeenSet = false;
284
285 Aws::String m_addressNumber;
286 bool m_addressNumberHasBeenSet = false;
287
288 Aws::String m_street;
289 bool m_streetHasBeenSet = false;
290
291 Aws::String m_neighborhood;
292 bool m_neighborhoodHasBeenSet = false;
293
294 Aws::String m_municipality;
295 bool m_municipalityHasBeenSet = false;
296
297 Aws::String m_subRegion;
298 bool m_subRegionHasBeenSet = false;
299
300 Aws::String m_region;
301 bool m_regionHasBeenSet = false;
302
303 Aws::String m_country;
304 bool m_countryHasBeenSet = false;
305
306 Aws::String m_postalCode;
307 bool m_postalCodeHasBeenSet = false;
308
309 bool m_interpolated{false};
310 bool m_interpolatedHasBeenSet = false;
311
312 TimeZone m_timeZone;
313 bool m_timeZoneHasBeenSet = false;
314
315 Aws::String m_unitType;
316 bool m_unitTypeHasBeenSet = false;
317
318 Aws::String m_unitNumber;
319 bool m_unitNumberHasBeenSet = false;
320
321 Aws::Vector<Aws::String> m_categories;
322 bool m_categoriesHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_supplementalCategories;
325 bool m_supplementalCategoriesHasBeenSet = false;
326
327 Aws::String m_subMunicipality;
328 bool m_subMunicipalityHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace LocationService
333} // namespace Aws
void SetAddressNumber(AddressNumberT &&value)
Definition Place.h:75
Place & WithStreet(StreetT &&value)
Definition Place.h:90
Place & WithNeighborhood(NeighborhoodT &&value)
Definition Place.h:102
Place & WithSubMunicipality(SubMunicipalityT &&value)
Definition Place.h:275
void SetGeometry(GeometryT &&value)
Definition Place.h:63
void SetSubMunicipality(SubMunicipalityT &&value)
Definition Place.h:273
const Aws::String & GetPostalCode() const
Definition Place.h:163
bool InterpolatedHasBeenSet() const
Definition Place.h:182
Place & AddSupplementalCategories(SupplementalCategoriesT &&value)
Definition Place.h:259
void SetLabel(LabelT &&value)
Definition Place.h:53
Place & WithSubRegion(SubRegionT &&value)
Definition Place.h:128
void SetSupplementalCategories(SupplementalCategoriesT &&value)
Definition Place.h:255
bool SubMunicipalityHasBeenSet() const
Definition Place.h:271
Place & WithCountry(CountryT &&value)
Definition Place.h:155
Place & WithUnitType(UnitTypeT &&value)
Definition Place.h:211
Place & WithSupplementalCategories(SupplementalCategoriesT &&value)
Definition Place.h:257
AWS_LOCATIONSERVICE_API Place & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreet(StreetT &&value)
Definition Place.h:88
const Aws::String & GetSubRegion() const
Definition Place.h:123
Place & WithUnitNumber(UnitNumberT &&value)
Definition Place.h:226
const Aws::String & GetLabel() const
Definition Place.h:50
void SetPostalCode(PostalCodeT &&value)
Definition Place.h:166
Place & WithLabel(LabelT &&value)
Definition Place.h:55
void SetTimeZone(TimeZoneT &&value)
Definition Place.h:195
Place & WithPostalCode(PostalCodeT &&value)
Definition Place.h:168
const Aws::String & GetCountry() const
Definition Place.h:150
Place & AddCategories(CategoriesT &&value)
Definition Place.h:244
void SetCategories(CategoriesT &&value)
Definition Place.h:240
const Aws::Vector< Aws::String > & GetCategories() const
Definition Place.h:237
const TimeZone & GetTimeZone() const
Definition Place.h:192
const Aws::String & GetAddressNumber() const
Definition Place.h:72
bool SupplementalCategoriesHasBeenSet() const
Definition Place.h:253
void SetUnitNumber(UnitNumberT &&value)
Definition Place.h:224
Place & WithAddressNumber(AddressNumberT &&value)
Definition Place.h:77
void SetRegion(RegionT &&value)
Definition Place.h:139
void SetSubRegion(SubRegionT &&value)
Definition Place.h:126
void SetInterpolated(bool value)
Definition Place.h:183
Place & WithTimeZone(TimeZoneT &&value)
Definition Place.h:197
const PlaceGeometry & GetGeometry() const
Definition Place.h:60
bool MunicipalityHasBeenSet() const
Definition Place.h:111
const Aws::String & GetSubMunicipality() const
Definition Place.h:270
void SetNeighborhood(NeighborhoodT &&value)
Definition Place.h:100
Place & WithGeometry(GeometryT &&value)
Definition Place.h:65
const Aws::String & GetUnitType() const
Definition Place.h:206
AWS_LOCATIONSERVICE_API Place()=default
Place & WithCategories(CategoriesT &&value)
Definition Place.h:242
Place & WithMunicipality(MunicipalityT &&value)
Definition Place.h:115
const Aws::String & GetNeighborhood() const
Definition Place.h:97
AWS_LOCATIONSERVICE_API Place(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMunicipality() const
Definition Place.h:110
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Place & WithInterpolated(bool value)
Definition Place.h:184
bool AddressNumberHasBeenSet() const
Definition Place.h:73
Place & WithRegion(RegionT &&value)
Definition Place.h:141
void SetMunicipality(MunicipalityT &&value)
Definition Place.h:113
void SetCountry(CountryT &&value)
Definition Place.h:153
const Aws::Vector< Aws::String > & GetSupplementalCategories() const
Definition Place.h:252
const Aws::String & GetStreet() const
Definition Place.h:85
const Aws::String & GetRegion() const
Definition Place.h:136
const Aws::String & GetUnitNumber() const
Definition Place.h:221
void SetUnitType(UnitTypeT &&value)
Definition Place.h:209
bool NeighborhoodHasBeenSet() const
Definition Place.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue