/** * 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 kendra { namespace Model { /** *

A query with suggested spell corrections.

See Also:

AWS * API Reference

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

The query with the suggested spell corrections.

*/ inline const Aws::String& GetSuggestedQueryText() const{ return m_suggestedQueryText; } /** *

The query with the suggested spell corrections.

*/ inline bool SuggestedQueryTextHasBeenSet() const { return m_suggestedQueryTextHasBeenSet; } /** *

The query with the suggested spell corrections.

*/ inline void SetSuggestedQueryText(const Aws::String& value) { m_suggestedQueryTextHasBeenSet = true; m_suggestedQueryText = value; } /** *

The query with the suggested spell corrections.

*/ inline void SetSuggestedQueryText(Aws::String&& value) { m_suggestedQueryTextHasBeenSet = true; m_suggestedQueryText = std::move(value); } /** *

The query with the suggested spell corrections.

*/ inline void SetSuggestedQueryText(const char* value) { m_suggestedQueryTextHasBeenSet = true; m_suggestedQueryText.assign(value); } /** *

The query with the suggested spell corrections.

*/ inline SpellCorrectedQuery& WithSuggestedQueryText(const Aws::String& value) { SetSuggestedQueryText(value); return *this;} /** *

The query with the suggested spell corrections.

*/ inline SpellCorrectedQuery& WithSuggestedQueryText(Aws::String&& value) { SetSuggestedQueryText(std::move(value)); return *this;} /** *

The query with the suggested spell corrections.

*/ inline SpellCorrectedQuery& WithSuggestedQueryText(const char* value) { SetSuggestedQueryText(value); return *this;} /** *

The corrected misspelled word or words in a query.

*/ inline const Aws::Vector& GetCorrections() const{ return m_corrections; } /** *

The corrected misspelled word or words in a query.

*/ inline bool CorrectionsHasBeenSet() const { return m_correctionsHasBeenSet; } /** *

The corrected misspelled word or words in a query.

*/ inline void SetCorrections(const Aws::Vector& value) { m_correctionsHasBeenSet = true; m_corrections = value; } /** *

The corrected misspelled word or words in a query.

*/ inline void SetCorrections(Aws::Vector&& value) { m_correctionsHasBeenSet = true; m_corrections = std::move(value); } /** *

The corrected misspelled word or words in a query.

*/ inline SpellCorrectedQuery& WithCorrections(const Aws::Vector& value) { SetCorrections(value); return *this;} /** *

The corrected misspelled word or words in a query.

*/ inline SpellCorrectedQuery& WithCorrections(Aws::Vector&& value) { SetCorrections(std::move(value)); return *this;} /** *

The corrected misspelled word or words in a query.

*/ inline SpellCorrectedQuery& AddCorrections(const Correction& value) { m_correctionsHasBeenSet = true; m_corrections.push_back(value); return *this; } /** *

The corrected misspelled word or words in a query.

*/ inline SpellCorrectedQuery& AddCorrections(Correction&& value) { m_correctionsHasBeenSet = true; m_corrections.push_back(std::move(value)); return *this; } private: Aws::String m_suggestedQueryText; bool m_suggestedQueryTextHasBeenSet = false; Aws::Vector m_corrections; bool m_correctionsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws