Interface InstanceFleetResizingSpecifications.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceFleetResizingSpecifications.Builder,,InstanceFleetResizingSpecifications> SdkBuilder<InstanceFleetResizingSpecifications.Builder,,InstanceFleetResizingSpecifications> SdkPojo
- Enclosing class:
InstanceFleetResizingSpecifications
-
Method Summary
Modifier and TypeMethodDescriptiononDemandResizeSpecification(Consumer<OnDemandResizingSpecification.Builder> onDemandResizeSpecification) The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.onDemandResizeSpecification(OnDemandResizingSpecification onDemandResizeSpecification) The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.spotResizeSpecification(Consumer<SpotResizingSpecification.Builder> spotResizeSpecification) The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.spotResizeSpecification(SpotResizingSpecification spotResizeSpecification) The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.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, sdkFieldNameToField, sdkFields
-
Method Details
-
spotResizeSpecification
InstanceFleetResizingSpecifications.Builder spotResizeSpecification(SpotResizingSpecification spotResizeSpecification) The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.
- Parameters:
spotResizeSpecification- The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotResizeSpecification
default InstanceFleetResizingSpecifications.Builder spotResizeSpecification(Consumer<SpotResizingSpecification.Builder> spotResizeSpecification) The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.
This is a convenience method that creates an instance of theSpotResizingSpecification.Builderavoiding the need to create one manually viaSpotResizingSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospotResizeSpecification(SpotResizingSpecification).- Parameters:
spotResizeSpecification- a consumer that will call methods onSpotResizingSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onDemandResizeSpecification
InstanceFleetResizingSpecifications.Builder onDemandResizeSpecification(OnDemandResizingSpecification onDemandResizeSpecification) The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.
- Parameters:
onDemandResizeSpecification- The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandResizeSpecification
default InstanceFleetResizingSpecifications.Builder onDemandResizeSpecification(Consumer<OnDemandResizingSpecification.Builder> onDemandResizeSpecification) The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.
This is a convenience method that creates an instance of theOnDemandResizingSpecification.Builderavoiding the need to create one manually viaOnDemandResizingSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonDemandResizeSpecification(OnDemandResizingSpecification).- Parameters:
onDemandResizeSpecification- a consumer that will call methods onOnDemandResizingSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-