public static interface InstanceGroup.Builder extends SdkPojo, CopyableBuilder<InstanceGroup.Builder,InstanceGroup>
Modifier and Type | Method and Description |
---|---|
InstanceGroup.Builder |
autoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
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 |
bidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances.
|
InstanceGroup.Builder |
configurations(Collection<Configuration> configurations)
|
InstanceGroup.Builder |
configurations(Configuration... configurations)
|
InstanceGroup.Builder |
configurations(Consumer<Configuration.Builder>... configurations)
|
InstanceGroup.Builder |
configurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this 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(InstanceGroupType instanceGroupType)
The type of the instance group.
|
InstanceGroup.Builder |
instanceGroupType(String 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 |
lastSuccessfullyAppliedConfigurations(Collection<Configuration> 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 |
lastSuccessfullyAppliedConfigurations(Consumer<Configuration.Builder>... 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(MarketType market)
The marketplace to provision instances for this group.
|
InstanceGroup.Builder |
market(String 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.
|
equalsBySdkFields, sdkFields
copy
applyMutation, 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
,
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
,
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
,
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
,
InstanceGroupType
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.
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.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.default InstanceGroup.Builder status(Consumer<InstanceGroupStatus.Builder> status)
The current status of the instance group.
This is a convenience that creates an instance of theInstanceGroupStatus.Builder
avoiding the need
to create one manually via InstanceGroupStatus.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to status(InstanceGroupStatus)
.status
- a consumer that will call methods on InstanceGroupStatus.Builder
status(InstanceGroupStatus)
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).
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).
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).
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).
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 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)
InstanceGroup.Builder configurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.
configurationsVersion
- The version number of the requested configuration specification for this instance group.InstanceGroup.Builder lastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
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.
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.
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 #lastSuccessfullyAppliedConfigurations(List)
.lastSuccessfullyAppliedConfigurations
- a consumer that will call methods on List.Builder
#lastSuccessfullyAppliedConfigurations(List)
InstanceGroup.Builder lastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last time.
lastSuccessfullyAppliedConfigurationsVersion
- The version number of a configuration specification that was successfully applied for an instance
group last time.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.
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.
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 #ebsBlockDevices(List)
.ebsBlockDevices
- a consumer that will call methods on List.Builder
#ebsBlockDevices(List)
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.default InstanceGroup.Builder shrinkPolicy(Consumer<ShrinkPolicy.Builder> shrinkPolicy)
Policy for customizing shrink operations.
This is a convenience that creates an instance of theShrinkPolicy.Builder
avoiding the need to
create one manually via ShrinkPolicy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to shrinkPolicy(ShrinkPolicy)
.shrinkPolicy
- a consumer that will call methods on ShrinkPolicy.Builder
shrinkPolicy(ShrinkPolicy)
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.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 EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
This is a convenience that creates an instance of theAutoScalingPolicyDescription.Builder
avoiding
the need to create one manually via AutoScalingPolicyDescription.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to autoScalingPolicy(AutoScalingPolicyDescription)
.autoScalingPolicy
- a consumer that will call methods on AutoScalingPolicyDescription.Builder
autoScalingPolicy(AutoScalingPolicyDescription)
Copyright © 2021. All rights reserved.