AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SuggestModel.h
1
6#pragma once
7#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudsearchdomain/model/SuggestionMatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudSearchDomain
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDSEARCHDOMAIN_API SuggestModel() = default;
38 AWS_CLOUDSEARCHDOMAIN_API SuggestModel(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDSEARCHDOMAIN_API SuggestModel& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetQuery() const { return m_query; }
48 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
49 template<typename QueryT = Aws::String>
50 void SetQuery(QueryT&& value) { m_queryHasBeenSet = true; m_query = std::forward<QueryT>(value); }
51 template<typename QueryT = Aws::String>
52 SuggestModel& WithQuery(QueryT&& value) { SetQuery(std::forward<QueryT>(value)); return *this;}
54
56
59 inline long long GetFound() const { return m_found; }
60 inline bool FoundHasBeenSet() const { return m_foundHasBeenSet; }
61 inline void SetFound(long long value) { m_foundHasBeenSet = true; m_found = value; }
62 inline SuggestModel& WithFound(long long value) { SetFound(value); return *this;}
64
66
69 inline const Aws::Vector<SuggestionMatch>& GetSuggestions() const { return m_suggestions; }
70 inline bool SuggestionsHasBeenSet() const { return m_suggestionsHasBeenSet; }
71 template<typename SuggestionsT = Aws::Vector<SuggestionMatch>>
72 void SetSuggestions(SuggestionsT&& value) { m_suggestionsHasBeenSet = true; m_suggestions = std::forward<SuggestionsT>(value); }
73 template<typename SuggestionsT = Aws::Vector<SuggestionMatch>>
74 SuggestModel& WithSuggestions(SuggestionsT&& value) { SetSuggestions(std::forward<SuggestionsT>(value)); return *this;}
75 template<typename SuggestionsT = SuggestionMatch>
76 SuggestModel& AddSuggestions(SuggestionsT&& value) { m_suggestionsHasBeenSet = true; m_suggestions.emplace_back(std::forward<SuggestionsT>(value)); return *this; }
78 private:
79
80 Aws::String m_query;
81 bool m_queryHasBeenSet = false;
82
83 long long m_found{0};
84 bool m_foundHasBeenSet = false;
85
86 Aws::Vector<SuggestionMatch> m_suggestions;
87 bool m_suggestionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CloudSearchDomain
92} // namespace Aws
const Aws::Vector< SuggestionMatch > & GetSuggestions() const
SuggestModel & WithSuggestions(SuggestionsT &&value)
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
SuggestModel & WithQuery(QueryT &&value)
SuggestModel & WithFound(long long value)
void SetSuggestions(SuggestionsT &&value)
SuggestModel & AddSuggestions(SuggestionsT &&value)
AWS_CLOUDSEARCHDOMAIN_API SuggestModel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuery() const
AWS_CLOUDSEARCHDOMAIN_API SuggestModel()=default
AWS_CLOUDSEARCHDOMAIN_API SuggestModel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue