Interface InstanceGroup.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceGroup.Builder,InstanceGroup>
,SdkBuilder<InstanceGroup.Builder,InstanceGroup>
,SdkPojo
- Enclosing class:
- InstanceGroup
public static interface InstanceGroup.Builder extends SdkPojo, CopyableBuilder<InstanceGroup.Builder,InstanceGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceGroup.Builder
autoScalingPolicy(Consumer<AutoScalingPolicyDescription.Builder> autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.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)
If specified, indicates that the instance group uses Spot Instances.InstanceGroup.Builder
configurations(Collection<Configuration> configurations)
InstanceGroup.Builder
configurations(Consumer<Configuration.Builder>... configurations)
InstanceGroup.Builder
configurations(Configuration... configurations)
InstanceGroup.Builder
configurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.InstanceGroup.Builder
customAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.InstanceGroup.Builder
ebsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.InstanceGroup.Builder
ebsBlockDevices(Consumer<EbsBlockDevice.Builder>... 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 Amazon EC2 instance type for all instances in the instance group.InstanceGroup.Builder
lastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.InstanceGroup.Builder
lastSuccessfullyAppliedConfigurations(Consumer<Configuration.Builder>... lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.InstanceGroup.Builder
lastSuccessfullyAppliedConfigurations(Configuration... lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.InstanceGroup.Builder
lastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last time.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.default InstanceGroup.Builder
shrinkPolicy(Consumer<ShrinkPolicy.Builder> shrinkPolicy)
Policy for customizing shrink operations.InstanceGroup.Builder
shrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.default InstanceGroup.Builder
status(Consumer<InstanceGroupStatus.Builder> status)
The current status of the instance group.InstanceGroup.Builder
status(InstanceGroupStatus status)
The current status of 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
id
InstanceGroup.Builder id(String id)
The identifier of the instance group.
- Parameters:
id
- The identifier of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
InstanceGroup.Builder name(String name)
The name of the instance group.
- Parameters:
name
- The name of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
market
InstanceGroup.Builder market(String market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Parameters:
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType
,MarketType
-
market
InstanceGroup.Builder market(MarketType market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
- Parameters:
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType
,MarketType
-
instanceGroupType
InstanceGroup.Builder instanceGroupType(String instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Parameters:
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceGroupType
,InstanceGroupType
-
instanceGroupType
InstanceGroup.Builder instanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
- Parameters:
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceGroupType
,InstanceGroupType
-
bidPrice
InstanceGroup.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
InstanceGroup.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.
-
requestedInstanceCount
InstanceGroup.Builder requestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
- Parameters:
requestedInstanceCount
- The target number of instances for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runningInstanceCount
InstanceGroup.Builder runningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
- Parameters:
runningInstanceCount
- The number of instances currently running in this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
InstanceGroup.Builder status(InstanceGroupStatus status)
The current status of the instance group.
- Parameters:
status
- The current status of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default InstanceGroup.Builder status(Consumer<InstanceGroupStatus.Builder> status)
The current status of the instance group.
This is a convenience method that creates an instance of theInstanceGroupStatus.Builder
avoiding the need to create one manually viaInstanceGroupStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(InstanceGroupStatus)
.- Parameters:
status
- a consumer that will call methods onInstanceGroupStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(InstanceGroupStatus)
-
configurations
InstanceGroup.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
InstanceGroup.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
InstanceGroup.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
)
-
configurationsVersion
InstanceGroup.Builder configurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.
- Parameters:
configurationsVersion
- The version number of the requested configuration specification for this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastSuccessfullyAppliedConfigurations
InstanceGroup.Builder lastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
- Parameters:
lastSuccessfullyAppliedConfigurations
- A list of configurations that were successfully applied for an instance group last time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastSuccessfullyAppliedConfigurations
InstanceGroup.Builder lastSuccessfullyAppliedConfigurations(Configuration... lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
- Parameters:
lastSuccessfullyAppliedConfigurations
- A list of configurations that were successfully applied for an instance group last time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastSuccessfullyAppliedConfigurations
InstanceGroup.Builder lastSuccessfullyAppliedConfigurations(Consumer<Configuration.Builder>... lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
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#lastSuccessfullyAppliedConfigurations(List
.) - Parameters:
lastSuccessfullyAppliedConfigurations
- 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:
#lastSuccessfullyAppliedConfigurations(java.util.Collection
)
-
lastSuccessfullyAppliedConfigurationsVersion
InstanceGroup.Builder lastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last time.
- Parameters:
lastSuccessfullyAppliedConfigurationsVersion
- The version number of a configuration specification that was successfully applied for an instance group last time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsBlockDevices
InstanceGroup.Builder ebsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
- Parameters:
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsBlockDevices
InstanceGroup.Builder ebsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
- Parameters:
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsBlockDevices
InstanceGroup.Builder ebsBlockDevices(Consumer<EbsBlockDevice.Builder>... ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
This is a convenience method that creates an instance of theEbsBlockDevice.Builder
avoiding the need to create one manually viaEbsBlockDevice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ebsBlockDevices(List
.) - Parameters:
ebsBlockDevices
- a consumer that will call methods onEbsBlockDevice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ebsBlockDevices(java.util.Collection
)
-
ebsOptimized
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shrinkPolicy
InstanceGroup.Builder shrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
- Parameters:
shrinkPolicy
- Policy for customizing shrink operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shrinkPolicy
default InstanceGroup.Builder shrinkPolicy(Consumer<ShrinkPolicy.Builder> shrinkPolicy)
Policy for customizing shrink operations.
This is a convenience method that creates an instance of theShrinkPolicy.Builder
avoiding the need to create one manually viaShrinkPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshrinkPolicy(ShrinkPolicy)
.- Parameters:
shrinkPolicy
- a consumer that will call methods onShrinkPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
shrinkPolicy(ShrinkPolicy)
-
autoScalingPolicy
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 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 InstanceGroup.Builder autoScalingPolicy(Consumer<AutoScalingPolicyDescription.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 theAutoScalingPolicyDescription.Builder
avoiding the need to create one manually viaAutoScalingPolicyDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoScalingPolicy(AutoScalingPolicyDescription)
.- Parameters:
autoScalingPolicy
- a consumer that will call methods onAutoScalingPolicyDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
autoScalingPolicy(AutoScalingPolicyDescription)
-
customAmiId
InstanceGroup.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.
-
-