Class InstanceGroupConfig
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.InstanceGroupConfig
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceGroupConfig extends Object implements Serializable, Cloneable
Configuration defining a new instance group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceGroupConfig()Default constructor for InstanceGroupConfig object.InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)Constructs a new InstanceGroupConfig object.InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)Constructs a new InstanceGroupConfig object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceGroupConfigclone()booleanequals(Object obj)StringgetBidPrice()Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.List<Configuration>getConfigurations()EbsConfigurationgetEbsConfiguration()EBS configurations that will be attached to each Amazon EC2 instance in the instance group.IntegergetInstanceCount()Target number of instances for the instance group.StringgetInstanceRole()The role of the instance group in the cluster.StringgetInstanceType()The Amazon EC2 instance type for all instances in the instance group.StringgetMarket()Market type of the Amazon EC2 instances used to create a cluster node.StringgetName()Friendly name given to the instance group.inthashCode()voidsetBidPrice(String bidPrice)Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.voidsetConfigurations(Collection<Configuration> configurations)voidsetEbsConfiguration(EbsConfiguration ebsConfiguration)EBS configurations that will be attached to each Amazon EC2 instance in the instance group.voidsetInstanceCount(Integer instanceCount)Target number of instances for the instance group.voidsetInstanceRole(InstanceRoleType instanceRole)The role of the instance group in the cluster.voidsetInstanceRole(String instanceRole)The role of the instance group in the cluster.voidsetInstanceType(String instanceType)The Amazon EC2 instance type for all instances in the instance group.voidsetMarket(MarketType market)Market type of the Amazon EC2 instances used to create a cluster node.voidsetMarket(String market)Market type of the Amazon EC2 instances used to create a cluster node.voidsetName(String name)Friendly name given to the instance group.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceGroupConfigwithBidPrice(String bidPrice)Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.InstanceGroupConfigwithConfigurations(Configuration... configurations)InstanceGroupConfigwithConfigurations(Collection<Configuration> configurations)InstanceGroupConfigwithEbsConfiguration(EbsConfiguration ebsConfiguration)EBS configurations that will be attached to each Amazon EC2 instance in the instance group.InstanceGroupConfigwithInstanceCount(Integer instanceCount)Target number of instances for the instance group.InstanceGroupConfigwithInstanceRole(InstanceRoleType instanceRole)The role of the instance group in the cluster.InstanceGroupConfigwithInstanceRole(String instanceRole)The role of the instance group in the cluster.InstanceGroupConfigwithInstanceType(String instanceType)The Amazon EC2 instance type for all instances in the instance group.InstanceGroupConfigwithMarket(MarketType market)Market type of the Amazon EC2 instances used to create a cluster node.InstanceGroupConfigwithMarket(String market)Market type of the Amazon EC2 instances used to create a cluster node.InstanceGroupConfigwithName(String name)Friendly name given to the instance group.
-
-
-
Constructor Detail
-
InstanceGroupConfig
public InstanceGroupConfig()
Default constructor for InstanceGroupConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
InstanceGroupConfig
public InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)
Constructs a new InstanceGroupConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
instanceRole- The role of the instance group in the cluster.instanceType- The Amazon EC2 instance type for all instances in the instance group.instanceCount- Target number of instances for the instance group.
-
InstanceGroupConfig
public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)
Constructs a new InstanceGroupConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
instanceRole- The role of the instance group in the cluster.instanceType- The Amazon EC2 instance type for all instances in the instance group.instanceCount- Target number of instances for the instance group.
-
-
Method Detail
-
setName
public void setName(String name)
Friendly name given to the instance group.
- Parameters:
name- Friendly name given to the instance group.
-
getName
public String getName()
Friendly name given to the instance group.
- Returns:
- Friendly name given to the instance group.
-
withName
public InstanceGroupConfig withName(String name)
Friendly name given to the instance group.
- Parameters:
name- Friendly name given to the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMarket
public void setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market- Market type of the Amazon EC2 instances used to create a cluster node.- See Also:
MarketType
-
getMarket
public String getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
- Returns:
- Market type of the Amazon EC2 instances used to create a cluster node.
- See Also:
MarketType
-
withMarket
public InstanceGroupConfig withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType
-
setMarket
public void setMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market- Market type of the Amazon EC2 instances used to create a cluster node.- See Also:
MarketType
-
withMarket
public InstanceGroupConfig withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType
-
setInstanceRole
public void setInstanceRole(String instanceRole)
The role of the instance group in the cluster.
- Parameters:
instanceRole- The role of the instance group in the cluster.- See Also:
InstanceRoleType
-
getInstanceRole
public String getInstanceRole()
The role of the instance group in the cluster.
- Returns:
- The role of the instance group in the cluster.
- See Also:
InstanceRoleType
-
withInstanceRole
public InstanceGroupConfig withInstanceRole(String instanceRole)
The role of the instance group in the cluster.
- Parameters:
instanceRole- The role of the instance group in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceRoleType
-
setInstanceRole
public void setInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
- Parameters:
instanceRole- The role of the instance group in the cluster.- See Also:
InstanceRoleType
-
withInstanceRole
public InstanceGroupConfig withInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
- Parameters:
instanceRole- The role of the instance group in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceRoleType
-
setBidPrice
public void setBidPrice(String bidPrice)
Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
- Parameters:
bidPrice- Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
-
getBidPrice
public String getBidPrice()
Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
- Returns:
- Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
-
withBidPrice
public InstanceGroupConfig withBidPrice(String bidPrice)
Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
- Parameters:
bidPrice- Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
- Parameters:
instanceType- The Amazon EC2 instance type for all instances in the instance group.
-
getInstanceType
public String getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.
- Returns:
- The Amazon EC2 instance type for all instances in the instance group.
-
withInstanceType
public InstanceGroupConfig withInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
- Parameters:
instanceType- The Amazon EC2 instance type for all instances in the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
- Parameters:
instanceCount- Target number of instances for the instance group.
-
getInstanceCount
public Integer getInstanceCount()
Target number of instances for the instance group.
- Returns:
- Target number of instances for the instance group.
-
withInstanceCount
public InstanceGroupConfig withInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
- Parameters:
instanceCount- Target number of instances for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfigurations
public List<Configuration> getConfigurations()
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Returns:
- Amazon EMR releases 4.x or later.
-
setConfigurations
public void setConfigurations(Collection<Configuration> configurations)
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations- Amazon EMR releases 4.x or later.
-
withConfigurations
public InstanceGroupConfig withConfigurations(Configuration... configurations)
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
NOTE: This method appends the values to the existing list (if any). Use
setConfigurations(java.util.Collection)orwithConfigurations(java.util.Collection)if you want to override the existing values.- Parameters:
configurations- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withConfigurations
public InstanceGroupConfig withConfigurations(Collection<Configuration> configurations)
Amazon EMR releases 4.x or later.
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations- Amazon EMR releases 4.x or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsConfiguration
public void setEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
- Parameters:
ebsConfiguration- EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
-
getEbsConfiguration
public EbsConfiguration getEbsConfiguration()
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
- Returns:
- EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
-
withEbsConfiguration
public InstanceGroupConfig withEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
- Parameters:
ebsConfiguration- EBS configurations that will be attached to each Amazon EC2 instance in the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceGroupConfig clone()
-
-