/*
* 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 text field. Present if IndexFieldType
specifies the field
/// is of type text
. A text
field is always searchable. All
/// options are enabled by default.
///
public partial class TextOptions
{
private string _analysisScheme;
private string _defaultValue;
private bool? _highlightEnabled;
private bool? _returnEnabled;
private bool? _sortEnabled;
private string _sourceField;
///
/// Gets and sets the property AnalysisScheme.
///
/// The name of an analysis scheme for a text
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 SortEnabled.
///
/// Whether the field can be used to sort the search results.
///
///
public bool SortEnabled
{
get { return this._sortEnabled.GetValueOrDefault(); }
set { this._sortEnabled = value; }
}
// Check to see if SortEnabled property is set
internal bool IsSetSortEnabled()
{
return this._sortEnabled.HasValue;
}
///
/// Gets and sets the property SourceField.
///
[AWSProperty(Min=1, Max=64)]
public string SourceField
{
get { return this._sourceField; }
set { this._sourceField = value; }
}
// Check to see if SourceField property is set
internal bool IsSetSourceField()
{
return this._sourceField != null;
}
}
}