Interface InstanceGroupConfig.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>
,SdkBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>
,SdkPojo
- Enclosing class:
- InstanceGroupConfig
public static interface InstanceGroupConfig.Builder extends SdkPojo, CopyableBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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
autoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.InstanceGroupConfig.Builder
bidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances.InstanceGroupConfig.Builder
configurations(Collection<Configuration> configurations)
InstanceGroupConfig.Builder
configurations(Consumer<Configuration.Builder>... configurations)
InstanceGroupConfig.Builder
configurations(Configuration... configurations)
InstanceGroupConfig.Builder
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.InstanceGroupConfig.Builder
ebsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.InstanceGroupConfig.Builder
instanceCount(Integer instanceCount)
Target number of instances for the instance group.InstanceGroupConfig.Builder
instanceRole(String instanceRole)
The role of the instance group in the cluster.InstanceGroupConfig.Builder
instanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.InstanceGroupConfig.Builder
instanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.InstanceGroupConfig.Builder
market(String market)
Market type of the Amazon EC2 instances used to create a cluster node.InstanceGroupConfig.Builder
market(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.InstanceGroupConfig.Builder
name(String name)
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 Detail
-
name
InstanceGroupConfig.Builder name(String 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
InstanceGroupConfig.Builder market(String 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:
MarketType
,MarketType
-
market
InstanceGroupConfig.Builder market(MarketType 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:
MarketType
,MarketType
-
instanceRole
InstanceGroupConfig.Builder instanceRole(String 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:
InstanceRoleType
,InstanceRoleType
-
instanceRole
InstanceGroupConfig.Builder instanceRole(InstanceRoleType 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:
InstanceRoleType
,InstanceRoleType
-
bidPrice
InstanceGroupConfig.Builder bidPrice(String 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
InstanceGroupConfig.Builder instanceType(String 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
InstanceGroupConfig.Builder instanceCount(Integer 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
InstanceGroupConfig.Builder configurations(Collection<Configuration> 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
InstanceGroupConfig.Builder configurations(Configuration... 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
InstanceGroupConfig.Builder configurations(Consumer<Configuration.Builder>... 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 to#configurations(List
.) - 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:
#configurations(java.util.Collection
)
-
ebsConfiguration
InstanceGroupConfig.Builder ebsConfiguration(EbsConfiguration 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:
ebsConfiguration(EbsConfiguration)
-
autoScalingPolicy
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 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:
autoScalingPolicy(AutoScalingPolicy)
-
customAmiId
InstanceGroupConfig.Builder customAmiId(String 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.
-
-