#[non_exhaustive]pub struct NotScaledReasonBuilder { /* private fields */ }
Expand description
A builder for NotScaledReason
.
Implementations§
source§impl NotScaledReasonBuilder
impl NotScaledReasonBuilder
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
A code that represents the reason for not scaling.
Valid values:
-
AutoScalingAnticipatedFlapping
-
TargetServicePutResourceAsUnscalable
-
AlreadyAtMaxCapacity
-
AlreadyAtMinCapacity
-
AlreadyAtDesiredCapacity
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
A code that represents the reason for not scaling.
Valid values:
-
AutoScalingAnticipatedFlapping
-
TargetServicePutResourceAsUnscalable
-
AlreadyAtMaxCapacity
-
AlreadyAtMinCapacity
-
AlreadyAtDesiredCapacity
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
A code that represents the reason for not scaling.
Valid values:
-
AutoScalingAnticipatedFlapping
-
TargetServicePutResourceAsUnscalable
-
AlreadyAtMaxCapacity
-
AlreadyAtMinCapacity
-
AlreadyAtDesiredCapacity
sourcepub fn max_capacity(self, input: i32) -> Self
pub fn max_capacity(self, input: i32) -> Self
The maximum capacity.
sourcepub fn set_max_capacity(self, input: Option<i32>) -> Self
pub fn set_max_capacity(self, input: Option<i32>) -> Self
The maximum capacity.
sourcepub fn get_max_capacity(&self) -> &Option<i32>
pub fn get_max_capacity(&self) -> &Option<i32>
The maximum capacity.
sourcepub fn min_capacity(self, input: i32) -> Self
pub fn min_capacity(self, input: i32) -> Self
The minimum capacity.
sourcepub fn set_min_capacity(self, input: Option<i32>) -> Self
pub fn set_min_capacity(self, input: Option<i32>) -> Self
The minimum capacity.
sourcepub fn get_min_capacity(&self) -> &Option<i32>
pub fn get_min_capacity(&self) -> &Option<i32>
The minimum capacity.
sourcepub fn current_capacity(self, input: i32) -> Self
pub fn current_capacity(self, input: i32) -> Self
The current capacity.
sourcepub fn set_current_capacity(self, input: Option<i32>) -> Self
pub fn set_current_capacity(self, input: Option<i32>) -> Self
The current capacity.
sourcepub fn get_current_capacity(&self) -> &Option<i32>
pub fn get_current_capacity(&self) -> &Option<i32>
The current capacity.
sourcepub fn build(self) -> Result<NotScaledReason, BuildError>
pub fn build(self) -> Result<NotScaledReason, BuildError>
Consumes the builder and constructs a NotScaledReason
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NotScaledReasonBuilder
impl Clone for NotScaledReasonBuilder
source§fn clone(&self) -> NotScaledReasonBuilder
fn clone(&self) -> NotScaledReasonBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotScaledReasonBuilder
impl Debug for NotScaledReasonBuilder
source§impl Default for NotScaledReasonBuilder
impl Default for NotScaledReasonBuilder
source§fn default() -> NotScaledReasonBuilder
fn default() -> NotScaledReasonBuilder
source§impl PartialEq for NotScaledReasonBuilder
impl PartialEq for NotScaledReasonBuilder
source§fn eq(&self, other: &NotScaledReasonBuilder) -> bool
fn eq(&self, other: &NotScaledReasonBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotScaledReasonBuilder
Auto Trait Implementations§
impl Freeze for NotScaledReasonBuilder
impl RefUnwindSafe for NotScaledReasonBuilder
impl Send for NotScaledReasonBuilder
impl Sync for NotScaledReasonBuilder
impl Unpin for NotScaledReasonBuilder
impl UnwindSafe for NotScaledReasonBuilder
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