AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GeocodeQueryComponents.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoPlaces {
20namespace Model {
21
30 public:
31 AWS_GEOPLACES_API GeocodeQueryComponents() = default;
34 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetCountry() const { return m_country; }
42 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
43 template <typename CountryT = Aws::String>
44 void SetCountry(CountryT&& value) {
45 m_countryHasBeenSet = true;
46 m_country = std::forward<CountryT>(value);
47 }
48 template <typename CountryT = Aws::String>
50 SetCountry(std::forward<CountryT>(value));
51 return *this;
52 }
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) {
64 m_regionHasBeenSet = true;
65 m_region = std::forward<RegionT>(value);
66 }
67 template <typename RegionT = Aws::String>
69 SetRegion(std::forward<RegionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSubRegion() const { return m_subRegion; }
79 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
80 template <typename SubRegionT = Aws::String>
81 void SetSubRegion(SubRegionT&& value) {
82 m_subRegionHasBeenSet = true;
83 m_subRegion = std::forward<SubRegionT>(value);
84 }
85 template <typename SubRegionT = Aws::String>
87 SetSubRegion(std::forward<SubRegionT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetLocality() const { return m_locality; }
98 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
99 template <typename LocalityT = Aws::String>
100 void SetLocality(LocalityT&& value) {
101 m_localityHasBeenSet = true;
102 m_locality = std::forward<LocalityT>(value);
103 }
104 template <typename LocalityT = Aws::String>
106 SetLocality(std::forward<LocalityT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDistrict() const { return m_district; }
116 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
117 template <typename DistrictT = Aws::String>
118 void SetDistrict(DistrictT&& value) {
119 m_districtHasBeenSet = true;
120 m_district = std::forward<DistrictT>(value);
121 }
122 template <typename DistrictT = Aws::String>
124 SetDistrict(std::forward<DistrictT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetStreet() const { return m_street; }
134 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
135 template <typename StreetT = Aws::String>
136 void SetStreet(StreetT&& value) {
137 m_streetHasBeenSet = true;
138 m_street = std::forward<StreetT>(value);
139 }
140 template <typename StreetT = Aws::String>
142 SetStreet(std::forward<StreetT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetAddressNumber() const { return m_addressNumber; }
152 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
153 template <typename AddressNumberT = Aws::String>
154 void SetAddressNumber(AddressNumberT&& value) {
155 m_addressNumberHasBeenSet = true;
156 m_addressNumber = std::forward<AddressNumberT>(value);
157 }
158 template <typename AddressNumberT = Aws::String>
159 GeocodeQueryComponents& WithAddressNumber(AddressNumberT&& value) {
160 SetAddressNumber(std::forward<AddressNumberT>(value));
161 return *this;
162 }
164
166
171 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
172 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
173 template <typename PostalCodeT = Aws::String>
174 void SetPostalCode(PostalCodeT&& value) {
175 m_postalCodeHasBeenSet = true;
176 m_postalCode = std::forward<PostalCodeT>(value);
177 }
178 template <typename PostalCodeT = Aws::String>
180 SetPostalCode(std::forward<PostalCodeT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_country;
186 bool m_countryHasBeenSet = false;
187
188 Aws::String m_region;
189 bool m_regionHasBeenSet = false;
190
191 Aws::String m_subRegion;
192 bool m_subRegionHasBeenSet = false;
193
194 Aws::String m_locality;
195 bool m_localityHasBeenSet = false;
196
197 Aws::String m_district;
198 bool m_districtHasBeenSet = false;
199
200 Aws::String m_street;
201 bool m_streetHasBeenSet = false;
202
203 Aws::String m_addressNumber;
204 bool m_addressNumberHasBeenSet = false;
205
206 Aws::String m_postalCode;
207 bool m_postalCodeHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace GeoPlaces
212} // 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