/* * 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 es-2015-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.Elasticsearch.Model { /// /// Specifies the configuration for the domain cluster, such as the type and number of /// instances. /// public partial class ElasticsearchClusterConfig { private ColdStorageOptions _coldStorageOptions; private int? _dedicatedMasterCount; private bool? _dedicatedMasterEnabled; private ESPartitionInstanceType _dedicatedMasterType; private int? _instanceCount; private ESPartitionInstanceType _instanceType; private int? _warmCount; private bool? _warmEnabled; private ESWarmPartitionInstanceType _warmType; private ZoneAwarenessConfig _zoneAwarenessConfig; private bool? _zoneAwarenessEnabled; /// /// Gets and sets the property ColdStorageOptions. /// /// Specifies the ColdStorageOptions config for Elasticsearch Domain /// /// public ColdStorageOptions ColdStorageOptions { get { return this._coldStorageOptions; } set { this._coldStorageOptions = value; } } // Check to see if ColdStorageOptions property is set internal bool IsSetColdStorageOptions() { return this._coldStorageOptions != null; } /// /// Gets and sets the property DedicatedMasterCount. /// /// Total number of dedicated master nodes, active and on standby, for the cluster. /// /// public int DedicatedMasterCount { get { return this._dedicatedMasterCount.GetValueOrDefault(); } set { this._dedicatedMasterCount = value; } } // Check to see if DedicatedMasterCount property is set internal bool IsSetDedicatedMasterCount() { return this._dedicatedMasterCount.HasValue; } /// /// Gets and sets the property DedicatedMasterEnabled. /// /// A boolean value to indicate whether a dedicated master node is enabled. See About Dedicated Master Nodes for more information. /// /// public bool DedicatedMasterEnabled { get { return this._dedicatedMasterEnabled.GetValueOrDefault(); } set { this._dedicatedMasterEnabled = value; } } // Check to see if DedicatedMasterEnabled property is set internal bool IsSetDedicatedMasterEnabled() { return this._dedicatedMasterEnabled.HasValue; } /// /// Gets and sets the property DedicatedMasterType. /// /// The instance type for a dedicated master node. /// /// public ESPartitionInstanceType DedicatedMasterType { get { return this._dedicatedMasterType; } set { this._dedicatedMasterType = value; } } // Check to see if DedicatedMasterType property is set internal bool IsSetDedicatedMasterType() { return this._dedicatedMasterType != null; } /// /// Gets and sets the property InstanceCount. /// /// The number of instances in the specified domain cluster. /// /// public int InstanceCount { get { return this._instanceCount.GetValueOrDefault(); } set { this._instanceCount = value; } } // Check to see if InstanceCount property is set internal bool IsSetInstanceCount() { return this._instanceCount.HasValue; } /// /// Gets and sets the property InstanceType. /// /// The instance type for an Elasticsearch cluster. UltraWarm instance types are not supported /// for data instances. /// /// public ESPartitionInstanceType InstanceType { get { return this._instanceType; } set { this._instanceType = value; } } // Check to see if InstanceType property is set internal bool IsSetInstanceType() { return this._instanceType != null; } /// /// Gets and sets the property WarmCount. /// /// The number of warm nodes in the cluster. /// /// public int WarmCount { get { return this._warmCount.GetValueOrDefault(); } set { this._warmCount = value; } } // Check to see if WarmCount property is set internal bool IsSetWarmCount() { return this._warmCount.HasValue; } /// /// Gets and sets the property WarmEnabled. /// /// True to enable warm storage. /// /// public bool WarmEnabled { get { return this._warmEnabled.GetValueOrDefault(); } set { this._warmEnabled = value; } } // Check to see if WarmEnabled property is set internal bool IsSetWarmEnabled() { return this._warmEnabled.HasValue; } /// /// Gets and sets the property WarmType. /// /// The instance type for the Elasticsearch cluster's warm nodes. /// /// public ESWarmPartitionInstanceType WarmType { get { return this._warmType; } set { this._warmType = value; } } // Check to see if WarmType property is set internal bool IsSetWarmType() { return this._warmType != null; } /// /// Gets and sets the property ZoneAwarenessConfig. /// /// Specifies the zone awareness configuration for a domain when zone awareness is enabled. /// /// public ZoneAwarenessConfig ZoneAwarenessConfig { get { return this._zoneAwarenessConfig; } set { this._zoneAwarenessConfig = value; } } // Check to see if ZoneAwarenessConfig property is set internal bool IsSetZoneAwarenessConfig() { return this._zoneAwarenessConfig != null; } /// /// Gets and sets the property ZoneAwarenessEnabled. /// /// A boolean value to indicate whether zone awareness is enabled. See About Zone Awareness for more information. /// /// public bool ZoneAwarenessEnabled { get { return this._zoneAwarenessEnabled.GetValueOrDefault(); } set { this._zoneAwarenessEnabled = value; } } // Check to see if ZoneAwarenessEnabled property is set internal bool IsSetZoneAwarenessEnabled() { return this._zoneAwarenessEnabled.HasValue; } } }