AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
SearchForSuggestionsResult.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LocationService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LOCATIONSERVICE_API SearchForSuggestionsResult() = default;
37 AWS_LOCATIONSERVICE_API SearchForSuggestionsResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetText() const { return m_text; }
48 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
49 template<typename TextT = Aws::String>
50 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
51 template<typename TextT = Aws::String>
52 SearchForSuggestionsResult& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
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) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
70 template<typename PlaceIdT = Aws::String>
71 SearchForSuggestionsResult& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
73
75
82 inline const Aws::Vector<Aws::String>& GetCategories() const { return m_categories; }
83 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
84 template<typename CategoriesT = Aws::Vector<Aws::String>>
85 void SetCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories = std::forward<CategoriesT>(value); }
86 template<typename CategoriesT = Aws::Vector<Aws::String>>
87 SearchForSuggestionsResult& WithCategories(CategoriesT&& value) { SetCategories(std::forward<CategoriesT>(value)); return *this;}
88 template<typename CategoriesT = Aws::String>
89 SearchForSuggestionsResult& AddCategories(CategoriesT&& value) { m_categoriesHasBeenSet = true; m_categories.emplace_back(std::forward<CategoriesT>(value)); return *this; }
91
93
97 inline const Aws::Vector<Aws::String>& GetSupplementalCategories() const { return m_supplementalCategories; }
98 inline bool SupplementalCategoriesHasBeenSet() const { return m_supplementalCategoriesHasBeenSet; }
99 template<typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
100 void SetSupplementalCategories(SupplementalCategoriesT&& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories = std::forward<SupplementalCategoriesT>(value); }
101 template<typename SupplementalCategoriesT = Aws::Vector<Aws::String>>
102 SearchForSuggestionsResult& WithSupplementalCategories(SupplementalCategoriesT&& value) { SetSupplementalCategories(std::forward<SupplementalCategoriesT>(value)); return *this;}
103 template<typename SupplementalCategoriesT = Aws::String>
104 SearchForSuggestionsResult& AddSupplementalCategories(SupplementalCategoriesT&& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories.emplace_back(std::forward<SupplementalCategoriesT>(value)); return *this; }
106 private:
107
108 Aws::String m_text;
109 bool m_textHasBeenSet = false;
110
111 Aws::String m_placeId;
112 bool m_placeIdHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_categories;
115 bool m_categoriesHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_supplementalCategories;
118 bool m_supplementalCategoriesHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace LocationService
123} // 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