AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
SuggestResultItem.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/SuggestHighlights.h>
10#include <aws/geo-places/model/SuggestPlaceResult.h>
11#include <aws/geo-places/model/SuggestQueryResult.h>
12#include <aws/geo-places/model/SuggestResultItemType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoPlaces {
24namespace Model {
25
32 public:
33 AWS_GEOPLACES_API SuggestResultItem() = default;
34 AWS_GEOPLACES_API SuggestResultItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetTitle() const { return m_title; }
44 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
45 template <typename TitleT = Aws::String>
46 void SetTitle(TitleT&& value) {
47 m_titleHasBeenSet = true;
48 m_title = std::forward<TitleT>(value);
49 }
50 template <typename TitleT = Aws::String>
51 SuggestResultItem& WithTitle(TitleT&& value) {
52 SetTitle(std::forward<TitleT>(value));
53 return *this;
54 }
56
58
63 inline SuggestResultItemType GetSuggestResultItemType() const { return m_suggestResultItemType; }
64 inline bool SuggestResultItemTypeHasBeenSet() const { return m_suggestResultItemTypeHasBeenSet; }
66 m_suggestResultItemTypeHasBeenSet = true;
67 m_suggestResultItemType = value;
68 }
71 return *this;
72 }
74
76
79 inline const SuggestPlaceResult& GetPlace() const { return m_place; }
80 inline bool PlaceHasBeenSet() const { return m_placeHasBeenSet; }
81 template <typename PlaceT = SuggestPlaceResult>
82 void SetPlace(PlaceT&& value) {
83 m_placeHasBeenSet = true;
84 m_place = std::forward<PlaceT>(value);
85 }
86 template <typename PlaceT = SuggestPlaceResult>
87 SuggestResultItem& WithPlace(PlaceT&& value) {
88 SetPlace(std::forward<PlaceT>(value));
89 return *this;
90 }
92
94
95 inline const SuggestQueryResult& GetQuery() const { return m_query; }
96 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
97 template <typename QueryT = SuggestQueryResult>
98 void SetQuery(QueryT&& value) {
99 m_queryHasBeenSet = true;
100 m_query = std::forward<QueryT>(value);
101 }
102 template <typename QueryT = SuggestQueryResult>
103 SuggestResultItem& WithQuery(QueryT&& value) {
104 SetQuery(std::forward<QueryT>(value));
105 return *this;
106 }
108
110
114 inline const SuggestHighlights& GetHighlights() const { return m_highlights; }
115 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
116 template <typename HighlightsT = SuggestHighlights>
117 void SetHighlights(HighlightsT&& value) {
118 m_highlightsHasBeenSet = true;
119 m_highlights = std::forward<HighlightsT>(value);
120 }
121 template <typename HighlightsT = SuggestHighlights>
122 SuggestResultItem& WithHighlights(HighlightsT&& value) {
123 SetHighlights(std::forward<HighlightsT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_title;
129
131
132 SuggestPlaceResult m_place;
133
134 SuggestQueryResult m_query;
135
136 SuggestHighlights m_highlights;
137 bool m_titleHasBeenSet = false;
138 bool m_suggestResultItemTypeHasBeenSet = false;
139 bool m_placeHasBeenSet = false;
140 bool m_queryHasBeenSet = false;
141 bool m_highlightsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace GeoPlaces
146} // namespace Aws
void SetSuggestResultItemType(SuggestResultItemType value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOPLACES_API SuggestResultItem()=default
SuggestResultItem & WithSuggestResultItemType(SuggestResultItemType value)
const SuggestQueryResult & GetQuery() const
SuggestResultItem & WithPlace(PlaceT &&value)
const SuggestHighlights & GetHighlights() const
SuggestResultItemType GetSuggestResultItemType() const
AWS_GEOPLACES_API SuggestResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
SuggestResultItem & WithQuery(QueryT &&value)
SuggestResultItem & WithTitle(TitleT &&value)
AWS_GEOPLACES_API SuggestResultItem(Aws::Utils::Json::JsonView jsonValue)
SuggestResultItem & WithHighlights(HighlightsT &&value)
const SuggestPlaceResult & GetPlace() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue