AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GeocodeQueryComponents.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_GEOPLACES_API GeocodeQueryComponents() = default;
39 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetCountry() const { return m_country; }
48 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
49 template<typename CountryT = Aws::String>
50 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
51 template<typename CountryT = Aws::String>
52 GeocodeQueryComponents& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
54
56
60 inline const Aws::String& GetRegion() const { return m_region; }
61 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
62 template<typename RegionT = Aws::String>
63 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
64 template<typename RegionT = Aws::String>
65 GeocodeQueryComponents& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetSubRegion() const { return m_subRegion; }
73 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
74 template<typename SubRegionT = Aws::String>
75 void SetSubRegion(SubRegionT&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::forward<SubRegionT>(value); }
76 template<typename SubRegionT = Aws::String>
77 GeocodeQueryComponents& WithSubRegion(SubRegionT&& value) { SetSubRegion(std::forward<SubRegionT>(value)); return *this;}
79
81
85 inline const Aws::String& GetLocality() const { return m_locality; }
86 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
87 template<typename LocalityT = Aws::String>
88 void SetLocality(LocalityT&& value) { m_localityHasBeenSet = true; m_locality = std::forward<LocalityT>(value); }
89 template<typename LocalityT = Aws::String>
90 GeocodeQueryComponents& WithLocality(LocalityT&& value) { SetLocality(std::forward<LocalityT>(value)); return *this;}
92
94
97 inline const Aws::String& GetDistrict() const { return m_district; }
98 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
99 template<typename DistrictT = Aws::String>
100 void SetDistrict(DistrictT&& value) { m_districtHasBeenSet = true; m_district = std::forward<DistrictT>(value); }
101 template<typename DistrictT = Aws::String>
102 GeocodeQueryComponents& WithDistrict(DistrictT&& value) { SetDistrict(std::forward<DistrictT>(value)); return *this;}
104
106
109 inline const Aws::String& GetStreet() const { return m_street; }
110 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
111 template<typename StreetT = Aws::String>
112 void SetStreet(StreetT&& value) { m_streetHasBeenSet = true; m_street = std::forward<StreetT>(value); }
113 template<typename StreetT = Aws::String>
114 GeocodeQueryComponents& WithStreet(StreetT&& value) { SetStreet(std::forward<StreetT>(value)); return *this;}
116
118
121 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
122 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
123 template<typename AddressNumberT = Aws::String>
124 void SetAddressNumber(AddressNumberT&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::forward<AddressNumberT>(value); }
125 template<typename AddressNumberT = Aws::String>
126 GeocodeQueryComponents& WithAddressNumber(AddressNumberT&& value) { SetAddressNumber(std::forward<AddressNumberT>(value)); return *this;}
128
130
135 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
136 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
137 template<typename PostalCodeT = Aws::String>
138 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
139 template<typename PostalCodeT = Aws::String>
140 GeocodeQueryComponents& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
142 private:
143
144 Aws::String m_country;
145 bool m_countryHasBeenSet = false;
146
147 Aws::String m_region;
148 bool m_regionHasBeenSet = false;
149
150 Aws::String m_subRegion;
151 bool m_subRegionHasBeenSet = false;
152
153 Aws::String m_locality;
154 bool m_localityHasBeenSet = false;
155
156 Aws::String m_district;
157 bool m_districtHasBeenSet = false;
158
159 Aws::String m_street;
160 bool m_streetHasBeenSet = false;
161
162 Aws::String m_addressNumber;
163 bool m_addressNumberHasBeenSet = false;
164
165 Aws::String m_postalCode;
166 bool m_postalCodeHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GeoPlaces
171} // namespace Aws
GeocodeQueryComponents & WithDistrict(DistrictT &&value)
GeocodeQueryComponents & WithStreet(StreetT &&value)
AWS_GEOPLACES_API GeocodeQueryComponents()=default
GeocodeQueryComponents & WithPostalCode(PostalCodeT &&value)
AWS_GEOPLACES_API GeocodeQueryComponents & operator=(Aws::Utils::Json::JsonView jsonValue)
GeocodeQueryComponents & WithAddressNumber(AddressNumberT &&value)
GeocodeQueryComponents & WithLocality(LocalityT &&value)
GeocodeQueryComponents & WithRegion(RegionT &&value)
GeocodeQueryComponents & WithCountry(CountryT &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
GeocodeQueryComponents & WithSubRegion(SubRegionT &&value)
AWS_GEOPLACES_API GeocodeQueryComponents(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue