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