Interface InstanceFleetProvisioningSpecifications.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceFleetProvisioningSpecifications.Builder,,InstanceFleetProvisioningSpecifications> SdkBuilder<InstanceFleetProvisioningSpecifications.Builder,,InstanceFleetProvisioningSpecifications> SdkPojo
- Enclosing class:
InstanceFleetProvisioningSpecifications
-
Method Summary
Modifier and TypeMethodDescriptiononDemandSpecification(Consumer<OnDemandProvisioningSpecification.Builder> onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.onDemandSpecification(OnDemandProvisioningSpecification onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.spotSpecification(Consumer<SpotProvisioningSpecification.Builder> spotSpecification) The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.spotSpecification(SpotProvisioningSpecification spotSpecification) The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
spotSpecification
InstanceFleetProvisioningSpecifications.Builder spotSpecification(SpotProvisioningSpecification spotSpecification) The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.
- Parameters:
spotSpecification- The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotSpecification
default InstanceFleetProvisioningSpecifications.Builder spotSpecification(Consumer<SpotProvisioningSpecification.Builder> spotSpecification) The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.
This is a convenience method that creates an instance of theSpotProvisioningSpecification.Builderavoiding the need to create one manually viaSpotProvisioningSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospotSpecification(SpotProvisioningSpecification).- Parameters:
spotSpecification- a consumer that will call methods onSpotProvisioningSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onDemandSpecification
InstanceFleetProvisioningSpecifications.Builder onDemandSpecification(OnDemandProvisioningSpecification onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
- Parameters:
onDemandSpecification- The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandSpecification
default InstanceFleetProvisioningSpecifications.Builder onDemandSpecification(Consumer<OnDemandProvisioningSpecification.Builder> onDemandSpecification) The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.
This is a convenience method that creates an instance of theThe instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR releases 5.12.1 and later.
OnDemandProvisioningSpecification.Builderavoiding the need to create one manually viaOnDemandProvisioningSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonDemandSpecification(OnDemandProvisioningSpecification).- Parameters:
onDemandSpecification- a consumer that will call methods onOnDemandProvisioningSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-