/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for the parameters to the Suggest
* request.See Also:
AWS
* API Reference
Specifies the string for which you want to get suggestions.
*/ inline const Aws::String& GetQuery() const{ return m_query; } /** *Specifies the string for which you want to get suggestions.
*/ inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; } /** *Specifies the string for which you want to get suggestions.
*/ inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; } /** *Specifies the string for which you want to get suggestions.
*/ inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); } /** *Specifies the string for which you want to get suggestions.
*/ inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); } /** *Specifies the string for which you want to get suggestions.
*/ inline SuggestRequest& WithQuery(const Aws::String& value) { SetQuery(value); return *this;} /** *Specifies the string for which you want to get suggestions.
*/ inline SuggestRequest& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;} /** *Specifies the string for which you want to get suggestions.
*/ inline SuggestRequest& WithQuery(const char* value) { SetQuery(value); return *this;} /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline const Aws::String& GetSuggester() const{ return m_suggester; } /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline bool SuggesterHasBeenSet() const { return m_suggesterHasBeenSet; } /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline void SetSuggester(const Aws::String& value) { m_suggesterHasBeenSet = true; m_suggester = value; } /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline void SetSuggester(Aws::String&& value) { m_suggesterHasBeenSet = true; m_suggester = std::move(value); } /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline void SetSuggester(const char* value) { m_suggesterHasBeenSet = true; m_suggester.assign(value); } /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline SuggestRequest& WithSuggester(const Aws::String& value) { SetSuggester(value); return *this;} /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline SuggestRequest& WithSuggester(Aws::String&& value) { SetSuggester(std::move(value)); return *this;} /** *Specifies the name of the suggester to use to find suggested matches.
*/ inline SuggestRequest& WithSuggester(const char* value) { SetSuggester(value); return *this;} /** *Specifies the maximum number of suggestions to return.
*/ inline long long GetSize() const{ return m_size; } /** *Specifies the maximum number of suggestions to return.
*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *Specifies the maximum number of suggestions to return.
*/ inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; } /** *Specifies the maximum number of suggestions to return.
*/ inline SuggestRequest& WithSize(long long value) { SetSize(value); return *this;} private: Aws::String m_query; bool m_queryHasBeenSet = false; Aws::String m_suggester; bool m_suggesterHasBeenSet = false; long long m_size; bool m_sizeHasBeenSet = false; }; } // namespace Model } // namespace CloudSearchDomain } // namespace Aws