#[non_exhaustive]pub struct TargetCapacitySpecificationRequestBuilder { /* private fields */ }
Expand description
A builder for TargetCapacitySpecificationRequest
.
Implementations§
source§impl TargetCapacitySpecificationRequestBuilder
impl TargetCapacitySpecificationRequestBuilder
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 get_total_target_capacity(&self) -> &Option<i32>
pub fn get_total_target_capacity(&self) -> &Option<i32>
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 get_on_demand_target_capacity(&self) -> &Option<i32>
pub fn get_on_demand_target_capacity(&self) -> &Option<i32>
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 get_spot_target_capacity(&self) -> &Option<i32>
pub fn get_spot_target_capacity(&self) -> &Option<i32>
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 get_default_target_capacity_type(
&self
) -> &Option<DefaultTargetCapacityType>
pub fn get_default_target_capacity_type( &self ) -> &Option<DefaultTargetCapacityType>
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 get_target_capacity_unit_type(&self) -> &Option<TargetCapacityUnitType>
pub fn get_target_capacity_unit_type(&self) -> &Option<TargetCapacityUnitType>
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
.
Trait Implementations§
source§impl Clone for TargetCapacitySpecificationRequestBuilder
impl Clone for TargetCapacitySpecificationRequestBuilder
source§fn clone(&self) -> TargetCapacitySpecificationRequestBuilder
fn clone(&self) -> TargetCapacitySpecificationRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TargetCapacitySpecificationRequestBuilder
impl Default for TargetCapacitySpecificationRequestBuilder
source§fn default() -> TargetCapacitySpecificationRequestBuilder
fn default() -> TargetCapacitySpecificationRequestBuilder
source§impl PartialEq<TargetCapacitySpecificationRequestBuilder> for TargetCapacitySpecificationRequestBuilder
impl PartialEq<TargetCapacitySpecificationRequestBuilder> for TargetCapacitySpecificationRequestBuilder
source§fn eq(&self, other: &TargetCapacitySpecificationRequestBuilder) -> bool
fn eq(&self, other: &TargetCapacitySpecificationRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.