AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SuggestResultItem.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/SuggestResultItemType.h>
10#include <aws/geo-places/model/SuggestPlaceResult.h>
11#include <aws/geo-places/model/SuggestQueryResult.h>
12#include <aws/geo-places/model/SuggestHighlights.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoPlaces
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_GEOPLACES_API SuggestResultItem() = default;
39 AWS_GEOPLACES_API SuggestResultItem(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetTitle() const { return m_title; }
50 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
51 template<typename TitleT = Aws::String>
52 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
53 template<typename TitleT = Aws::String>
54 SuggestResultItem& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
56
58
63 inline SuggestResultItemType GetSuggestResultItemType() const { return m_suggestResultItemType; }
64 inline bool SuggestResultItemTypeHasBeenSet() const { return m_suggestResultItemTypeHasBeenSet; }
65 inline void SetSuggestResultItemType(SuggestResultItemType value) { m_suggestResultItemTypeHasBeenSet = true; m_suggestResultItemType = value; }
68
70
73 inline const SuggestPlaceResult& GetPlace() const { return m_place; }
74 inline bool PlaceHasBeenSet() const { return m_placeHasBeenSet; }
75 template<typename PlaceT = SuggestPlaceResult>
76 void SetPlace(PlaceT&& value) { m_placeHasBeenSet = true; m_place = std::forward<PlaceT>(value); }
77 template<typename PlaceT = SuggestPlaceResult>
78 SuggestResultItem& WithPlace(PlaceT&& value) { SetPlace(std::forward<PlaceT>(value)); return *this;}
80
82
83 inline const SuggestQueryResult& GetQuery() const { return m_query; }
84 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
85 template<typename QueryT = SuggestQueryResult>
86 void SetQuery(QueryT&& value) { m_queryHasBeenSet = true; m_query = std::forward<QueryT>(value); }
87 template<typename QueryT = SuggestQueryResult>
88 SuggestResultItem& WithQuery(QueryT&& value) { SetQuery(std::forward<QueryT>(value)); return *this;}
90
92
96 inline const SuggestHighlights& GetHighlights() const { return m_highlights; }
97 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
98 template<typename HighlightsT = SuggestHighlights>
99 void SetHighlights(HighlightsT&& value) { m_highlightsHasBeenSet = true; m_highlights = std::forward<HighlightsT>(value); }
100 template<typename HighlightsT = SuggestHighlights>
101 SuggestResultItem& WithHighlights(HighlightsT&& value) { SetHighlights(std::forward<HighlightsT>(value)); return *this;}
103 private:
104
105 Aws::String m_title;
106 bool m_titleHasBeenSet = false;
107
109 bool m_suggestResultItemTypeHasBeenSet = false;
110
111 SuggestPlaceResult m_place;
112 bool m_placeHasBeenSet = false;
113
114 SuggestQueryResult m_query;
115 bool m_queryHasBeenSet = false;
116
117 SuggestHighlights m_highlights;
118 bool m_highlightsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace GeoPlaces
123} // 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