/* * 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 opensearch-2021-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.OpenSearchService.Model { /// /// Container for the cluster configuration of an OpenSearch Service domain. For more /// information, see Creating /// and managing Amazon OpenSearch Service domains. /// public partial class ClusterConfig { private ColdStorageOptions _coldStorageOptions; private int? _dedicatedMasterCount; private bool? _dedicatedMasterEnabled; private OpenSearchPartitionInstanceType _dedicatedMasterType; private int? _instanceCount; private OpenSearchPartitionInstanceType _instanceType; private bool? _multiAZWithStandbyEnabled; private int? _warmCount; private bool? _warmEnabled; private OpenSearchWarmPartitionInstanceType _warmType; private ZoneAwarenessConfig _zoneAwarenessConfig; private bool? _zoneAwarenessEnabled; /// /// Gets and sets the property ColdStorageOptions. /// /// Container for cold storage configuration options. /// /// 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. /// /// Number of dedicated master nodes in the cluster. This number must be greater than /// 2 and not 4, otherwise you receive a validation exception. /// /// 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. /// /// Indicates whether dedicated master nodes are enabled for the cluster.True /// if the cluster will use a dedicated master node.False if the cluster /// will not. /// /// 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. /// /// OpenSearch Service instance type of the dedicated master nodes in the cluster. /// /// public OpenSearchPartitionInstanceType 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. /// /// Number of dedicated master nodes in the cluster. This number must be greater than /// 1, otherwise you receive a validation exception. /// /// 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. /// /// Instance type of data nodes in the cluster. /// /// public OpenSearchPartitionInstanceType 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 MultiAZWithStandbyEnabled. /// /// A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ. /// For more information, see Configuring /// a multi-AZ domain in Amazon OpenSearch Service. /// /// public bool MultiAZWithStandbyEnabled { get { return this._multiAZWithStandbyEnabled.GetValueOrDefault(); } set { this._multiAZWithStandbyEnabled = value; } } // Check to see if MultiAZWithStandbyEnabled property is set internal bool IsSetMultiAZWithStandbyEnabled() { return this._multiAZWithStandbyEnabled.HasValue; } /// /// 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. /// /// Whether to enable warm storage for the cluster. /// /// 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 cluster's warm nodes. /// /// public OpenSearchWarmPartitionInstanceType 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. /// /// Container for zone awareness configuration options. Only required if ZoneAwarenessEnabled /// is true. /// /// 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. /// /// Indicates whether multiple Availability Zones are enabled. For more information, see /// Configuring /// a multi-AZ domain in Amazon OpenSearch Service. /// /// 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; } } }