AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
AutocompleteResultItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9#include <aws/geo-places/model/Address.h>
10#include <aws/geo-places/model/AutocompleteHighlights.h>
11#include <aws/geo-places/model/PlaceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoPlaces {
23namespace Model {
24
31 public:
32 AWS_GEOPLACES_API AutocompleteResultItem() = default;
35 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetPlaceId() const { return m_placeId; }
43 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
44 template <typename PlaceIdT = Aws::String>
45 void SetPlaceId(PlaceIdT&& value) {
46 m_placeIdHasBeenSet = true;
47 m_placeId = std::forward<PlaceIdT>(value);
48 }
49 template <typename PlaceIdT = Aws::String>
51 SetPlaceId(std::forward<PlaceIdT>(value));
52 return *this;
53 }
55
57
60 inline PlaceType GetPlaceType() const { return m_placeType; }
61 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
62 inline void SetPlaceType(PlaceType value) {
63 m_placeTypeHasBeenSet = true;
64 m_placeType = value;
65 }
67 SetPlaceType(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetTitle() const { return m_title; }
78 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
79 template <typename TitleT = Aws::String>
80 void SetTitle(TitleT&& value) {
81 m_titleHasBeenSet = true;
82 m_title = std::forward<TitleT>(value);
83 }
84 template <typename TitleT = Aws::String>
86 SetTitle(std::forward<TitleT>(value));
87 return *this;
88 }
90
92
95 inline const Address& GetAddress() const { return m_address; }
96 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
97 template <typename AddressT = Address>
98 void SetAddress(AddressT&& value) {
99 m_addressHasBeenSet = true;
100 m_address = std::forward<AddressT>(value);
101 }
102 template <typename AddressT = Address>
104 SetAddress(std::forward<AddressT>(value));
105 return *this;
106 }
108
110
115 inline long long GetDistance() const { return m_distance; }
116 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
117 inline void SetDistance(long long value) {
118 m_distanceHasBeenSet = true;
119 m_distance = value;
120 }
121 inline AutocompleteResultItem& WithDistance(long long value) {
122 SetDistance(value);
123 return *this;
124 }
126
128
135 inline const Aws::String& GetLanguage() const { return m_language; }
136 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
137 template <typename LanguageT = Aws::String>
138 void SetLanguage(LanguageT&& value) {
139 m_languageHasBeenSet = true;
140 m_language = std::forward<LanguageT>(value);
141 }
142 template <typename LanguageT = Aws::String>
144 SetLanguage(std::forward<LanguageT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
156 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
157 template <typename PoliticalViewT = Aws::String>
158 void SetPoliticalView(PoliticalViewT&& value) {
159 m_politicalViewHasBeenSet = true;
160 m_politicalView = std::forward<PoliticalViewT>(value);
161 }
162 template <typename PoliticalViewT = Aws::String>
163 AutocompleteResultItem& WithPoliticalView(PoliticalViewT&& value) {
164 SetPoliticalView(std::forward<PoliticalViewT>(value));
165 return *this;
166 }
168
170
174 inline const AutocompleteHighlights& GetHighlights() const { return m_highlights; }
175 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
176 template <typename HighlightsT = AutocompleteHighlights>
177 void SetHighlights(HighlightsT&& value) {
178 m_highlightsHasBeenSet = true;
179 m_highlights = std::forward<HighlightsT>(value);
180 }
181 template <typename HighlightsT = AutocompleteHighlights>
183 SetHighlights(std::forward<HighlightsT>(value));
184 return *this;
185 }
187
189
193 inline bool GetEstimatedPointAddress() const { return m_estimatedPointAddress; }
194 inline bool EstimatedPointAddressHasBeenSet() const { return m_estimatedPointAddressHasBeenSet; }
195 inline void SetEstimatedPointAddress(bool value) {
196 m_estimatedPointAddressHasBeenSet = true;
197 m_estimatedPointAddress = value;
198 }
201 return *this;
202 }
204 private:
205 Aws::String m_placeId;
206
207 PlaceType m_placeType{PlaceType::NOT_SET};
208
209 Aws::String m_title;
210
211 Address m_address;
212
213 long long m_distance{0};
214
215 Aws::String m_language;
216
217 Aws::String m_politicalView;
218
219 AutocompleteHighlights m_highlights;
220
221 bool m_estimatedPointAddress{false};
222 bool m_placeIdHasBeenSet = false;
223 bool m_placeTypeHasBeenSet = false;
224 bool m_titleHasBeenSet = false;
225 bool m_addressHasBeenSet = false;
226 bool m_distanceHasBeenSet = false;
227 bool m_languageHasBeenSet = false;
228 bool m_politicalViewHasBeenSet = false;
229 bool m_highlightsHasBeenSet = false;
230 bool m_estimatedPointAddressHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace GeoPlaces
235} // namespace Aws
AutocompleteResultItem & WithEstimatedPointAddress(bool value)
AutocompleteResultItem & WithPlaceId(PlaceIdT &&value)
AutocompleteResultItem & WithLanguage(LanguageT &&value)
AutocompleteResultItem & WithDistance(long long value)
AutocompleteResultItem & WithPoliticalView(PoliticalViewT &&value)
AWS_GEOPLACES_API AutocompleteResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AutocompleteResultItem & WithHighlights(HighlightsT &&value)
const AutocompleteHighlights & GetHighlights() const
AWS_GEOPLACES_API AutocompleteResultItem()=default
AutocompleteResultItem & WithAddress(AddressT &&value)
AutocompleteResultItem & WithTitle(TitleT &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AutocompleteResultItem & WithPlaceType(PlaceType value)
AWS_GEOPLACES_API AutocompleteResultItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue