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

Provides the configuration information for a document field/attribute that * you want to base query suggestions on.

See Also:

AWS * API Reference

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

The name of the document field/attribute.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the document field/attribute.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The name of the document field/attribute.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The name of the document field/attribute.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The name of the document field/attribute.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the document field/attribute.

*/ inline SuggestableConfig& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the document field/attribute.

*/ inline SuggestableConfig& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the document field/attribute.

*/ inline SuggestableConfig& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

TRUE means the document field/attribute is suggestible, so the * contents within the field can be used for query suggestions.

*/ inline bool GetSuggestable() const{ return m_suggestable; } /** *

TRUE means the document field/attribute is suggestible, so the * contents within the field can be used for query suggestions.

*/ inline bool SuggestableHasBeenSet() const { return m_suggestableHasBeenSet; } /** *

TRUE means the document field/attribute is suggestible, so the * contents within the field can be used for query suggestions.

*/ inline void SetSuggestable(bool value) { m_suggestableHasBeenSet = true; m_suggestable = value; } /** *

TRUE means the document field/attribute is suggestible, so the * contents within the field can be used for query suggestions.

*/ inline SuggestableConfig& WithSuggestable(bool value) { SetSuggestable(value); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; bool m_suggestable; bool m_suggestableHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws