/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace kendra
{
namespace Model
{
/**
* Provides the configuration information for suggested query spell
* corrections.
Suggested spell corrections are based on words that appear
* in your indexed documents and how closely a corrected word matches a misspelled
* word.
This feature is designed with certain defaults or limits. For
* information on the current limits and how to request more support for some
* limits, see the Spell
* Checker documentation.
See Also:
AWS
* API Reference
*/
class SpellCorrectionConfiguration
{
public:
AWS_KENDRA_API SpellCorrectionConfiguration();
AWS_KENDRA_API SpellCorrectionConfiguration(Aws::Utils::Json::JsonView jsonValue);
AWS_KENDRA_API SpellCorrectionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* TRUE
to suggest spell corrections for queries.
*/
inline bool GetIncludeQuerySpellCheckSuggestions() const{ return m_includeQuerySpellCheckSuggestions; }
/**
* TRUE
to suggest spell corrections for queries.
*/
inline bool IncludeQuerySpellCheckSuggestionsHasBeenSet() const { return m_includeQuerySpellCheckSuggestionsHasBeenSet; }
/**
* TRUE
to suggest spell corrections for queries.
*/
inline void SetIncludeQuerySpellCheckSuggestions(bool value) { m_includeQuerySpellCheckSuggestionsHasBeenSet = true; m_includeQuerySpellCheckSuggestions = value; }
/**
* TRUE
to suggest spell corrections for queries.
*/
inline SpellCorrectionConfiguration& WithIncludeQuerySpellCheckSuggestions(bool value) { SetIncludeQuerySpellCheckSuggestions(value); return *this;}
private:
bool m_includeQuerySpellCheckSuggestions;
bool m_includeQuerySpellCheckSuggestionsHasBeenSet = false;
};
} // namespace Model
} // namespace kendra
} // namespace Aws