public static interface InstanceGroupConfig.Builder extends SdkPojo, CopyableBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>
Modifier and Type | Method and Description |
---|---|
InstanceGroupConfig.Builder |
autoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
default InstanceGroupConfig.Builder |
autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
InstanceGroupConfig.Builder |
bidPrice(String bidPrice)
The bid price for each EC2 Spot instance type as defined by
InstanceType . |
InstanceGroupConfig.Builder |
configurations(Collection<Configuration> configurations)
|
InstanceGroupConfig.Builder |
configurations(Configuration... configurations)
|
InstanceGroupConfig.Builder |
configurations(Consumer<Configuration.Builder>... configurations)
|
default InstanceGroupConfig.Builder |
ebsConfiguration(Consumer<EbsConfiguration.Builder> ebsConfiguration)
EBS configurations that will be attached to each EC2 instance in the instance group.
|
InstanceGroupConfig.Builder |
ebsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each EC2 instance in the instance group.
|
InstanceGroupConfig.Builder |
instanceCount(Integer instanceCount)
Target number of instances for the instance group.
|
InstanceGroupConfig.Builder |
instanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
|
InstanceGroupConfig.Builder |
instanceRole(String instanceRole)
The role of the instance group in the cluster.
|
InstanceGroupConfig.Builder |
instanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
|
InstanceGroupConfig.Builder |
market(MarketType market)
Market type of the EC2 instances used to create a cluster node.
|
InstanceGroupConfig.Builder |
market(String market)
Market type of the EC2 instances used to create a cluster node.
|
InstanceGroupConfig.Builder |
name(String name)
Friendly name given to the instance group.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
InstanceGroupConfig.Builder name(String name)
Friendly name given to the instance group.
name
- Friendly name given to the instance group.InstanceGroupConfig.Builder market(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
,
MarketType
InstanceGroupConfig.Builder market(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
,
MarketType
InstanceGroupConfig.Builder instanceRole(String instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
,
InstanceRoleType
InstanceGroupConfig.Builder instanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
,
InstanceRoleType
InstanceGroupConfig.Builder bidPrice(String bidPrice)
The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in USD. If
neither BidPrice
nor BidPriceAsPercentageOfOnDemandPrice
is provided,
BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.
bidPrice
- The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in
USD. If neither BidPrice
nor BidPriceAsPercentageOfOnDemandPrice
is
provided, BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.InstanceGroupConfig.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.InstanceGroupConfig.Builder instanceCount(Integer instanceCount)
Target number of instances for the instance group.
instanceCount
- Target number of instances for the instance group.InstanceGroupConfig.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).
InstanceGroupConfig.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).
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).
InstanceGroupConfig.Builder configurations(Consumer<Configuration.Builder>... 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).
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #configurations(List)
.configurations
- a consumer that will call methods on List.Builder
#configurations(List)
InstanceGroupConfig.Builder ebsConfiguration(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.default InstanceGroupConfig.Builder ebsConfiguration(Consumer<EbsConfiguration.Builder> ebsConfiguration)
EBS configurations that will be attached to each EC2 instance in the instance group.
This is a convenience that creates an instance of theEbsConfiguration.Builder
avoiding the need to
create one manually via EbsConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to ebsConfiguration(EbsConfiguration)
.ebsConfiguration
- a consumer that will call methods on EbsConfiguration.Builder
ebsConfiguration(EbsConfiguration)
InstanceGroupConfig.Builder autoScalingPolicy(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.default InstanceGroupConfig.Builder autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> 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.
This is a convenience that creates an instance of theAutoScalingPolicy.Builder
avoiding the need to
create one manually via AutoScalingPolicy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to autoScalingPolicy(AutoScalingPolicy)
.autoScalingPolicy
- a consumer that will call methods on AutoScalingPolicy.Builder
autoScalingPolicy(AutoScalingPolicy)
Copyright © 2020. All rights reserved.