public static final class CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder
extends java.lang.Object
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty |
build()
Builds the configured instance.
|
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder |
defaultTargetCapacityType(java.lang.String defaultTargetCapacityType)
|
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder |
onDemandTargetCapacity(java.lang.Number onDemandTargetCapacity)
|
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder |
spotTargetCapacity(java.lang.Number spotTargetCapacity)
|
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder |
targetCapacityUnitType(java.lang.String targetCapacityUnitType)
|
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder |
totalTargetCapacity(java.lang.Number totalTargetCapacity)
|
public CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder totalTargetCapacity(java.lang.Number totalTargetCapacity)
totalTargetCapacity
- The number of units to request, filled using `DefaultTargetCapacityType` . This parameter is required.this
public CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder defaultTargetCapacityType(java.lang.String defaultTargetCapacityType)
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.getDefaultTargetCapacityType()
defaultTargetCapacityType
- The default `TotalTargetCapacity` , which is either `Spot` or `On-Demand` .this
public CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder onDemandTargetCapacity(java.lang.Number onDemandTargetCapacity)
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.getOnDemandTargetCapacity()
onDemandTargetCapacity
- The number of On-Demand units to request.this
public CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder spotTargetCapacity(java.lang.Number spotTargetCapacity)
spotTargetCapacity
- The number of Spot units to request.this
public CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.Builder targetCapacityUnitType(java.lang.String targetCapacityUnitType)
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty.getTargetCapacityUnitType()
targetCapacityUnitType
- The unit for the target capacity.
Default: units
(translates to number of instances)this
public CfnEC2Fleet.TargetCapacitySpecificationRequestProperty build()
CfnEC2Fleet.TargetCapacitySpecificationRequestProperty
java.lang.NullPointerException
- if any required attribute was not provided