pub struct Builder { /* private fields */ }
Expand description
A builder for TargetCapacitySpecificationRequest
.
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.
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.
sourcepub fn spot_target_capacity(self, input: i32) -> Self
pub fn spot_target_capacity(self, input: i32) -> Self
The number of Spot units to request.
sourcepub fn set_spot_target_capacity(self, input: Option<i32>) -> Self
pub fn set_spot_target_capacity(self, input: Option<i32>) -> Self
The number of Spot units to request.
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) -> TargetCapacitySpecificationRequest
pub fn build(self) -> TargetCapacitySpecificationRequest
Consumes the builder and constructs a TargetCapacitySpecificationRequest
.