Interface OnDemandResizingSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OnDemandResizingSpecification.Builder,OnDemandResizingSpecification>,SdkBuilder<OnDemandResizingSpecification.Builder,OnDemandResizingSpecification>,SdkPojo
- Enclosing class:
- OnDemandResizingSpecification
public static interface OnDemandResizingSpecification.Builder extends SdkPojo, CopyableBuilder<OnDemandResizingSpecification.Builder,OnDemandResizingSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OnDemandResizingSpecification.BuilderallocationStrategy(String allocationStrategy)Specifies the allocation strategy to use to launch On-Demand instances during a resize.OnDemandResizingSpecification.BuilderallocationStrategy(OnDemandProvisioningAllocationStrategy allocationStrategy)Specifies the allocation strategy to use to launch On-Demand instances during a resize.default OnDemandResizingSpecification.BuildercapacityReservationOptions(Consumer<OnDemandCapacityReservationOptions.Builder> capacityReservationOptions)Sets the value of the CapacityReservationOptions property for this object.OnDemandResizingSpecification.BuildercapacityReservationOptions(OnDemandCapacityReservationOptions capacityReservationOptions)Sets the value of the CapacityReservationOptions property for this object.OnDemandResizingSpecification.BuildertimeoutDurationMinutes(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
timeoutDurationMinutes
OnDemandResizingSpecification.Builder timeoutDurationMinutes(Integer 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
OnDemandResizingSpecification.Builder allocationStrategy(String 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:
OnDemandProvisioningAllocationStrategy,OnDemandProvisioningAllocationStrategy
-
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:
OnDemandProvisioningAllocationStrategy,OnDemandProvisioningAllocationStrategy
-
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.Builderavoiding the need to create one manually viaOnDemandCapacityReservationOptions.builder().When the
Consumercompletes,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:
capacityReservationOptions(OnDemandCapacityReservationOptions)
-
-