@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceGroup extends Object implements Serializable, Cloneable, StructuredPojo
This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.
Constructor and Description |
---|
InstanceGroup() |
Modifier and Type | Method and Description |
---|---|
InstanceGroup |
clone() |
boolean |
equals(Object obj) |
AutoScalingPolicyDescription |
getAutoScalingPolicy()
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
String |
getBidPrice()
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in
USD.
|
List<Configuration> |
getConfigurations()
|
List<EbsBlockDevice> |
getEbsBlockDevices()
The EBS block devices that are mapped to this instance group.
|
Boolean |
getEbsOptimized()
If the instance group is EBS-optimized.
|
String |
getId()
The identifier of the instance group.
|
String |
getInstanceGroupType()
The type of the instance group.
|
String |
getInstanceType()
The EC2 instance type for all instances in the instance group.
|
String |
getMarket()
The marketplace to provision instances for this group.
|
String |
getName()
The name of the instance group.
|
Integer |
getRequestedInstanceCount()
The target number of instances for the instance group.
|
Integer |
getRunningInstanceCount()
The number of instances currently running in this instance group.
|
ShrinkPolicy |
getShrinkPolicy()
Policy for customizing shrink operations.
|
InstanceGroupStatus |
getStatus()
The current status of the instance group.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
If the instance group is EBS-optimized.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
void |
setBidPrice(String bidPrice)
The 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 |
setEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
|
void |
setEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized.
|
void |
setId(String id)
The identifier of the instance group.
|
void |
setInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
void |
setInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
void |
setInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
|
void |
setMarket(MarketType market)
The marketplace to provision instances for this group.
|
void |
setMarket(String market)
The marketplace to provision instances for this group.
|
void |
setName(String name)
The name of the instance group.
|
void |
setRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
void |
setRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
void |
setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
void |
setStatus(InstanceGroupStatus status)
The current status of the instance group.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceGroup |
withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
InstanceGroup |
withBidPrice(String bidPrice)
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in
USD.
|
InstanceGroup |
withConfigurations(Collection<Configuration> configurations)
|
InstanceGroup |
withConfigurations(Configuration... configurations)
|
InstanceGroup |
withEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
|
InstanceGroup |
withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
|
InstanceGroup |
withEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized.
|
InstanceGroup |
withId(String id)
The identifier of the instance group.
|
InstanceGroup |
withInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
|
InstanceGroup |
withMarket(MarketType market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withMarket(String market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withName(String name)
The name of the instance group.
|
InstanceGroup |
withRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
InstanceGroup |
withRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
InstanceGroup |
withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
InstanceGroup |
withStatus(InstanceGroupStatus status)
The current status of the instance group.
|
public void setId(String id)
The identifier of the instance group.
id
- The identifier of the instance group.public String getId()
The identifier of the instance group.
public InstanceGroup withId(String id)
The identifier of the instance group.
id
- The identifier of the instance group.public void setName(String name)
The name of the instance group.
name
- The name of the instance group.public String getName()
The name of the instance group.
public InstanceGroup withName(String name)
The name of the instance group.
name
- The name of the instance group.public void setMarket(String market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public String getMarket()
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
MarketType
public InstanceGroup withMarket(String market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public void setMarket(MarketType market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public InstanceGroup withMarket(MarketType market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public void setInstanceGroupType(String instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public String getInstanceGroupType()
The type of the instance group. Valid values are MASTER, CORE or TASK.
InstanceGroupType
public InstanceGroup withInstanceGroupType(String instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public void setInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public InstanceGroup withInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public void setBidPrice(String bidPrice)
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
bidPrice
- The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances,
expressed in USD.public String getBidPrice()
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
public InstanceGroup withBidPrice(String bidPrice)
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
bidPrice
- The 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 InstanceGroup 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 setRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
requestedInstanceCount
- The target number of instances for the instance group.public Integer getRequestedInstanceCount()
The target number of instances for the instance group.
public InstanceGroup withRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
requestedInstanceCount
- The target number of instances for the instance group.public void setRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
runningInstanceCount
- The number of instances currently running in this instance group.public Integer getRunningInstanceCount()
The number of instances currently running in this instance group.
public InstanceGroup withRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
runningInstanceCount
- The number of instances currently running in this instance group.public void setStatus(InstanceGroupStatus status)
The current status of the instance group.
status
- The current status of the instance group.public InstanceGroupStatus getStatus()
The current status of the instance group.
public InstanceGroup withStatus(InstanceGroupStatus status)
The current status of the instance group.
status
- The current status of 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 InstanceGroup 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 InstanceGroup 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 List<EbsBlockDevice> getEbsBlockDevices()
The EBS block devices that are mapped to this instance group.
public void setEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.public InstanceGroup withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
NOTE: This method appends the values to the existing list (if any). Use
setEbsBlockDevices(java.util.Collection)
or withEbsBlockDevices(java.util.Collection)
if you
want to override the existing values.
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.public InstanceGroup withEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.public void setEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
ebsOptimized
- If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration
stack and provides additional, dedicated capacity for Amazon EBS I/O.public Boolean getEbsOptimized()
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
public InstanceGroup withEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
ebsOptimized
- If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration
stack and provides additional, dedicated capacity for Amazon EBS I/O.public Boolean isEbsOptimized()
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
public void setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.public ShrinkPolicy getShrinkPolicy()
Policy for customizing shrink operations.
public InstanceGroup withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.public void setAutoScalingPolicy(AutoScalingPolicyDescription 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 AutoScalingPolicyDescription 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 InstanceGroup withAutoScalingPolicy(AutoScalingPolicyDescription 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 InstanceGroup 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.