#[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 the default target capacity type.
This field is required.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 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 using 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.
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 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. You can specify this parameter only when using attributed-based instance type selection.
Default: units
(the 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. You can specify this parameter only when using attributed-based instance type selection.
Default: units
(the 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. You can specify this parameter only when using attributed-based instance type selection.
Default: units
(the 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 for TargetCapacitySpecificationRequestBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for TargetCapacitySpecificationRequestBuilder
Auto Trait Implementations§
impl Freeze for TargetCapacitySpecificationRequestBuilder
impl RefUnwindSafe for TargetCapacitySpecificationRequestBuilder
impl Send for TargetCapacitySpecificationRequestBuilder
impl Sync for TargetCapacitySpecificationRequestBuilder
impl Unpin for TargetCapacitySpecificationRequestBuilder
impl UnwindSafe for TargetCapacitySpecificationRequestBuilder
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> 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