CopyableBuilder<InstanceGroup.Builder,InstanceGroup>
, SdkBuilder<InstanceGroup.Builder,InstanceGroup>
public static interface InstanceGroup.Builder extends CopyableBuilder<InstanceGroup.Builder,InstanceGroup>
Modifier and Type | Method | Description |
---|---|---|
InstanceGroup.Builder |
autoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) |
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
InstanceGroup.Builder |
bidPrice(String bidPrice) |
The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed
in USD.
|
InstanceGroup.Builder |
configurations(Collection<Configuration> configurations) |
|
InstanceGroup.Builder |
configurations(Configuration... configurations) |
|
InstanceGroup.Builder |
ebsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices) |
The EBS block devices that are mapped to this instance group.
|
InstanceGroup.Builder |
ebsBlockDevices(EbsBlockDevice... ebsBlockDevices) |
The EBS block devices that are mapped to this instance group.
|
InstanceGroup.Builder |
ebsOptimized(Boolean ebsOptimized) |
If the instance group is EBS-optimized.
|
InstanceGroup.Builder |
id(String id) |
The identifier of the instance group.
|
InstanceGroup.Builder |
instanceGroupType(String instanceGroupType) |
The type of the instance group.
|
InstanceGroup.Builder |
instanceGroupType(InstanceGroupType instanceGroupType) |
The type of the instance group.
|
InstanceGroup.Builder |
instanceType(String instanceType) |
The EC2 instance type for all instances in the instance group.
|
InstanceGroup.Builder |
market(String market) |
The marketplace to provision instances for this group.
|
InstanceGroup.Builder |
market(MarketType market) |
The marketplace to provision instances for this group.
|
InstanceGroup.Builder |
name(String name) |
The name of the instance group.
|
InstanceGroup.Builder |
requestedInstanceCount(Integer requestedInstanceCount) |
The target number of instances for the instance group.
|
InstanceGroup.Builder |
runningInstanceCount(Integer runningInstanceCount) |
The number of instances currently running in this instance group.
|
InstanceGroup.Builder |
shrinkPolicy(ShrinkPolicy shrinkPolicy) |
Policy for customizing shrink operations.
|
InstanceGroup.Builder |
status(InstanceGroupStatus status) |
The current status of the instance group.
|
copy
apply, build
InstanceGroup.Builder id(String id)
The identifier of the instance group.
id
- The identifier of the instance group.InstanceGroup.Builder name(String name)
The name of the instance group.
name
- The name of the instance group.InstanceGroup.Builder market(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
InstanceGroup.Builder market(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
InstanceGroup.Builder instanceGroupType(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
InstanceGroup.Builder instanceGroupType(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
InstanceGroup.Builder bidPrice(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.InstanceGroup.Builder instanceType(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.InstanceGroup.Builder requestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
requestedInstanceCount
- The target number of instances for the instance group.InstanceGroup.Builder runningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
runningInstanceCount
- The number of instances currently running in this instance group.InstanceGroup.Builder status(InstanceGroupStatus status)
The current status of the instance group.
status
- The current status of the instance group.InstanceGroup.Builder configurations(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).
InstanceGroup.Builder configurations(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).
InstanceGroup.Builder ebsBlockDevices(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.InstanceGroup.Builder ebsBlockDevices(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.InstanceGroup.Builder ebsOptimized(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.InstanceGroup.Builder shrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.InstanceGroup.Builder autoScalingPolicy(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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.