#[non_exhaustive]pub struct ScalingConfigurationInputBuilder { /* private fields */ }
Expand description
A builder for ScalingConfigurationInput
.
Implementations§
source§impl ScalingConfigurationInputBuilder
impl ScalingConfigurationInputBuilder
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 build(self) -> ScalingConfigurationInput
pub fn build(self) -> ScalingConfigurationInput
Consumes the builder and constructs a ScalingConfigurationInput
.
Trait Implementations§
source§impl Clone for ScalingConfigurationInputBuilder
impl Clone for ScalingConfigurationInputBuilder
source§fn clone(&self) -> ScalingConfigurationInputBuilder
fn clone(&self) -> ScalingConfigurationInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ScalingConfigurationInputBuilder
impl Default for ScalingConfigurationInputBuilder
source§fn default() -> ScalingConfigurationInputBuilder
fn default() -> ScalingConfigurationInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ScalingConfigurationInputBuilder
impl PartialEq for ScalingConfigurationInputBuilder
source§fn eq(&self, other: &ScalingConfigurationInputBuilder) -> bool
fn eq(&self, other: &ScalingConfigurationInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalingConfigurationInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ScalingConfigurationInputBuilder
impl Send for ScalingConfigurationInputBuilder
impl Sync for ScalingConfigurationInputBuilder
impl Unpin for ScalingConfigurationInputBuilder
impl UnwindSafe for ScalingConfigurationInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.