Interface TargetCapacitySpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TargetCapacitySpecification.Builder,TargetCapacitySpecification>,SdkBuilder<TargetCapacitySpecification.Builder,TargetCapacitySpecification>,SdkPojo
- Enclosing class:
- TargetCapacitySpecification
public static interface TargetCapacitySpecification.Builder extends SdkPojo, CopyableBuilder<TargetCapacitySpecification.Builder,TargetCapacitySpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TargetCapacitySpecification.BuilderdefaultTargetCapacityType(String defaultTargetCapacityType)The defaultTotalTargetCapacity, which is eitherSpotorOn-Demand.TargetCapacitySpecification.BuilderdefaultTargetCapacityType(DefaultTargetCapacityType defaultTargetCapacityType)The defaultTotalTargetCapacity, which is eitherSpotorOn-Demand.TargetCapacitySpecification.BuilderonDemandTargetCapacity(Integer onDemandTargetCapacity)The number of On-Demand units to request.TargetCapacitySpecification.BuilderspotTargetCapacity(Integer spotTargetCapacity)The maximum number of Spot units to launch.TargetCapacitySpecification.BuildertargetCapacityUnitType(String targetCapacityUnitType)The unit for the target capacity.TargetCapacitySpecification.BuildertargetCapacityUnitType(TargetCapacityUnitType targetCapacityUnitType)The unit for the target capacity.TargetCapacitySpecification.BuildertotalTargetCapacity(Integer totalTargetCapacity)The number of units to request, filled usingDefaultTargetCapacityType.-
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
-
totalTargetCapacity
TargetCapacitySpecification.Builder totalTargetCapacity(Integer 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
TargetCapacitySpecification.Builder onDemandTargetCapacity(Integer 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
TargetCapacitySpecification.Builder spotTargetCapacity(Integer 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
TargetCapacitySpecification.Builder defaultTargetCapacityType(String 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,DefaultTargetCapacityType
-
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:
DefaultTargetCapacityType,DefaultTargetCapacityType
-
targetCapacityUnitType
TargetCapacitySpecification.Builder targetCapacityUnitType(String 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,TargetCapacityUnitType
-
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:
TargetCapacityUnitType,TargetCapacityUnitType
-
-