AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
134 inline const Aws::String& GetLanguage() const { return m_language; }
135 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
136 template <typename LanguageT = Aws::String>
137 void SetLanguage(LanguageT&& value) {
138 m_languageHasBeenSet = true;
139 m_language = std::forward<LanguageT>(value);
140 }
141 template <typename LanguageT = Aws::String>
143 SetLanguage(std::forward<LanguageT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
155 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
156 template <typename PoliticalViewT = Aws::String>
157 void SetPoliticalView(PoliticalViewT&& value) {
158 m_politicalViewHasBeenSet = true;
159 m_politicalView = std::forward<PoliticalViewT>(value);
160 }
161 template <typename PoliticalViewT = Aws::String>
162 AutocompleteResultItem& WithPoliticalView(PoliticalViewT&& value) {
163 SetPoliticalView(std::forward<PoliticalViewT>(value));
164 return *this;
165 }
167
169
173 inline const AutocompleteHighlights& GetHighlights() const { return m_highlights; }
174 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
175 template <typename HighlightsT = AutocompleteHighlights>
176 void SetHighlights(HighlightsT&& value) {
177 m_highlightsHasBeenSet = true;
178 m_highlights = std::forward<HighlightsT>(value);
179 }
180 template <typename HighlightsT = AutocompleteHighlights>
182 SetHighlights(std::forward<HighlightsT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_placeId;
188 bool m_placeIdHasBeenSet = false;
189
190 PlaceType m_placeType{PlaceType::NOT_SET};
191 bool m_placeTypeHasBeenSet = false;
192
193 Aws::String m_title;
194 bool m_titleHasBeenSet = false;
195
196 Address m_address;
197 bool m_addressHasBeenSet = false;
198
199 long long m_distance{0};
200 bool m_distanceHasBeenSet = false;
201
202 Aws::String m_language;
203 bool m_languageHasBeenSet = false;
204
205 Aws::String m_politicalView;
206 bool m_politicalViewHasBeenSet = false;
207
208 AutocompleteHighlights m_highlights;
209 bool m_highlightsHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace GeoPlaces
214} // namespace Aws
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