AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
50 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
51 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
52 inline SearchForSuggestionsResult& WithText(const Aws::String& value) { SetText(value); return *this;}
53 inline SearchForSuggestionsResult& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
54 inline SearchForSuggestionsResult& WithText(const char* value) { SetText(value); return *this;}
56
58
68 inline const Aws::String& GetPlaceId() const{ return m_placeId; }
69 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
70 inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; }
71 inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); }
72 inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); }
73 inline SearchForSuggestionsResult& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;}
74 inline SearchForSuggestionsResult& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;}
75 inline SearchForSuggestionsResult& WithPlaceId(const char* value) { SetPlaceId(value); return *this;}
77
79
86 inline const Aws::Vector<Aws::String>& GetCategories() const{ return m_categories; }
87 inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; }
88 inline void SetCategories(const Aws::Vector<Aws::String>& value) { m_categoriesHasBeenSet = true; m_categories = value; }
89 inline void SetCategories(Aws::Vector<Aws::String>&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); }
91 inline SearchForSuggestionsResult& WithCategories(Aws::Vector<Aws::String>&& value) { SetCategories(std::move(value)); return *this;}
92 inline SearchForSuggestionsResult& AddCategories(const Aws::String& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
93 inline SearchForSuggestionsResult& AddCategories(Aws::String&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; }
94 inline SearchForSuggestionsResult& AddCategories(const char* value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; }
96
98
102 inline const Aws::Vector<Aws::String>& GetSupplementalCategories() const{ return m_supplementalCategories; }
103 inline bool SupplementalCategoriesHasBeenSet() const { return m_supplementalCategoriesHasBeenSet; }
104 inline void SetSupplementalCategories(const Aws::Vector<Aws::String>& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories = value; }
105 inline void SetSupplementalCategories(Aws::Vector<Aws::String>&& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories = std::move(value); }
108 inline SearchForSuggestionsResult& AddSupplementalCategories(const Aws::String& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories.push_back(value); return *this; }
109 inline SearchForSuggestionsResult& AddSupplementalCategories(Aws::String&& value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories.push_back(std::move(value)); return *this; }
110 inline SearchForSuggestionsResult& AddSupplementalCategories(const char* value) { m_supplementalCategoriesHasBeenSet = true; m_supplementalCategories.push_back(value); return *this; }
112 private:
113
114 Aws::String m_text;
115 bool m_textHasBeenSet = false;
116
117 Aws::String m_placeId;
118 bool m_placeIdHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_categories;
121 bool m_categoriesHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_supplementalCategories;
124 bool m_supplementalCategoriesHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace LocationService
129} // namespace Aws
SearchForSuggestionsResult & AddSupplementalCategories(Aws::String &&value)
void SetSupplementalCategories(Aws::Vector< Aws::String > &&value)
SearchForSuggestionsResult & AddCategories(Aws::String &&value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API SearchForSuggestionsResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SearchForSuggestionsResult & AddSupplementalCategories(const char *value)
SearchForSuggestionsResult & WithCategories(const Aws::Vector< Aws::String > &value)
void SetSupplementalCategories(const Aws::Vector< Aws::String > &value)
SearchForSuggestionsResult & WithSupplementalCategories(Aws::Vector< Aws::String > &&value)
SearchForSuggestionsResult & WithText(const char *value)
SearchForSuggestionsResult & WithPlaceId(const char *value)
SearchForSuggestionsResult & WithCategories(Aws::Vector< Aws::String > &&value)
SearchForSuggestionsResult & WithText(const Aws::String &value)
SearchForSuggestionsResult & WithPlaceId(Aws::String &&value)
SearchForSuggestionsResult & AddCategories(const char *value)
AWS_LOCATIONSERVICE_API SearchForSuggestionsResult(Aws::Utils::Json::JsonView jsonValue)
SearchForSuggestionsResult & WithSupplementalCategories(const Aws::Vector< Aws::String > &value)
SearchForSuggestionsResult & WithText(Aws::String &&value)
SearchForSuggestionsResult & AddSupplementalCategories(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSupplementalCategories() const
void SetCategories(const Aws::Vector< Aws::String > &value)
SearchForSuggestionsResult & WithPlaceId(const Aws::String &value)
SearchForSuggestionsResult & AddCategories(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue