/* * 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 64-bit signed integers. Present if IndexFieldType /// specifies the field is of type int-array. All options are enabled by /// default. /// public partial class IntArrayOptions { private long? _defaultValue; private bool? _facetEnabled; private bool? _returnEnabled; private bool? _searchEnabled; private string _sourceFields; /// /// Gets and sets the property DefaultValue. A value to use for the field if the field /// isn't specified for a document. /// public long DefaultValue { get { return this._defaultValue.GetValueOrDefault(); } set { this._defaultValue = value; } } // Check to see if DefaultValue property is set internal bool IsSetDefaultValue() { return this._defaultValue.HasValue; } /// /// Gets and sets the property FacetEnabled. /// /// Whether facet information can be returned for the field. /// /// public bool FacetEnabled { get { return this._facetEnabled.GetValueOrDefault(); } set { this._facetEnabled = value; } } // Check to see if FacetEnabled property is set internal bool IsSetFacetEnabled() { return this._facetEnabled.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 SearchEnabled. /// /// Whether the contents of the field are searchable. /// /// public bool SearchEnabled { get { return this._searchEnabled.GetValueOrDefault(); } set { this._searchEnabled = value; } } // Check to see if SearchEnabled property is set internal bool IsSetSearchEnabled() { return this._searchEnabled.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; } } }