#[non_exhaustive]pub struct ScalingConfigurationOutputBuilder { /* private fields */ }
Expand description
A builder for ScalingConfigurationOutput
.
Implementations§
source§impl ScalingConfigurationOutputBuilder
impl ScalingConfigurationOutputBuilder
sourcepub fn scaling_type(self, input: FleetScalingType) -> Self
pub fn scaling_type(self, input: FleetScalingType) -> Self
The scaling type for a compute fleet.
sourcepub fn set_scaling_type(self, input: Option<FleetScalingType>) -> Self
pub fn set_scaling_type(self, input: Option<FleetScalingType>) -> Self
The scaling type for a compute fleet.
sourcepub fn get_scaling_type(&self) -> &Option<FleetScalingType>
pub fn get_scaling_type(&self) -> &Option<FleetScalingType>
The scaling type for a compute fleet.
sourcepub fn target_tracking_scaling_configs(
self,
input: TargetTrackingScalingConfiguration,
) -> Self
pub fn target_tracking_scaling_configs( self, input: TargetTrackingScalingConfiguration, ) -> Self
Appends an item to target_tracking_scaling_configs
.
To override the contents of this collection use set_target_tracking_scaling_configs
.
A list of TargetTrackingScalingConfiguration
objects.
sourcepub fn set_target_tracking_scaling_configs(
self,
input: Option<Vec<TargetTrackingScalingConfiguration>>,
) -> Self
pub fn set_target_tracking_scaling_configs( self, input: Option<Vec<TargetTrackingScalingConfiguration>>, ) -> Self
A list of TargetTrackingScalingConfiguration
objects.
sourcepub fn get_target_tracking_scaling_configs(
&self,
) -> &Option<Vec<TargetTrackingScalingConfiguration>>
pub fn get_target_tracking_scaling_configs( &self, ) -> &Option<Vec<TargetTrackingScalingConfiguration>>
A list of TargetTrackingScalingConfiguration
objects.
sourcepub fn max_capacity(self, input: i32) -> Self
pub fn max_capacity(self, input: i32) -> Self
The maximum number of instances in the fleet when auto-scaling.
sourcepub fn set_max_capacity(self, input: Option<i32>) -> Self
pub fn set_max_capacity(self, input: Option<i32>) -> Self
The maximum number of instances in the fleet when auto-scaling.
sourcepub fn get_max_capacity(&self) -> &Option<i32>
pub fn get_max_capacity(&self) -> &Option<i32>
The maximum number of instances in the fleet when auto-scaling.
sourcepub fn desired_capacity(self, input: i32) -> Self
pub fn desired_capacity(self, input: i32) -> Self
The desired number of instances in the fleet when auto-scaling.
sourcepub fn set_desired_capacity(self, input: Option<i32>) -> Self
pub fn set_desired_capacity(self, input: Option<i32>) -> Self
The desired number of instances in the fleet when auto-scaling.
sourcepub fn get_desired_capacity(&self) -> &Option<i32>
pub fn get_desired_capacity(&self) -> &Option<i32>
The desired number of instances in the fleet when auto-scaling.
sourcepub fn build(self) -> ScalingConfigurationOutput
pub fn build(self) -> ScalingConfigurationOutput
Consumes the builder and constructs a ScalingConfigurationOutput
.
Trait Implementations§
source§impl Clone for ScalingConfigurationOutputBuilder
impl Clone for ScalingConfigurationOutputBuilder
source§fn clone(&self) -> ScalingConfigurationOutputBuilder
fn clone(&self) -> ScalingConfigurationOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ScalingConfigurationOutputBuilder
impl Default for ScalingConfigurationOutputBuilder
source§fn default() -> ScalingConfigurationOutputBuilder
fn default() -> ScalingConfigurationOutputBuilder
source§impl PartialEq for ScalingConfigurationOutputBuilder
impl PartialEq for ScalingConfigurationOutputBuilder
source§fn eq(&self, other: &ScalingConfigurationOutputBuilder) -> bool
fn eq(&self, other: &ScalingConfigurationOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalingConfigurationOutputBuilder
Auto Trait Implementations§
impl Freeze for ScalingConfigurationOutputBuilder
impl RefUnwindSafe for ScalingConfigurationOutputBuilder
impl Send for ScalingConfigurationOutputBuilder
impl Sync for ScalingConfigurationOutputBuilder
impl Unpin for ScalingConfigurationOutputBuilder
impl UnwindSafe for ScalingConfigurationOutputBuilder
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