/*
* 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 elasticmapreduce-2009-03-31.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.ElasticMapReduce.Model
{
///
/// Configuration parameters for an instance fleet modification request.
///
///
///
/// The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and
/// later, excluding 5.0.x versions.
///
///
///
public partial class InstanceFleetModifyConfig
{
private string _instanceFleetId;
private InstanceFleetResizingSpecifications _resizeSpecifications;
private int? _targetOnDemandCapacity;
private int? _targetSpotCapacity;
///
/// Gets and sets the property InstanceFleetId.
///
/// A unique identifier for the instance fleet.
///
///
[AWSProperty(Required=true)]
public string InstanceFleetId
{
get { return this._instanceFleetId; }
set { this._instanceFleetId = value; }
}
// Check to see if InstanceFleetId property is set
internal bool IsSetInstanceFleetId()
{
return this._instanceFleetId != null;
}
///
/// Gets and sets the property ResizeSpecifications.
///
/// The resize specification for the instance fleet.
///
///
public InstanceFleetResizingSpecifications ResizeSpecifications
{
get { return this._resizeSpecifications; }
set { this._resizeSpecifications = value; }
}
// Check to see if ResizeSpecifications property is set
internal bool IsSetResizeSpecifications()
{
return this._resizeSpecifications != null;
}
///
/// Gets and sets the property TargetOnDemandCapacity.
///
/// The target capacity of On-Demand units for the instance fleet. For more information
/// see InstanceFleetConfig$TargetOnDemandCapacity.
///
///
[AWSProperty(Min=0)]
public int TargetOnDemandCapacity
{
get { return this._targetOnDemandCapacity.GetValueOrDefault(); }
set { this._targetOnDemandCapacity = value; }
}
// Check to see if TargetOnDemandCapacity property is set
internal bool IsSetTargetOnDemandCapacity()
{
return this._targetOnDemandCapacity.HasValue;
}
///
/// Gets and sets the property TargetSpotCapacity.
///
/// The target capacity of Spot units for the instance fleet. For more information, see
/// InstanceFleetConfig$TargetSpotCapacity.
///
///
[AWSProperty(Min=0)]
public int TargetSpotCapacity
{
get { return this._targetSpotCapacity.GetValueOrDefault(); }
set { this._targetSpotCapacity = value; }
}
// Check to see if TargetSpotCapacity property is set
internal bool IsSetTargetSpotCapacity()
{
return this._targetSpotCapacity.HasValue;
}
}
}