AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
50 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
51 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
52 inline GeocodeQueryComponents& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
53 inline GeocodeQueryComponents& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
54 inline GeocodeQueryComponents& WithCountry(const char* value) { SetCountry(value); return *this;}
56
58
62 inline const Aws::String& GetRegion() const{ return m_region; }
63 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
64 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
65 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
66 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
67 inline GeocodeQueryComponents& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
68 inline GeocodeQueryComponents& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
69 inline GeocodeQueryComponents& WithRegion(const char* value) { SetRegion(value); return *this;}
71
73
76 inline const Aws::String& GetSubRegion() const{ return m_subRegion; }
77 inline bool SubRegionHasBeenSet() const { return m_subRegionHasBeenSet; }
78 inline void SetSubRegion(const Aws::String& value) { m_subRegionHasBeenSet = true; m_subRegion = value; }
79 inline void SetSubRegion(Aws::String&& value) { m_subRegionHasBeenSet = true; m_subRegion = std::move(value); }
80 inline void SetSubRegion(const char* value) { m_subRegionHasBeenSet = true; m_subRegion.assign(value); }
81 inline GeocodeQueryComponents& WithSubRegion(const Aws::String& value) { SetSubRegion(value); return *this;}
82 inline GeocodeQueryComponents& WithSubRegion(Aws::String&& value) { SetSubRegion(std::move(value)); return *this;}
83 inline GeocodeQueryComponents& WithSubRegion(const char* value) { SetSubRegion(value); return *this;}
85
87
91 inline const Aws::String& GetLocality() const{ return m_locality; }
92 inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; }
93 inline void SetLocality(const Aws::String& value) { m_localityHasBeenSet = true; m_locality = value; }
94 inline void SetLocality(Aws::String&& value) { m_localityHasBeenSet = true; m_locality = std::move(value); }
95 inline void SetLocality(const char* value) { m_localityHasBeenSet = true; m_locality.assign(value); }
96 inline GeocodeQueryComponents& WithLocality(const Aws::String& value) { SetLocality(value); return *this;}
97 inline GeocodeQueryComponents& WithLocality(Aws::String&& value) { SetLocality(std::move(value)); return *this;}
98 inline GeocodeQueryComponents& WithLocality(const char* value) { SetLocality(value); return *this;}
100
102
105 inline const Aws::String& GetDistrict() const{ return m_district; }
106 inline bool DistrictHasBeenSet() const { return m_districtHasBeenSet; }
107 inline void SetDistrict(const Aws::String& value) { m_districtHasBeenSet = true; m_district = value; }
108 inline void SetDistrict(Aws::String&& value) { m_districtHasBeenSet = true; m_district = std::move(value); }
109 inline void SetDistrict(const char* value) { m_districtHasBeenSet = true; m_district.assign(value); }
110 inline GeocodeQueryComponents& WithDistrict(const Aws::String& value) { SetDistrict(value); return *this;}
111 inline GeocodeQueryComponents& WithDistrict(Aws::String&& value) { SetDistrict(std::move(value)); return *this;}
112 inline GeocodeQueryComponents& WithDistrict(const char* value) { SetDistrict(value); return *this;}
114
116
119 inline const Aws::String& GetStreet() const{ return m_street; }
120 inline bool StreetHasBeenSet() const { return m_streetHasBeenSet; }
121 inline void SetStreet(const Aws::String& value) { m_streetHasBeenSet = true; m_street = value; }
122 inline void SetStreet(Aws::String&& value) { m_streetHasBeenSet = true; m_street = std::move(value); }
123 inline void SetStreet(const char* value) { m_streetHasBeenSet = true; m_street.assign(value); }
124 inline GeocodeQueryComponents& WithStreet(const Aws::String& value) { SetStreet(value); return *this;}
125 inline GeocodeQueryComponents& WithStreet(Aws::String&& value) { SetStreet(std::move(value)); return *this;}
126 inline GeocodeQueryComponents& WithStreet(const char* value) { SetStreet(value); return *this;}
128
130
133 inline const Aws::String& GetAddressNumber() const{ return m_addressNumber; }
134 inline bool AddressNumberHasBeenSet() const { return m_addressNumberHasBeenSet; }
135 inline void SetAddressNumber(const Aws::String& value) { m_addressNumberHasBeenSet = true; m_addressNumber = value; }
136 inline void SetAddressNumber(Aws::String&& value) { m_addressNumberHasBeenSet = true; m_addressNumber = std::move(value); }
137 inline void SetAddressNumber(const char* value) { m_addressNumberHasBeenSet = true; m_addressNumber.assign(value); }
138 inline GeocodeQueryComponents& WithAddressNumber(const Aws::String& value) { SetAddressNumber(value); return *this;}
139 inline GeocodeQueryComponents& WithAddressNumber(Aws::String&& value) { SetAddressNumber(std::move(value)); return *this;}
140 inline GeocodeQueryComponents& WithAddressNumber(const char* value) { SetAddressNumber(value); return *this;}
142
144
149 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
150 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
151 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
152 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
153 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
154 inline GeocodeQueryComponents& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
155 inline GeocodeQueryComponents& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
156 inline GeocodeQueryComponents& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
158 private:
159
160 Aws::String m_country;
161 bool m_countryHasBeenSet = false;
162
163 Aws::String m_region;
164 bool m_regionHasBeenSet = false;
165
166 Aws::String m_subRegion;
167 bool m_subRegionHasBeenSet = false;
168
169 Aws::String m_locality;
170 bool m_localityHasBeenSet = false;
171
172 Aws::String m_district;
173 bool m_districtHasBeenSet = false;
174
175 Aws::String m_street;
176 bool m_streetHasBeenSet = false;
177
178 Aws::String m_addressNumber;
179 bool m_addressNumberHasBeenSet = false;
180
181 Aws::String m_postalCode;
182 bool m_postalCodeHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace GeoPlaces
187} // namespace Aws
GeocodeQueryComponents & WithLocality(Aws::String &&value)
GeocodeQueryComponents & WithPostalCode(const Aws::String &value)
GeocodeQueryComponents & WithDistrict(const Aws::String &value)
GeocodeQueryComponents & WithCountry(const Aws::String &value)
GeocodeQueryComponents & WithRegion(const Aws::String &value)
GeocodeQueryComponents & WithAddressNumber(const char *value)
GeocodeQueryComponents & WithLocality(const char *value)
GeocodeQueryComponents & WithLocality(const Aws::String &value)
GeocodeQueryComponents & WithRegion(Aws::String &&value)
AWS_GEOPLACES_API GeocodeQueryComponents & operator=(Aws::Utils::Json::JsonView jsonValue)
GeocodeQueryComponents & WithPostalCode(const char *value)
GeocodeQueryComponents & WithCountry(const char *value)
GeocodeQueryComponents & WithDistrict(Aws::String &&value)
GeocodeQueryComponents & WithDistrict(const char *value)
GeocodeQueryComponents & WithStreet(Aws::String &&value)
GeocodeQueryComponents & WithSubRegion(const char *value)
GeocodeQueryComponents & WithSubRegion(const Aws::String &value)
GeocodeQueryComponents & WithStreet(const Aws::String &value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
GeocodeQueryComponents & WithPostalCode(Aws::String &&value)
GeocodeQueryComponents & WithSubRegion(Aws::String &&value)
GeocodeQueryComponents & WithAddressNumber(Aws::String &&value)
GeocodeQueryComponents & WithRegion(const char *value)
GeocodeQueryComponents & WithCountry(Aws::String &&value)
GeocodeQueryComponents & WithStreet(const char *value)
AWS_GEOPLACES_API GeocodeQueryComponents(Aws::Utils::Json::JsonView jsonValue)
GeocodeQueryComponents & WithAddressNumber(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue