AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AutocompleteResultItem.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-places/model/PlaceType.h>
10#include <aws/geo-places/model/Address.h>
11#include <aws/geo-places/model/AutocompleteHighlights.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoPlaces
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GEOPLACES_API AutocompleteResultItem() = default;
40 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetPlaceId() const { return m_placeId; }
49 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
50 template<typename PlaceIdT = Aws::String>
51 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
52 template<typename PlaceIdT = Aws::String>
53 AutocompleteResultItem& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
55
57
60 inline PlaceType GetPlaceType() const { return m_placeType; }
61 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
62 inline void SetPlaceType(PlaceType value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
63 inline AutocompleteResultItem& WithPlaceType(PlaceType value) { SetPlaceType(value); return *this;}
65
67
71 inline const Aws::String& GetTitle() const { return m_title; }
72 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
73 template<typename TitleT = Aws::String>
74 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
75 template<typename TitleT = Aws::String>
76 AutocompleteResultItem& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
78
80
83 inline const Address& GetAddress() const { return m_address; }
84 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
85 template<typename AddressT = Address>
86 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
87 template<typename AddressT = Address>
88 AutocompleteResultItem& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
90
92
97 inline long long GetDistance() const { return m_distance; }
98 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
99 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
100 inline AutocompleteResultItem& WithDistance(long long value) { SetDistance(value); return *this;}
102
104
110 inline const Aws::String& GetLanguage() const { return m_language; }
111 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
112 template<typename LanguageT = Aws::String>
113 void SetLanguage(LanguageT&& value) { m_languageHasBeenSet = true; m_language = std::forward<LanguageT>(value); }
114 template<typename LanguageT = Aws::String>
115 AutocompleteResultItem& WithLanguage(LanguageT&& value) { SetLanguage(std::forward<LanguageT>(value)); return *this;}
117
119
124 inline const Aws::String& GetPoliticalView() const { return m_politicalView; }
125 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
126 template<typename PoliticalViewT = Aws::String>
127 void SetPoliticalView(PoliticalViewT&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::forward<PoliticalViewT>(value); }
128 template<typename PoliticalViewT = Aws::String>
129 AutocompleteResultItem& WithPoliticalView(PoliticalViewT&& value) { SetPoliticalView(std::forward<PoliticalViewT>(value)); return *this;}
131
133
137 inline const AutocompleteHighlights& GetHighlights() const { return m_highlights; }
138 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
139 template<typename HighlightsT = AutocompleteHighlights>
140 void SetHighlights(HighlightsT&& value) { m_highlightsHasBeenSet = true; m_highlights = std::forward<HighlightsT>(value); }
141 template<typename HighlightsT = AutocompleteHighlights>
142 AutocompleteResultItem& WithHighlights(HighlightsT&& value) { SetHighlights(std::forward<HighlightsT>(value)); return *this;}
144 private:
145
146 Aws::String m_placeId;
147 bool m_placeIdHasBeenSet = false;
148
149 PlaceType m_placeType{PlaceType::NOT_SET};
150 bool m_placeTypeHasBeenSet = false;
151
152 Aws::String m_title;
153 bool m_titleHasBeenSet = false;
154
155 Address m_address;
156 bool m_addressHasBeenSet = false;
157
158 long long m_distance{0};
159 bool m_distanceHasBeenSet = false;
160
161 Aws::String m_language;
162 bool m_languageHasBeenSet = false;
163
164 Aws::String m_politicalView;
165 bool m_politicalViewHasBeenSet = false;
166
167 AutocompleteHighlights m_highlights;
168 bool m_highlightsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace GeoPlaces
173} // 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