Interface InstanceGroupConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceGroupConfig.Builder,
,InstanceGroupConfig> SdkBuilder<InstanceGroupConfig.Builder,
,InstanceGroupConfig> SdkPojo
- Enclosing class:
InstanceGroupConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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.autoScalingPolicy
(AutoScalingPolicy autoScalingPolicy) An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.If specified, indicates that the instance group uses Spot Instances.configurations
(Collection<Configuration> configurations) configurations
(Consumer<Configuration.Builder>... configurations) configurations
(Configuration... configurations) customAmiId
(String customAmiId) The custom AMI ID to use for the provisioned instance group.default InstanceGroupConfig.Builder
ebsConfiguration
(Consumer<EbsConfiguration.Builder> ebsConfiguration) EBS configurations that will be attached to each Amazon EC2 instance in the instance group.ebsConfiguration
(EbsConfiguration ebsConfiguration) EBS configurations that will be attached to each Amazon EC2 instance in the instance group.instanceCount
(Integer instanceCount) Target number of instances for the instance group.instanceRole
(String instanceRole) The role of the instance group in the cluster.instanceRole
(InstanceRoleType instanceRole) The role of the instance group in the cluster.instanceType
(String instanceType) The Amazon EC2 instance type for all instances in the instance group.Market type of the Amazon EC2 instances used to create a cluster node.market
(MarketType market) Market type of the Amazon EC2 instances used to create a cluster node.Friendly name given to the instance group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
Friendly name given to the instance group.
- Parameters:
name
- Friendly name given to the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
market
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market
- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
market
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market
- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRole
The role of the instance group in the cluster.
- Parameters:
instanceRole
- The role of the instance group in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRole
The role of the instance group in the cluster.
- Parameters:
instanceRole
- The role of the instance group in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bidPrice
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify
OnDemandPrice
to set the amount equal to the On-Demand price, or specify an amount in USD.- Parameters:
bidPrice
- If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. SpecifyOnDemandPrice
to set the amount equal to the On-Demand price, or specify an amount in USD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The Amazon EC2 instance type for all instances in the instance group.
- Parameters:
instanceType
- The Amazon EC2 instance type for all instances in the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
Target number of instances for the instance group.
- Parameters:
instanceCount
- Target number of instances for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations
-Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations
-Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
This is a convenience method that creates an instance of theConfiguration.Builder
avoiding the need to create one manually viaConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigurations(List<Configuration>)
.- Parameters:
configurations
- a consumer that will call methods onConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ebsConfiguration
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
- Parameters:
ebsConfiguration
- EBS configurations that will be attached to each Amazon EC2 instance in the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsConfiguration
default InstanceGroupConfig.Builder ebsConfiguration(Consumer<EbsConfiguration.Builder> ebsConfiguration) EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
This is a convenience method that creates an instance of theEbsConfiguration.Builder
avoiding the need to create one manually viaEbsConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebsConfiguration(EbsConfiguration)
.- Parameters:
ebsConfiguration
- a consumer that will call methods onEbsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
- Parameters:
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 Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingPolicy
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 Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
This is a convenience method that creates an instance of theAutoScalingPolicy.Builder
avoiding the need to create one manually viaAutoScalingPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoScalingPolicy(AutoScalingPolicy)
.- Parameters:
autoScalingPolicy
- a consumer that will call methods onAutoScalingPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customAmiId
The custom AMI ID to use for the provisioned instance group.
- Parameters:
customAmiId
- The custom AMI ID to use for the provisioned instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-