AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
50 inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
51 inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
52 inline SuggestModel& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
53 inline SuggestModel& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
54 inline SuggestModel& WithQuery(const char* value) { SetQuery(value); return *this;}
56
58
61 inline long long GetFound() const{ return m_found; }
62 inline bool FoundHasBeenSet() const { return m_foundHasBeenSet; }
63 inline void SetFound(long long value) { m_foundHasBeenSet = true; m_found = value; }
64 inline SuggestModel& WithFound(long long value) { SetFound(value); return *this;}
66
68
71 inline const Aws::Vector<SuggestionMatch>& GetSuggestions() const{ return m_suggestions; }
72 inline bool SuggestionsHasBeenSet() const { return m_suggestionsHasBeenSet; }
73 inline void SetSuggestions(const Aws::Vector<SuggestionMatch>& value) { m_suggestionsHasBeenSet = true; m_suggestions = value; }
74 inline void SetSuggestions(Aws::Vector<SuggestionMatch>&& value) { m_suggestionsHasBeenSet = true; m_suggestions = std::move(value); }
75 inline SuggestModel& WithSuggestions(const Aws::Vector<SuggestionMatch>& value) { SetSuggestions(value); return *this;}
76 inline SuggestModel& WithSuggestions(Aws::Vector<SuggestionMatch>&& value) { SetSuggestions(std::move(value)); return *this;}
77 inline SuggestModel& AddSuggestions(const SuggestionMatch& value) { m_suggestionsHasBeenSet = true; m_suggestions.push_back(value); return *this; }
78 inline SuggestModel& AddSuggestions(SuggestionMatch&& value) { m_suggestionsHasBeenSet = true; m_suggestions.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_query;
83 bool m_queryHasBeenSet = false;
84
85 long long m_found;
86 bool m_foundHasBeenSet = false;
87
88 Aws::Vector<SuggestionMatch> m_suggestions;
89 bool m_suggestionsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudSearchDomain
94} // namespace Aws
SuggestModel & WithSuggestions(const Aws::Vector< SuggestionMatch > &value)
void SetSuggestions(const Aws::Vector< SuggestionMatch > &value)
void SetQuery(const Aws::String &value)
SuggestModel & WithQuery(const Aws::String &value)
SuggestModel & WithQuery(const char *value)
const Aws::Vector< SuggestionMatch > & GetSuggestions() const
SuggestModel & WithQuery(Aws::String &&value)
AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const
SuggestModel & WithSuggestions(Aws::Vector< SuggestionMatch > &&value)
AWS_CLOUDSEARCHDOMAIN_API SuggestModel()
SuggestModel & AddSuggestions(SuggestionMatch &&value)
SuggestModel & WithFound(long long value)
AWS_CLOUDSEARCHDOMAIN_API SuggestModel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuery() const
SuggestModel & AddSuggestions(const SuggestionMatch &value)
AWS_CLOUDSEARCHDOMAIN_API SuggestModel(Aws::Utils::Json::JsonView jsonValue)
void SetSuggestions(Aws::Vector< SuggestionMatch > &&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