/* * 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 cloudsearch-2013-01-01.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.CloudSearch.Model { /// /// Options for a field that contains an array of text strings. Present if IndexFieldType /// specifies the field is of type text-array. A text-array /// field is always searchable. All options are enabled by default. /// public partial class TextArrayOptions { private string _analysisScheme; private string _defaultValue; private bool? _highlightEnabled; private bool? _returnEnabled; private string _sourceFields; /// /// Gets and sets the property AnalysisScheme. /// /// The name of an analysis scheme for a text-array field. /// /// public string AnalysisScheme { get { return this._analysisScheme; } set { this._analysisScheme = value; } } // Check to see if AnalysisScheme property is set internal bool IsSetAnalysisScheme() { return this._analysisScheme != null; } /// /// Gets and sets the property DefaultValue. A value to use for the field if the field /// isn't specified for a document. /// [AWSProperty(Min=0, Max=1024)] public string DefaultValue { get { return this._defaultValue; } set { this._defaultValue = value; } } // Check to see if DefaultValue property is set internal bool IsSetDefaultValue() { return this._defaultValue != null; } /// /// Gets and sets the property HighlightEnabled. /// /// Whether highlights can be returned for the field. /// /// public bool HighlightEnabled { get { return this._highlightEnabled.GetValueOrDefault(); } set { this._highlightEnabled = value; } } // Check to see if HighlightEnabled property is set internal bool IsSetHighlightEnabled() { return this._highlightEnabled.HasValue; } /// /// Gets and sets the property ReturnEnabled. /// /// Whether the contents of the field can be returned in the search results. /// /// public bool ReturnEnabled { get { return this._returnEnabled.GetValueOrDefault(); } set { this._returnEnabled = value; } } // Check to see if ReturnEnabled property is set internal bool IsSetReturnEnabled() { return this._returnEnabled.HasValue; } /// /// Gets and sets the property SourceFields. /// /// A list of source fields to map to the field. /// /// public string SourceFields { get { return this._sourceFields; } set { this._sourceFields = value; } } // Check to see if SourceFields property is set internal bool IsSetSourceFields() { return this._sourceFields != null; } } }