/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Kendra.Model { /// /// Updates the configuration information for the document fields/attributes that you /// want to base query suggestions on. /// /// /// /// To deactivate using documents fields for query suggestions, set the mode to INACTIVE. /// You must also set SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES /// and then call GetQuerySuggestions. /// If you set to QUERY, then Amazon Kendra uses the query history to base /// suggestions on. If you set to DOCUMENT_ATTRIBUTES, then Amazon Kendra /// uses the contents of document fields to base suggestions on. /// /// public partial class AttributeSuggestionsUpdateConfig { private AttributeSuggestionsMode _attributeSuggestionsMode; private List _suggestableConfigList = new List(); /// /// Gets and sets the property AttributeSuggestionsMode. /// /// You can set the mode to ACTIVE or INACTIVE. You must also /// set SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES /// and then call GetQuerySuggestions. /// If Mode to use query history is set to ENABLED when calling /// UpdateQuerySuggestionsConfig /// and AttributeSuggestionsMode to use fields/attributes is set to ACTIVE, /// and you haven't set your SuggestionTypes preference to DOCUMENT_ATTRIBUTES, /// then Amazon Kendra uses the query history. /// /// public AttributeSuggestionsMode AttributeSuggestionsMode { get { return this._attributeSuggestionsMode; } set { this._attributeSuggestionsMode = value; } } // Check to see if AttributeSuggestionsMode property is set internal bool IsSetAttributeSuggestionsMode() { return this._attributeSuggestionsMode != null; } /// /// Gets and sets the property SuggestableConfigList. /// /// The list of fields/attributes that you want to set as suggestible for query suggestions. /// /// public List SuggestableConfigList { get { return this._suggestableConfigList; } set { this._suggestableConfigList = value; } } // Check to see if SuggestableConfigList property is set internal bool IsSetSuggestableConfigList() { return this._suggestableConfigList != null && this._suggestableConfigList.Count > 0; } } }