Interface InstanceFleetProvisioningSpecifications.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceFleetProvisioningSpecifications.Builder,InstanceFleetProvisioningSpecifications>,SdkBuilder<InstanceFleetProvisioningSpecifications.Builder,InstanceFleetProvisioningSpecifications>,SdkPojo
- Enclosing class:
- InstanceFleetProvisioningSpecifications
public static interface InstanceFleetProvisioningSpecifications.Builder extends SdkPojo, CopyableBuilder<InstanceFleetProvisioningSpecifications.Builder,InstanceFleetProvisioningSpecifications>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InstanceFleetProvisioningSpecifications.BuilderonDemandSpecification(Consumer<OnDemandProvisioningSpecification.Builder> onDemandSpecification)The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.InstanceFleetProvisioningSpecifications.BuilderonDemandSpecification(OnDemandProvisioningSpecification onDemandSpecification)The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.default InstanceFleetProvisioningSpecifications.BuilderspotSpecification(Consumer<SpotProvisioningSpecification.Builder> spotSpecification)The launch specification for Spot instances in the fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.InstanceFleetProvisioningSpecifications.BuilderspotSpecification(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
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 Detail
-
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:
spotSpecification(SpotProvisioningSpecification)
-
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:
onDemandSpecification(OnDemandProvisioningSpecification)
-
-