@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceGroupConfig extends Object implements Serializable, Cloneable, StructuredPojo
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) |
AutoScalingPolicy |
getAutoScalingPolicy()
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
String |
getBidPrice()
Bid price for each 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 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 EC2 instance type for all instances in the instance group.
|
String |
getMarket()
Market type of the EC2 instances used to create a cluster node.
|
String |
getName()
Friendly name given to the instance group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
void |
setBidPrice(String bidPrice)
Bid price for each 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 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 EC2 instance type for all instances in the instance group.
|
void |
setMarket(MarketType market)
Market type of the EC2 instances used to create a cluster node.
|
void |
setMarket(String market)
Market type of the 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 |
withAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
InstanceGroupConfig |
withBidPrice(String bidPrice)
Bid price for each 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 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 EC2 instance type for all instances in the instance group.
|
InstanceGroupConfig |
withMarket(MarketType market)
Market type of the EC2 instances used to create a cluster node.
|
InstanceGroupConfig |
withMarket(String market)
Market type of the 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 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 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 EC2 instances used to create a cluster node.
market
- Market type of the EC2 instances used to create a cluster node.MarketType
public String getMarket()
Market type of the EC2 instances used to create a cluster node.
MarketType
public InstanceGroupConfig withMarket(String market)
Market type of the EC2 instances used to create a cluster node.
market
- Market type of the EC2 instances used to create a cluster node.MarketType
public void setMarket(MarketType market)
Market type of the EC2 instances used to create a cluster node.
market
- Market type of the EC2 instances used to create a cluster node.MarketType
public InstanceGroupConfig withMarket(MarketType market)
Market type of the EC2 instances used to create a cluster node.
market
- Market type of the 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 EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
bidPrice
- Bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in
USD.public String getBidPrice()
Bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
public InstanceGroupConfig withBidPrice(String bidPrice)
Bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
bidPrice
- Bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in
USD.public void setInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
instanceType
- The EC2 instance type for all instances in the instance group.public String getInstanceType()
The EC2 instance type for all instances in the instance group.
public InstanceGroupConfig withInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
instanceType
- The 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).
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.
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 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.
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 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.
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 setEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each EC2 instance in the instance group.
ebsConfiguration
- EBS configurations that will be attached to each EC2 instance in the instance group.public EbsConfiguration getEbsConfiguration()
EBS configurations that will be attached to each EC2 instance in the instance group.
public InstanceGroupConfig withEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each EC2 instance in the instance group.
ebsConfiguration
- EBS configurations that will be attached to each EC2 instance in the instance group.public void setAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
autoScalingPolicy
- An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The
automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in
response to the value of a CloudWatch metric. See PutAutoScalingPolicy.public AutoScalingPolicy getAutoScalingPolicy()
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
public InstanceGroupConfig withAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
autoScalingPolicy
- An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The
automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in
response to the value of a CloudWatch metric. See PutAutoScalingPolicy.public String toString()
toString
in class Object
Object.toString()
public InstanceGroupConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.