public class InstanceGroupConfig extends Object implements Serializable, Cloneable
Configuration defining a new instance group.
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
InstanceGroupConfig |
clone() |
boolean |
equals(Object obj) |
String |
getBidPrice()
Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
List<Configuration> |
getConfigurations()
|
EbsConfiguration |
getEbsConfiguration()
EBS configurations that will be attached to each Amazon EC2 instance in
the instance group.
|
Integer |
getInstanceCount()
Target number of instances for the instance group.
|
String |
getInstanceRole()
The role of the instance group in the cluster.
|
String |
getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.
|
String |
getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
|
String |
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 |
setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
void |
setName(String name)
Friendly name given to the instance group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceGroupConfig |
withBidPrice(String bidPrice)
Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
InstanceGroupConfig |
withConfigurations(Collection<Configuration> configurations)
|
InstanceGroupConfig |
withConfigurations(Configuration... configurations)
|
InstanceGroupConfig |
withEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in
the instance group.
|
InstanceGroupConfig |
withInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
|
InstanceGroupConfig |
withInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
|
InstanceGroupConfig |
withInstanceRole(String instanceRole)
The role of the instance group in the cluster.
|
InstanceGroupConfig |
withInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
|
InstanceGroupConfig |
withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
InstanceGroupConfig |
withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
InstanceGroupConfig |
withName(String name)
Friendly name given to the instance group.
|
public InstanceGroupConfig()
public InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)
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.public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)
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.public void setName(String name)
Friendly name given to the instance group.
name
- Friendly name given to the instance group.public String getName()
Friendly name given to the instance group.
public InstanceGroupConfig withName(String name)
Friendly name given to the instance group.
name
- Friendly name given to the instance group.public void setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster
node.MarketType
public String getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
MarketType
public InstanceGroupConfig withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster
node.MarketType
public void setMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster
node.MarketType
public InstanceGroupConfig withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster
node.MarketType
public void setInstanceRole(String instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public String getInstanceRole()
The role of the instance group in the cluster.
InstanceRoleType
public InstanceGroupConfig withInstanceRole(String instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public void setInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public InstanceGroupConfig withInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
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.
bidPrice
- Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.public String getBidPrice()
Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
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.
bidPrice
- Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.public void setInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
instanceType
- The Amazon EC2 instance type for all instances in the instance
group.public String getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.
public InstanceGroupConfig withInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
instanceType
- The Amazon EC2 instance type for all instances in the instance
group.public void setInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
instanceCount
- Target number of instances for the instance group.public Integer getInstanceCount()
Target number of instances for the instance group.
public InstanceGroupConfig withInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
instanceCount
- Target number of instances for the instance group.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).
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).
configurations
- Amazon EMR releases 4.x or later.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)
or
withConfigurations(java.util.Collection)
if you want to override
the existing values.
configurations
- Amazon EMR releases 4.x or later.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).
configurations
- Amazon EMR releases 4.x or later.public void setEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
ebsConfiguration
- EBS configurations that will be attached to each Amazon EC2
instance in the instance group.public EbsConfiguration getEbsConfiguration()
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
public InstanceGroupConfig withEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
ebsConfiguration
- EBS configurations that will be attached to each Amazon EC2
instance in the instance group.public String toString()
toString
in class Object
Object.toString()
public InstanceGroupConfig clone()
Copyright © 2016. All rights reserved.