#[non_exhaustive]pub struct StepAdjustmentBuilder { /* private fields */ }
Expand description
A builder for StepAdjustment
.
Implementations§
source§impl StepAdjustmentBuilder
impl StepAdjustmentBuilder
sourcepub fn metric_interval_lower_bound(self, input: f64) -> Self
pub fn metric_interval_lower_bound(self, input: f64) -> Self
The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it's exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.
sourcepub fn set_metric_interval_lower_bound(self, input: Option<f64>) -> Self
pub fn set_metric_interval_lower_bound(self, input: Option<f64>) -> Self
The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it's exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.
sourcepub fn get_metric_interval_lower_bound(&self) -> &Option<f64>
pub fn get_metric_interval_lower_bound(&self) -> &Option<f64>
The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it's exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.
sourcepub fn metric_interval_upper_bound(self, input: f64) -> Self
pub fn metric_interval_upper_bound(self, input: f64) -> Self
The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it's inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.
The upper bound must be greater than the lower bound.
sourcepub fn set_metric_interval_upper_bound(self, input: Option<f64>) -> Self
pub fn set_metric_interval_upper_bound(self, input: Option<f64>) -> Self
The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it's inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.
The upper bound must be greater than the lower bound.
sourcepub fn get_metric_interval_upper_bound(&self) -> &Option<f64>
pub fn get_metric_interval_upper_bound(&self) -> &Option<f64>
The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it's inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.
The upper bound must be greater than the lower bound.
sourcepub fn scaling_adjustment(self, input: i32) -> Self
pub fn scaling_adjustment(self, input: i32) -> Self
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity. For exact capacity, you must specify a non-negative value.
This field is required.sourcepub fn set_scaling_adjustment(self, input: Option<i32>) -> Self
pub fn set_scaling_adjustment(self, input: Option<i32>) -> Self
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity. For exact capacity, you must specify a non-negative value.
sourcepub fn get_scaling_adjustment(&self) -> &Option<i32>
pub fn get_scaling_adjustment(&self) -> &Option<i32>
The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity. For exact capacity, you must specify a non-negative value.
sourcepub fn build(self) -> Result<StepAdjustment, BuildError>
pub fn build(self) -> Result<StepAdjustment, BuildError>
Consumes the builder and constructs a StepAdjustment
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for StepAdjustmentBuilder
impl Clone for StepAdjustmentBuilder
source§fn clone(&self) -> StepAdjustmentBuilder
fn clone(&self) -> StepAdjustmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StepAdjustmentBuilder
impl Debug for StepAdjustmentBuilder
source§impl Default for StepAdjustmentBuilder
impl Default for StepAdjustmentBuilder
source§fn default() -> StepAdjustmentBuilder
fn default() -> StepAdjustmentBuilder
source§impl PartialEq for StepAdjustmentBuilder
impl PartialEq for StepAdjustmentBuilder
source§fn eq(&self, other: &StepAdjustmentBuilder) -> bool
fn eq(&self, other: &StepAdjustmentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StepAdjustmentBuilder
Auto Trait Implementations§
impl Freeze for StepAdjustmentBuilder
impl RefUnwindSafe for StepAdjustmentBuilder
impl Send for StepAdjustmentBuilder
impl Sync for StepAdjustmentBuilder
impl Unpin for StepAdjustmentBuilder
impl UnwindSafe for StepAdjustmentBuilder
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