/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for the suggestion information returned in a
* SuggestResponse
.See Also:
AWS
* API Reference
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::VectorThe 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::VectorThe documents that match the query string.
*/ inline void SetSuggestions(Aws::VectorThe documents that match the query string.
*/ inline SuggestModel& WithSuggestions(const Aws::VectorThe documents that match the query string.
*/ inline SuggestModel& WithSuggestions(Aws::VectorThe 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