@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceFleetConfig extends Object implements Serializable, Cloneable, StructuredPojo
The configuration that defines an instance fleet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
| Constructor and Description | 
|---|
| InstanceFleetConfig() | 
| Modifier and Type | Method and Description | 
|---|---|
| InstanceFleetConfig | clone() | 
| boolean | equals(Object obj) | 
| String | getInstanceFleetType()
 The node type that the instance fleet hosts. | 
| List<InstanceTypeConfig> | getInstanceTypeConfigs()
 The instance type configurations that define the EC2 instances in the instance fleet. | 
| InstanceFleetProvisioningSpecifications | getLaunchSpecifications()
 The launch specification for the instance fleet. | 
| String | getName()
 The friendly name of the instance fleet. | 
| Integer | getTargetOnDemandCapacity()
 The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to
 provision. | 
| Integer | getTargetSpotCapacity()
 The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setInstanceFleetType(InstanceFleetType instanceFleetType)
 The node type that the instance fleet hosts. | 
| void | setInstanceFleetType(String instanceFleetType)
 The node type that the instance fleet hosts. | 
| void | setInstanceTypeConfigs(Collection<InstanceTypeConfig> instanceTypeConfigs)
 The instance type configurations that define the EC2 instances in the instance fleet. | 
| void | setLaunchSpecifications(InstanceFleetProvisioningSpecifications launchSpecifications)
 The launch specification for the instance fleet. | 
| void | setName(String name)
 The friendly name of the instance fleet. | 
| void | setTargetOnDemandCapacity(Integer targetOnDemandCapacity)
 The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to
 provision. | 
| void | setTargetSpotCapacity(Integer targetSpotCapacity)
 The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. | 
| String | toString()Returns a string representation of this object; useful for testing and debugging. | 
| InstanceFleetConfig | withInstanceFleetType(InstanceFleetType instanceFleetType)
 The node type that the instance fleet hosts. | 
| InstanceFleetConfig | withInstanceFleetType(String instanceFleetType)
 The node type that the instance fleet hosts. | 
| InstanceFleetConfig | withInstanceTypeConfigs(Collection<InstanceTypeConfig> instanceTypeConfigs)
 The instance type configurations that define the EC2 instances in the instance fleet. | 
| InstanceFleetConfig | withInstanceTypeConfigs(InstanceTypeConfig... instanceTypeConfigs)
 The instance type configurations that define the EC2 instances in the instance fleet. | 
| InstanceFleetConfig | withLaunchSpecifications(InstanceFleetProvisioningSpecifications launchSpecifications)
 The launch specification for the instance fleet. | 
| InstanceFleetConfig | withName(String name)
 The friendly name of the instance fleet. | 
| InstanceFleetConfig | withTargetOnDemandCapacity(Integer targetOnDemandCapacity)
 The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to
 provision. | 
| InstanceFleetConfig | withTargetSpotCapacity(Integer targetSpotCapacity)
 The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. | 
public void setName(String name)
The friendly name of the instance fleet.
name - The friendly name of the instance fleet.public String getName()
The friendly name of the instance fleet.
public InstanceFleetConfig withName(String name)
The friendly name of the instance fleet.
name - The friendly name of the instance fleet.public void setInstanceFleetType(String instanceFleetType)
The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.
instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.InstanceFleetTypepublic String getInstanceFleetType()
The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.
InstanceFleetTypepublic InstanceFleetConfig withInstanceFleetType(String instanceFleetType)
The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.
instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.InstanceFleetTypepublic void setInstanceFleetType(InstanceFleetType instanceFleetType)
The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.
instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.InstanceFleetTypepublic InstanceFleetConfig withInstanceFleetType(InstanceFleetType instanceFleetType)
The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.
instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.InstanceFleetTypepublic void setTargetOnDemandCapacity(Integer targetOnDemandCapacity)
 The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to
 provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by
 InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an
 On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity.
 Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an
 overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an
 instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is
 exceeded by 3 units.
 
 If not specified or set to 0, only Spot instances are provisioned for the instance fleet using
 TargetSpotCapacity. At least one of TargetSpotCapacity and
 TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of
 TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be
 1.
 
targetOnDemandCapacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand
        instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand
        instances as specified by InstanceTypeConfig. Each instance configuration has a specified
        WeightedCapacity. When an On-Demand instance is provisioned, the
        WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances
        until the target capacity is totally fulfilled, even if this results in an overage. For example, if there
        are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
        WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded
        by 3 units. 
        If not specified or set to 0, only Spot instances are provisioned for the instance fleet using
        TargetSpotCapacity. At least one of TargetSpotCapacity and
        TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of
        TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value
        must be 1.
        
public Integer getTargetOnDemandCapacity()
 The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to
 provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by
 InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an
 On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity.
 Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an
 overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an
 instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is
 exceeded by 3 units.
 
 If not specified or set to 0, only Spot instances are provisioned for the instance fleet using
 TargetSpotCapacity. At least one of TargetSpotCapacity and
 TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of
 TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be
 1.
 
WeightedCapacity. When an On-Demand instance is provisioned, the
         WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances
         until the target capacity is totally fulfilled, even if this results in an overage. For example, if there
         are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
         WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is
         exceeded by 3 units. 
         If not specified or set to 0, only Spot instances are provisioned for the instance fleet using
         TargetSpotCapacity. At least one of TargetSpotCapacity and
         TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of
         TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value
         must be 1.
         
public InstanceFleetConfig withTargetOnDemandCapacity(Integer targetOnDemandCapacity)
 The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to
 provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by
 InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an
 On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity.
 Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an
 overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an
 instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is
 exceeded by 3 units.
 
 If not specified or set to 0, only Spot instances are provisioned for the instance fleet using
 TargetSpotCapacity. At least one of TargetSpotCapacity and
 TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of
 TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be
 1.
 
targetOnDemandCapacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand
        instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand
        instances as specified by InstanceTypeConfig. Each instance configuration has a specified
        WeightedCapacity. When an On-Demand instance is provisioned, the
        WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances
        until the target capacity is totally fulfilled, even if this results in an overage. For example, if there
        are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
        WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded
        by 3 units. 
        If not specified or set to 0, only Spot instances are provisioned for the instance fleet using
        TargetSpotCapacity. At least one of TargetSpotCapacity and
        TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of
        TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value
        must be 1.
        
public void setTargetSpotCapacity(Integer targetSpotCapacity)
 The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
 When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by
 InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot
 instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR
 provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For
 example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
 WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3
 units.
 
 If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of
 TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master
 instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be
 specified, and its value must be 1.
 
targetSpotCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to
        provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by
        InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When
        a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity.
        Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an
        overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only
        provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and
        the target capacity is exceeded by 3 units. 
        If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least
        one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0.
        For a master instance fleet, only one of TargetSpotCapacity and
        TargetOnDemandCapacity can be specified, and its value must be 1.
        
public Integer getTargetSpotCapacity()
 The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
 When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by
 InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot
 instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR
 provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For
 example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
 WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3
 units.
 
 If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of
 TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master
 instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be
 specified, and its value must be 1.
 
WeightedCapacity.
         When a Spot instance is provisioned, the WeightedCapacity units count toward the target
         capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this
         results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR
         can only provision an instance with a WeightedCapacity of 5 units, the instance is
         provisioned, and the target capacity is exceeded by 3 units. 
         If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least
         one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0.
         For a master instance fleet, only one of TargetSpotCapacity and
         TargetOnDemandCapacity can be specified, and its value must be 1.
         
public InstanceFleetConfig withTargetSpotCapacity(Integer targetSpotCapacity)
 The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
 When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by
 InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot
 instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR
 provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For
 example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a
 WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3
 units.
 
 If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of
 TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master
 instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be
 specified, and its value must be 1.
 
targetSpotCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to
        provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by
        InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When
        a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity.
        Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an
        overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only
        provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and
        the target capacity is exceeded by 3 units. 
        If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least
        one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0.
        For a master instance fleet, only one of TargetSpotCapacity and
        TargetOnDemandCapacity can be specified, and its value must be 1.
        
public List<InstanceTypeConfig> getInstanceTypeConfigs()
The instance type configurations that define the EC2 instances in the instance fleet.
public void setInstanceTypeConfigs(Collection<InstanceTypeConfig> instanceTypeConfigs)
The instance type configurations that define the EC2 instances in the instance fleet.
instanceTypeConfigs - The instance type configurations that define the EC2 instances in the instance fleet.public InstanceFleetConfig withInstanceTypeConfigs(InstanceTypeConfig... instanceTypeConfigs)
The instance type configurations that define the EC2 instances in the instance fleet.
 NOTE: This method appends the values to the existing list (if any). Use
 setInstanceTypeConfigs(java.util.Collection) or withInstanceTypeConfigs(java.util.Collection)
 if you want to override the existing values.
 
instanceTypeConfigs - The instance type configurations that define the EC2 instances in the instance fleet.public InstanceFleetConfig withInstanceTypeConfigs(Collection<InstanceTypeConfig> instanceTypeConfigs)
The instance type configurations that define the EC2 instances in the instance fleet.
instanceTypeConfigs - The instance type configurations that define the EC2 instances in the instance fleet.public void setLaunchSpecifications(InstanceFleetProvisioningSpecifications launchSpecifications)
The launch specification for the instance fleet.
launchSpecifications - The launch specification for the instance fleet.public InstanceFleetProvisioningSpecifications getLaunchSpecifications()
The launch specification for the instance fleet.
public InstanceFleetConfig withLaunchSpecifications(InstanceFleetProvisioningSpecifications launchSpecifications)
The launch specification for the instance fleet.
launchSpecifications - The launch specification for the instance fleet.public String toString()
toString in class ObjectObject.toString()public InstanceFleetConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.