AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
51 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
52 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
53 inline AutocompleteResultItem& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
54 inline AutocompleteResultItem& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
55 inline AutocompleteResultItem& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
57
59
62 inline const PlaceType& GetPlaceType() const{ return m_placeType; }
63 inline bool PlaceTypeHasBeenSet() const { return m_placeTypeHasBeenSet; }
64 inline void SetPlaceType(const PlaceType& value) { m_placeTypeHasBeenSet = true; m_placeType = value; }
65 inline void SetPlaceType(PlaceType&& value) { m_placeTypeHasBeenSet = true; m_placeType = std::move(value); }
66 inline AutocompleteResultItem& WithPlaceType(const PlaceType& value) { SetPlaceType(value); return *this;}
67 inline AutocompleteResultItem& WithPlaceType(PlaceType&& value) { SetPlaceType(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetTitle() const{ return m_title; }
76 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
77 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
78 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
79 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
80 inline AutocompleteResultItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
81 inline AutocompleteResultItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
82 inline AutocompleteResultItem& WithTitle(const char* value) { SetTitle(value); return *this;}
84
86
89 inline const Address& GetAddress() const{ return m_address; }
90 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
91 inline void SetAddress(const Address& value) { m_addressHasBeenSet = true; m_address = value; }
92 inline void SetAddress(Address&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
93 inline AutocompleteResultItem& WithAddress(const Address& value) { SetAddress(value); return *this;}
94 inline AutocompleteResultItem& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;}
96
98
103 inline long long GetDistance() const{ return m_distance; }
104 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
105 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
106 inline AutocompleteResultItem& WithDistance(long long value) { SetDistance(value); return *this;}
108
110
116 inline const Aws::String& GetLanguage() const{ return m_language; }
117 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
118 inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
119 inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
120 inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
121 inline AutocompleteResultItem& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
122 inline AutocompleteResultItem& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;}
123 inline AutocompleteResultItem& WithLanguage(const char* value) { SetLanguage(value); return *this;}
125
127
132 inline const Aws::String& GetPoliticalView() const{ return m_politicalView; }
133 inline bool PoliticalViewHasBeenSet() const { return m_politicalViewHasBeenSet; }
134 inline void SetPoliticalView(const Aws::String& value) { m_politicalViewHasBeenSet = true; m_politicalView = value; }
135 inline void SetPoliticalView(Aws::String&& value) { m_politicalViewHasBeenSet = true; m_politicalView = std::move(value); }
136 inline void SetPoliticalView(const char* value) { m_politicalViewHasBeenSet = true; m_politicalView.assign(value); }
137 inline AutocompleteResultItem& WithPoliticalView(const Aws::String& value) { SetPoliticalView(value); return *this;}
138 inline AutocompleteResultItem& WithPoliticalView(Aws::String&& value) { SetPoliticalView(std::move(value)); return *this;}
139 inline AutocompleteResultItem& WithPoliticalView(const char* value) { SetPoliticalView(value); return *this;}
141
143
147 inline const AutocompleteHighlights& GetHighlights() const{ return m_highlights; }
148 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
149 inline void SetHighlights(const AutocompleteHighlights& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
150 inline void SetHighlights(AutocompleteHighlights&& value) { m_highlightsHasBeenSet = true; m_highlights = std::move(value); }
151 inline AutocompleteResultItem& WithHighlights(const AutocompleteHighlights& value) { SetHighlights(value); return *this;}
152 inline AutocompleteResultItem& WithHighlights(AutocompleteHighlights&& value) { SetHighlights(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_placeId;
157 bool m_placeIdHasBeenSet = false;
158
159 PlaceType m_placeType;
160 bool m_placeTypeHasBeenSet = false;
161
162 Aws::String m_title;
163 bool m_titleHasBeenSet = false;
164
165 Address m_address;
166 bool m_addressHasBeenSet = false;
167
168 long long m_distance;
169 bool m_distanceHasBeenSet = false;
170
171 Aws::String m_language;
172 bool m_languageHasBeenSet = false;
173
174 Aws::String m_politicalView;
175 bool m_politicalViewHasBeenSet = false;
176
177 AutocompleteHighlights m_highlights;
178 bool m_highlightsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace GeoPlaces
183} // namespace Aws
AutocompleteResultItem & WithTitle(Aws::String &&value)
AutocompleteResultItem & WithHighlights(const AutocompleteHighlights &value)
AutocompleteResultItem & WithPoliticalView(const char *value)
AutocompleteResultItem & WithLanguage(const Aws::String &value)
AutocompleteResultItem & WithDistance(long long value)
AutocompleteResultItem & WithPlaceType(const PlaceType &value)
AutocompleteResultItem & WithPoliticalView(const Aws::String &value)
AutocompleteResultItem & WithPoliticalView(Aws::String &&value)
AutocompleteResultItem & WithTitle(const Aws::String &value)
AWS_GEOPLACES_API AutocompleteResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AutocompleteResultItem & WithPlaceId(Aws::String &&value)
AutocompleteResultItem & WithLanguage(const char *value)
AutocompleteResultItem & WithPlaceId(const Aws::String &value)
AutocompleteResultItem & WithTitle(const char *value)
AutocompleteResultItem & WithAddress(Address &&value)
void SetHighlights(const AutocompleteHighlights &value)
AutocompleteResultItem & WithAddress(const Address &value)
AutocompleteResultItem & WithPlaceType(PlaceType &&value)
AutocompleteResultItem & WithHighlights(AutocompleteHighlights &&value)
AutocompleteResultItem & WithLanguage(Aws::String &&value)
const AutocompleteHighlights & GetHighlights() const
void SetHighlights(AutocompleteHighlights &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AutocompleteResultItem & WithPlaceId(const char *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