Interface OnDemandResizingSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OnDemandResizingSpecification.Builder,
,OnDemandResizingSpecification> SdkBuilder<OnDemandResizingSpecification.Builder,
,OnDemandResizingSpecification> SdkPojo
- Enclosing class:
OnDemandResizingSpecification
-
Method Summary
Modifier and TypeMethodDescriptionallocationStrategy
(String allocationStrategy) Specifies the allocation strategy to use to launch On-Demand instances during a resize.allocationStrategy
(OnDemandProvisioningAllocationStrategy allocationStrategy) Specifies the allocation strategy to use to launch On-Demand instances during a resize.capacityReservationOptions
(Consumer<OnDemandCapacityReservationOptions.Builder> capacityReservationOptions) Sets the value of the CapacityReservationOptions property for this object.capacityReservationOptions
(OnDemandCapacityReservationOptions capacityReservationOptions) Sets the value of the CapacityReservationOptions property for this object.timeoutDurationMinutes
(Integer timeoutDurationMinutes) On-Demand resize timeout in minutes.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
-
timeoutDurationMinutes
On-Demand resize timeout in minutes. If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.
- Parameters:
timeoutDurationMinutes
- On-Demand resize timeout in minutes. If On-Demand Instances are not provisioned within this time, the resize workflow stops. The minimum value is 5 minutes, and the maximum value is 10,080 minutes (7 days). The timeout applies to all resize workflows on the Instance Fleet. The resize could be triggered by Amazon EMR Managed Scaling or by the customer (via Amazon EMR Console, Amazon EMR CLI modify-instance-fleet or Amazon EMR SDK ModifyInstanceFleet API) or by Amazon EMR due to Amazon EC2 Spot Reclamation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationStrategy
Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is
lowest-price
.- Parameters:
allocationStrategy
- Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default islowest-price
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationStrategy
OnDemandResizingSpecification.Builder allocationStrategy(OnDemandProvisioningAllocationStrategy allocationStrategy) Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default is
lowest-price
.- Parameters:
allocationStrategy
- Specifies the allocation strategy to use to launch On-Demand instances during a resize. The default islowest-price
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationOptions
OnDemandResizingSpecification.Builder capacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions) Sets the value of the CapacityReservationOptions property for this object.- Parameters:
capacityReservationOptions
- The new value for the CapacityReservationOptions property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationOptions
default OnDemandResizingSpecification.Builder capacityReservationOptions(Consumer<OnDemandCapacityReservationOptions.Builder> capacityReservationOptions) Sets the value of the CapacityReservationOptions property for this object. This is a convenience method that creates an instance of theOnDemandCapacityReservationOptions.Builder
avoiding the need to create one manually viaOnDemandCapacityReservationOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationOptions(OnDemandCapacityReservationOptions)
.- Parameters:
capacityReservationOptions
- a consumer that will call methods onOnDemandCapacityReservationOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-