/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudSearchDomain { namespace Model { /** *

Container for the suggestion information returned in a * SuggestResponse.

See Also:

AWS * API Reference

*/ class SuggestModel { public: AWS_CLOUDSEARCHDOMAIN_API SuggestModel(); AWS_CLOUDSEARCHDOMAIN_API SuggestModel(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDSEARCHDOMAIN_API SuggestModel& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDSEARCHDOMAIN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The query string specified in the suggest request.

*/ inline const Aws::String& GetQuery() const{ return m_query; } /** *

The query string specified in the suggest request.

*/ inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; } /** *

The query string specified in the suggest request.

*/ inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; } /** *

The query string specified in the suggest request.

*/ inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); } /** *

The query string specified in the suggest request.

*/ inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); } /** *

The query string specified in the suggest request.

*/ inline SuggestModel& WithQuery(const Aws::String& value) { SetQuery(value); return *this;} /** *

The query string specified in the suggest request.

*/ inline SuggestModel& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;} /** *

The query string specified in the suggest request.

*/ inline SuggestModel& WithQuery(const char* value) { SetQuery(value); return *this;} /** *

The number of documents that were found to match the query string.

*/ inline long long GetFound() const{ return m_found; } /** *

The number of documents that were found to match the query string.

*/ inline bool FoundHasBeenSet() const { return m_foundHasBeenSet; } /** *

The number of documents that were found to match the query string.

*/ inline void SetFound(long long value) { m_foundHasBeenSet = true; m_found = value; } /** *

The number of documents that were found to match the query string.

*/ inline SuggestModel& WithFound(long long value) { SetFound(value); return *this;} /** *

The documents that match the query string.

*/ inline const Aws::Vector& GetSuggestions() const{ return m_suggestions; } /** *

The documents that match the query string.

*/ inline bool SuggestionsHasBeenSet() const { return m_suggestionsHasBeenSet; } /** *

The documents that match the query string.

*/ inline void SetSuggestions(const Aws::Vector& value) { m_suggestionsHasBeenSet = true; m_suggestions = value; } /** *

The documents that match the query string.

*/ inline void SetSuggestions(Aws::Vector&& value) { m_suggestionsHasBeenSet = true; m_suggestions = std::move(value); } /** *

The documents that match the query string.

*/ inline SuggestModel& WithSuggestions(const Aws::Vector& value) { SetSuggestions(value); return *this;} /** *

The documents that match the query string.

*/ inline SuggestModel& WithSuggestions(Aws::Vector&& value) { SetSuggestions(std::move(value)); return *this;} /** *

The documents that match the query string.

*/ inline SuggestModel& AddSuggestions(const SuggestionMatch& value) { m_suggestionsHasBeenSet = true; m_suggestions.push_back(value); return *this; } /** *

The documents that match the query string.

*/ inline SuggestModel& AddSuggestions(SuggestionMatch&& value) { m_suggestionsHasBeenSet = true; m_suggestions.push_back(std::move(value)); return *this; } private: Aws::String m_query; bool m_queryHasBeenSet = false; long long m_found; bool m_foundHasBeenSet = false; Aws::Vector m_suggestions; bool m_suggestionsHasBeenSet = false; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws