Class InstanceGroupConfig
- All Implemented Interfaces:
Serializable
,Cloneable
Configuration defining a new instance group.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionclone()
boolean
Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.EBS configurations that will be attached to each Amazon EC2 instance in the instance group.Target number of instances for the instance group.The role of the instance group in the cluster.The Amazon EC2 instance type for all instances in the instance group.Market type of the Amazon EC2 instances used to create a cluster node.getName()
Friendly name given to the instance group.int
hashCode()
void
setBidPrice
(String bidPrice) Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.void
setConfigurations
(Collection<Configuration> configurations) void
setEbsConfiguration
(EbsConfiguration ebsConfiguration) EBS configurations that will be attached to each Amazon EC2 instance in the instance group.void
setInstanceCount
(Integer instanceCount) Target number of instances for the instance group.void
setInstanceRole
(InstanceRoleType instanceRole) The role of the instance group in the cluster.void
setInstanceRole
(String instanceRole) The role of the instance group in the cluster.void
setInstanceType
(String instanceType) The Amazon EC2 instance type for all instances in the instance group.void
setMarket
(MarketType market) Market type of the Amazon EC2 instances used to create a cluster node.void
Market type of the Amazon EC2 instances used to create a cluster node.void
Friendly name given to the instance group.toString()
Returns a string representation of this object; useful for testing and debugging.withBidPrice
(String bidPrice) Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.withConfigurations
(Configuration... configurations) withConfigurations
(Collection<Configuration> configurations) withEbsConfiguration
(EbsConfiguration ebsConfiguration) EBS configurations that will be attached to each Amazon EC2 instance in the instance group.withInstanceCount
(Integer instanceCount) Target number of instances for the instance group.withInstanceRole
(InstanceRoleType instanceRole) The role of the instance group in the cluster.withInstanceRole
(String instanceRole) The role of the instance group in the cluster.withInstanceType
(String instanceType) The Amazon EC2 instance type for all instances in the instance group.withMarket
(MarketType market) Market type of the Amazon EC2 instances used to create a cluster node.withMarket
(String market) Market type of the Amazon EC2 instances used to create a cluster node.Friendly name given to the instance group.
-
Constructor Details
-
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
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 Details
-
setName
Friendly name given to the instance group.
- Parameters:
name
- Friendly name given to the instance group.
-
getName
Friendly name given to the instance group.
- Returns:
- Friendly name given to the instance group.
-
withName
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
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:
-
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:
-
withMarket
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:
-
setMarket
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:
-
withMarket
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:
-
setInstanceRole
The role of the instance group in the cluster.
- Parameters:
instanceRole
- The role of the instance group in the cluster.- See Also:
-
getInstanceRole
The role of the instance group in the cluster.
- Returns:
- The role of the instance group in the cluster.
- See Also:
-
withInstanceRole
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:
-
setInstanceRole
The role of the instance group in the cluster.
- Parameters:
instanceRole
- The role of the instance group in the cluster.- See Also:
-
withInstanceRole
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:
-
setBidPrice
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
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
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
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
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
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
Target number of instances for the instance group.
- Parameters:
instanceCount
- Target number of instances for the instance group.
-
getInstanceCount
Target number of instances for the instance group.
- Returns:
- Target number of instances for the instance group.
-
withInstanceCount
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
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-