AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
52 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
53 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
54 inline SuggestResultItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
55 inline SuggestResultItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
56 inline SuggestResultItem& WithTitle(const char* value) { SetTitle(value); return *this;}
58
60
65 inline const SuggestResultItemType& GetSuggestResultItemType() const{ return m_suggestResultItemType; }
66 inline bool SuggestResultItemTypeHasBeenSet() const { return m_suggestResultItemTypeHasBeenSet; }
67 inline void SetSuggestResultItemType(const SuggestResultItemType& value) { m_suggestResultItemTypeHasBeenSet = true; m_suggestResultItemType = value; }
68 inline void SetSuggestResultItemType(SuggestResultItemType&& value) { m_suggestResultItemTypeHasBeenSet = true; m_suggestResultItemType = std::move(value); }
72
74
77 inline const SuggestPlaceResult& GetPlace() const{ return m_place; }
78 inline bool PlaceHasBeenSet() const { return m_placeHasBeenSet; }
79 inline void SetPlace(const SuggestPlaceResult& value) { m_placeHasBeenSet = true; m_place = value; }
80 inline void SetPlace(SuggestPlaceResult&& value) { m_placeHasBeenSet = true; m_place = std::move(value); }
81 inline SuggestResultItem& WithPlace(const SuggestPlaceResult& value) { SetPlace(value); return *this;}
82 inline SuggestResultItem& WithPlace(SuggestPlaceResult&& value) { SetPlace(std::move(value)); return *this;}
84
86
87 inline const SuggestQueryResult& GetQuery() const{ return m_query; }
88 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
89 inline void SetQuery(const SuggestQueryResult& value) { m_queryHasBeenSet = true; m_query = value; }
90 inline void SetQuery(SuggestQueryResult&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
91 inline SuggestResultItem& WithQuery(const SuggestQueryResult& value) { SetQuery(value); return *this;}
92 inline SuggestResultItem& WithQuery(SuggestQueryResult&& value) { SetQuery(std::move(value)); return *this;}
94
96
100 inline const SuggestHighlights& GetHighlights() const{ return m_highlights; }
101 inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
102 inline void SetHighlights(const SuggestHighlights& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
103 inline void SetHighlights(SuggestHighlights&& value) { m_highlightsHasBeenSet = true; m_highlights = std::move(value); }
104 inline SuggestResultItem& WithHighlights(const SuggestHighlights& value) { SetHighlights(value); return *this;}
105 inline SuggestResultItem& WithHighlights(SuggestHighlights&& value) { SetHighlights(std::move(value)); return *this;}
107 private:
108
109 Aws::String m_title;
110 bool m_titleHasBeenSet = false;
111
112 SuggestResultItemType m_suggestResultItemType;
113 bool m_suggestResultItemTypeHasBeenSet = false;
114
115 SuggestPlaceResult m_place;
116 bool m_placeHasBeenSet = false;
117
118 SuggestQueryResult m_query;
119 bool m_queryHasBeenSet = false;
120
121 SuggestHighlights m_highlights;
122 bool m_highlightsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace GeoPlaces
127} // namespace Aws
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
SuggestResultItem & WithSuggestResultItemType(const SuggestResultItemType &value)
const SuggestResultItemType & GetSuggestResultItemType() const
void SetSuggestResultItemType(SuggestResultItemType &&value)
SuggestResultItem & WithHighlights(const SuggestHighlights &value)
SuggestResultItem & WithHighlights(SuggestHighlights &&value)
SuggestResultItem & WithTitle(Aws::String &&value)
SuggestResultItem & WithPlace(SuggestPlaceResult &&value)
SuggestResultItem & WithQuery(SuggestQueryResult &&value)
const SuggestQueryResult & GetQuery() const
SuggestResultItem & WithSuggestResultItemType(SuggestResultItemType &&value)
const SuggestHighlights & GetHighlights() const
AWS_GEOPLACES_API SuggestResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
SuggestResultItem & WithQuery(const SuggestQueryResult &value)
AWS_GEOPLACES_API SuggestResultItem(Aws::Utils::Json::JsonView jsonValue)
void SetTitle(const Aws::String &value)
void SetQuery(SuggestQueryResult &&value)
void SetQuery(const SuggestQueryResult &value)
void SetPlace(SuggestPlaceResult &&value)
void SetHighlights(SuggestHighlights &&value)
void SetHighlights(const SuggestHighlights &value)
SuggestResultItem & WithTitle(const char *value)
SuggestResultItem & WithTitle(const Aws::String &value)
void SetSuggestResultItemType(const SuggestResultItemType &value)
void SetPlace(const SuggestPlaceResult &value)
SuggestResultItem & WithPlace(const SuggestPlaceResult &value)
const SuggestPlaceResult & GetPlace() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue