#[non_exhaustive]pub struct TargetCapacitySpecificationBuilder { /* private fields */ }
Expand description
A builder for TargetCapacitySpecification
.
Implementations§
source§impl TargetCapacitySpecificationBuilder
impl TargetCapacitySpecificationBuilder
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 the default target capacity type.
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 the default target capacity type.
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 the default target capacity type.
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 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. 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 get_spot_target_capacity(&self) -> &Option<i32>
pub fn get_spot_target_capacity(&self) -> &Option<i32>
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 target capacity type.
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 target capacity type.
sourcepub fn get_default_target_capacity_type(
&self,
) -> &Option<DefaultTargetCapacityType>
pub fn get_default_target_capacity_type( &self, ) -> &Option<DefaultTargetCapacityType>
The default target capacity type.
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.
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.
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.
sourcepub fn build(self) -> TargetCapacitySpecification
pub fn build(self) -> TargetCapacitySpecification
Consumes the builder and constructs a TargetCapacitySpecification
.
Trait Implementations§
source§impl Clone for TargetCapacitySpecificationBuilder
impl Clone for TargetCapacitySpecificationBuilder
source§fn clone(&self) -> TargetCapacitySpecificationBuilder
fn clone(&self) -> TargetCapacitySpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TargetCapacitySpecificationBuilder
impl Default for TargetCapacitySpecificationBuilder
source§fn default() -> TargetCapacitySpecificationBuilder
fn default() -> TargetCapacitySpecificationBuilder
source§impl PartialEq for TargetCapacitySpecificationBuilder
impl PartialEq for TargetCapacitySpecificationBuilder
source§fn eq(&self, other: &TargetCapacitySpecificationBuilder) -> bool
fn eq(&self, other: &TargetCapacitySpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetCapacitySpecificationBuilder
Auto Trait Implementations§
impl Freeze for TargetCapacitySpecificationBuilder
impl RefUnwindSafe for TargetCapacitySpecificationBuilder
impl Send for TargetCapacitySpecificationBuilder
impl Sync for TargetCapacitySpecificationBuilder
impl Unpin for TargetCapacitySpecificationBuilder
impl UnwindSafe for TargetCapacitySpecificationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more