Interface TargetCapacitySpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TargetCapacitySpecification.Builder,,TargetCapacitySpecification> SdkBuilder<TargetCapacitySpecification.Builder,,TargetCapacitySpecification> SdkPojo
- Enclosing class:
TargetCapacitySpecification
-
Method Summary
Modifier and TypeMethodDescriptiondefaultTargetCapacityType(String defaultTargetCapacityType) The defaultTotalTargetCapacity, which is eitherSpotorOn-Demand.defaultTargetCapacityType(DefaultTargetCapacityType defaultTargetCapacityType) The defaultTotalTargetCapacity, which is eitherSpotorOn-Demand.onDemandTargetCapacity(Integer onDemandTargetCapacity) The number of On-Demand units to request.spotTargetCapacity(Integer spotTargetCapacity) The maximum number of Spot units to launch.targetCapacityUnitType(String targetCapacityUnitType) The unit for the target capacity.targetCapacityUnitType(TargetCapacityUnitType targetCapacityUnitType) The unit for the target capacity.totalTargetCapacity(Integer totalTargetCapacity) The number of units to request, filled usingDefaultTargetCapacityType.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
-
totalTargetCapacity
The number of units to request, filled using
DefaultTargetCapacityType.- Parameters:
totalTargetCapacity- The number of units to request, filled usingDefaultTargetCapacityType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandTargetCapacity
The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.
- Parameters:
onDemandTargetCapacity- The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotTargetCapacity
The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.
- Parameters:
spotTargetCapacity- The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultTargetCapacityType
The default
TotalTargetCapacity, which is eitherSpotorOn-Demand.- Parameters:
defaultTargetCapacityType- The defaultTotalTargetCapacity, which is eitherSpotorOn-Demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
defaultTargetCapacityType
TargetCapacitySpecification.Builder defaultTargetCapacityType(DefaultTargetCapacityType defaultTargetCapacityType) The default
TotalTargetCapacity, which is eitherSpotorOn-Demand.- Parameters:
defaultTargetCapacityType- The defaultTotalTargetCapacity, which is eitherSpotorOn-Demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetCapacityUnitType
The unit for the target capacity.
TargetCapacityUnitTypecan only be specified whenInstanceRequirementsis specified.Default:
units(translates to number of instances)- Parameters:
targetCapacityUnitType- The unit for the target capacity.TargetCapacityUnitTypecan only be specified whenInstanceRequirementsis specified.Default:
units(translates to number of instances)- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetCapacityUnitType
TargetCapacitySpecification.Builder targetCapacityUnitType(TargetCapacityUnitType targetCapacityUnitType) The unit for the target capacity.
TargetCapacityUnitTypecan only be specified whenInstanceRequirementsis specified.Default:
units(translates to number of instances)- Parameters:
targetCapacityUnitType- The unit for the target capacity.TargetCapacityUnitTypecan only be specified whenInstanceRequirementsis specified.Default:
units(translates to number of instances)- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-