#[non_exhaustive]pub struct SpotMaintenanceStrategiesBuilder { /* private fields */ }Expand description
A builder for SpotMaintenanceStrategies.
Implementations§
source§impl SpotMaintenanceStrategiesBuilder
impl SpotMaintenanceStrategiesBuilder
sourcepub fn capacity_rebalance(self, input: SpotCapacityRebalance) -> Self
pub fn capacity_rebalance(self, input: SpotCapacityRebalance) -> Self
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.
sourcepub fn set_capacity_rebalance(
self,
input: Option<SpotCapacityRebalance>,
) -> Self
pub fn set_capacity_rebalance( self, input: Option<SpotCapacityRebalance>, ) -> Self
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.
sourcepub fn get_capacity_rebalance(&self) -> &Option<SpotCapacityRebalance>
pub fn get_capacity_rebalance(&self) -> &Option<SpotCapacityRebalance>
The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.
sourcepub fn build(self) -> SpotMaintenanceStrategies
pub fn build(self) -> SpotMaintenanceStrategies
Consumes the builder and constructs a SpotMaintenanceStrategies.
Trait Implementations§
source§impl Clone for SpotMaintenanceStrategiesBuilder
impl Clone for SpotMaintenanceStrategiesBuilder
source§fn clone(&self) -> SpotMaintenanceStrategiesBuilder
fn clone(&self) -> SpotMaintenanceStrategiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SpotMaintenanceStrategiesBuilder
impl Default for SpotMaintenanceStrategiesBuilder
source§fn default() -> SpotMaintenanceStrategiesBuilder
fn default() -> SpotMaintenanceStrategiesBuilder
source§impl PartialEq for SpotMaintenanceStrategiesBuilder
impl PartialEq for SpotMaintenanceStrategiesBuilder
source§fn eq(&self, other: &SpotMaintenanceStrategiesBuilder) -> bool
fn eq(&self, other: &SpotMaintenanceStrategiesBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SpotMaintenanceStrategiesBuilder
Auto Trait Implementations§
impl Freeze for SpotMaintenanceStrategiesBuilder
impl RefUnwindSafe for SpotMaintenanceStrategiesBuilder
impl Send for SpotMaintenanceStrategiesBuilder
impl Sync for SpotMaintenanceStrategiesBuilder
impl Unpin for SpotMaintenanceStrategiesBuilder
impl UnwindSafe for SpotMaintenanceStrategiesBuilder
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