AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SearchForSuggestionsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/location/LocationService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LocationService {
21namespace Model {
22
30 public:
31 AWS_LOCATIONSERVICE_API SearchForSuggestionsResult() = default;
32 AWS_LOCATIONSERVICE_API SearchForSuggestionsResult(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
66 inline const Aws::String& GetPlaceId() const { return m_placeId; }
67 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
68 template <typename PlaceIdT = Aws::String>
69 void SetPlaceId(PlaceIdT&& value) {
70 m_placeIdHasBeenSet = true;
71 m_placeId = std::forward<PlaceIdT>(value);
72 }
73 template <typename PlaceIdT = Aws::String>
75 SetPlaceId(std::forward<PlaceIdT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
89 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
90 template <typename CategoriesT = Aws::Vector<Aws::String>>
91 void SetCategories(CategoriesT&& value) {
92 m_categoriesHasBeenSet = true;
93 m_categories = std::forward<CategoriesT>(value);
94 }
95 template <typename CategoriesT = Aws::Vector<Aws::String>>
97 SetCategories(std::forward<CategoriesT>(value));
98 return *this;
99 }
100 template <typename CategoriesT = Aws::String>
102 m_categoriesHasBeenSet = true;
103 m_categories.emplace_back(std::forward<CategoriesT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Aws::String>& GetSupplementalCategories() const { return m_supplementalCategories; }
114 inline bool SupplementalCategoriesHasBeenSet() const { return m_supplementalCategoriesHasBeenSet; }
115 template <typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
116 void SetSupplementalCategories(SupplementalCategoriesT&& value) {
117 m_supplementalCategoriesHasBeenSet = true;
118 m_supplementalCategories = std::forward<SupplementalCategoriesT>(value);
119 }
120 template <typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
121 SearchForSuggestionsResult& WithSupplementalCategories(SupplementalCategoriesT&& value) {
122 SetSupplementalCategories(std::forward<SupplementalCategoriesT>(value));
123 return *this;
124 }
125 template <typename SupplementalCategoriesT = Aws::String>
126 SearchForSuggestionsResult& AddSupplementalCategories(SupplementalCategoriesT&& value) {
127 m_supplementalCategoriesHasBeenSet = true;
128 m_supplementalCategories.emplace_back(std::forward<SupplementalCategoriesT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_text;
134
135 Aws::String m_placeId;
136
137 Aws::Vector<Aws::String> m_categories;
138
139 Aws::Vector<Aws::String> m_supplementalCategories;
140 bool m_textHasBeenSet = false;
141 bool m_placeIdHasBeenSet = false;
142 bool m_categoriesHasBeenSet = false;
143 bool m_supplementalCategoriesHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace LocationService
148} // namespace Aws
SearchForSuggestionsResult & WithCategories(CategoriesT &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API SearchForSuggestionsResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API SearchForSuggestionsResult()=default
SearchForSuggestionsResult & AddSupplementalCategories(SupplementalCategoriesT &&value)
SearchForSuggestionsResult & AddCategories(CategoriesT &&value)
SearchForSuggestionsResult & WithPlaceId(PlaceIdT &&value)
AWS_LOCATIONSERVICE_API SearchForSuggestionsResult(Aws::Utils::Json::JsonView jsonValue)
SearchForSuggestionsResult & WithSupplementalCategories(SupplementalCategoriesT &&value)
const Aws::Vector< Aws::String > & GetSupplementalCategories() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue