Struct aws_sdk_ec2::model::target_capacity_specification::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TargetCapacitySpecification
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn total_target_capacity(self, input: i32) -> Self
pub fn total_target_capacity(self, input: i32) -> Self
The number of units to request, filled using DefaultTargetCapacityType
.
sourcepub fn set_total_target_capacity(self, input: Option<i32>) -> Self
pub fn set_total_target_capacity(self, input: Option<i32>) -> Self
The number of units to request, filled using DefaultTargetCapacityType
.
sourcepub fn on_demand_target_capacity(self, input: i32) -> Self
pub fn on_demand_target_capacity(self, input: i32) -> Self
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.
sourcepub fn set_on_demand_target_capacity(self, input: Option<i32>) -> Self
pub fn set_on_demand_target_capacity(self, input: Option<i32>) -> Self
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.
sourcepub fn spot_target_capacity(self, input: i32) -> Self
pub fn spot_target_capacity(self, input: i32) -> Self
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.
sourcepub fn set_spot_target_capacity(self, input: Option<i32>) -> Self
pub fn set_spot_target_capacity(self, input: Option<i32>) -> Self
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.
sourcepub fn default_target_capacity_type(
self,
input: DefaultTargetCapacityType
) -> Self
pub fn default_target_capacity_type(
self,
input: DefaultTargetCapacityType
) -> Self
The default TotalTargetCapacity
, which is either Spot
or On-Demand
.
sourcepub fn set_default_target_capacity_type(
self,
input: Option<DefaultTargetCapacityType>
) -> Self
pub fn set_default_target_capacity_type(
self,
input: Option<DefaultTargetCapacityType>
) -> Self
The default TotalTargetCapacity
, which is either Spot
or On-Demand
.
sourcepub fn target_capacity_unit_type(self, input: TargetCapacityUnitType) -> Self
pub fn target_capacity_unit_type(self, input: TargetCapacityUnitType) -> Self
The unit for the target capacity. TargetCapacityUnitType
can only be specified when InstanceRequirements
is specified.
Default: units
(translates to number of instances)
sourcepub fn set_target_capacity_unit_type(
self,
input: Option<TargetCapacityUnitType>
) -> Self
pub fn set_target_capacity_unit_type(
self,
input: Option<TargetCapacityUnitType>
) -> Self
The unit for the target capacity. TargetCapacityUnitType
can only be specified when InstanceRequirements
is specified.
Default: units
(translates to number of instances)
sourcepub fn build(self) -> TargetCapacitySpecification
pub fn build(self) -> TargetCapacitySpecification
Consumes the builder and constructs a TargetCapacitySpecification
.