/*
* 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
{
///
/// The desired instance type and desired number of replicas of each index partition.
///
public partial class ScalingParameters
{
private PartitionInstanceType _desiredInstanceType;
private int? _desiredPartitionCount;
private int? _desiredReplicationCount;
///
/// Gets and sets the property DesiredInstanceType.
///
/// The instance type that you want to preconfigure for your domain. For example, search.m1.small
.
///
///
public PartitionInstanceType DesiredInstanceType
{
get { return this._desiredInstanceType; }
set { this._desiredInstanceType = value; }
}
// Check to see if DesiredInstanceType property is set
internal bool IsSetDesiredInstanceType()
{
return this._desiredInstanceType != null;
}
///
/// Gets and sets the property DesiredPartitionCount.
///
/// The number of partitions you want to preconfigure for your domain. Only valid when
/// you select m2.2xlarge
as the desired instance type.
///
///
[AWSProperty(Min=0)]
public int DesiredPartitionCount
{
get { return this._desiredPartitionCount.GetValueOrDefault(); }
set { this._desiredPartitionCount = value; }
}
// Check to see if DesiredPartitionCount property is set
internal bool IsSetDesiredPartitionCount()
{
return this._desiredPartitionCount.HasValue;
}
///
/// Gets and sets the property DesiredReplicationCount.
///
/// The number of replicas you want to preconfigure for each index partition.
///
///
[AWSProperty(Min=0)]
public int DesiredReplicationCount
{
get { return this._desiredReplicationCount.GetValueOrDefault(); }
set { this._desiredReplicationCount = value; }
}
// Check to see if DesiredReplicationCount property is set
internal bool IsSetDesiredReplicationCount()
{
return this._desiredReplicationCount.HasValue;
}
}
}