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>
23namespace CloudSearchDomain
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>
59 inline long long GetFound()
const {
return m_found; }
61 inline void SetFound(
long long value) { m_foundHasBeenSet =
true; m_found = value; }
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>>
75 template<
typename SuggestionsT = SuggestionMatch>
76 SuggestModel&
AddSuggestions(SuggestionsT&& value) { m_suggestionsHasBeenSet =
true; m_suggestions.emplace_back(std::forward<SuggestionsT>(value));
return *
this; }
81 bool m_queryHasBeenSet =
false;
84 bool m_foundHasBeenSet =
false;
87 bool m_suggestionsHasBeenSet =
false;
const Aws::Vector< SuggestionMatch > & GetSuggestions() const
void SetQuery(QueryT &&value)
bool SuggestionsHasBeenSet() const
SuggestModel & WithSuggestions(SuggestionsT &&value)
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
bool FoundHasBeenSet() const
SuggestModel & WithQuery(QueryT &&value)
void SetFound(long long value)
bool QueryHasBeenSet() const
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
long long GetFound() 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