#[non_exhaustive]pub struct AutoScalingPolicyDescriptionBuilder { /* private fields */ }Expand description
A builder for AutoScalingPolicyDescription.
Implementations§
source§impl AutoScalingPolicyDescriptionBuilder
impl AutoScalingPolicyDescriptionBuilder
sourcepub fn status(self, input: AutoScalingPolicyStatus) -> Self
pub fn status(self, input: AutoScalingPolicyStatus) -> Self
The status of an automatic scaling policy.
sourcepub fn set_status(self, input: Option<AutoScalingPolicyStatus>) -> Self
pub fn set_status(self, input: Option<AutoScalingPolicyStatus>) -> Self
The status of an automatic scaling policy.
sourcepub fn get_status(&self) -> &Option<AutoScalingPolicyStatus>
pub fn get_status(&self) -> &Option<AutoScalingPolicyStatus>
The status of an automatic scaling policy.
sourcepub fn constraints(self, input: ScalingConstraints) -> Self
pub fn constraints(self, input: ScalingConstraints) -> Self
The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
sourcepub fn set_constraints(self, input: Option<ScalingConstraints>) -> Self
pub fn set_constraints(self, input: Option<ScalingConstraints>) -> Self
The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
sourcepub fn get_constraints(&self) -> &Option<ScalingConstraints>
pub fn get_constraints(&self) -> &Option<ScalingConstraints>
The upper and lower Amazon EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
sourcepub fn rules(self, input: ScalingRule) -> Self
pub fn rules(self, input: ScalingRule) -> Self
Appends an item to rules.
To override the contents of this collection use set_rules.
The scale-in and scale-out rules that comprise the automatic scaling policy.
sourcepub fn set_rules(self, input: Option<Vec<ScalingRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ScalingRule>>) -> Self
The scale-in and scale-out rules that comprise the automatic scaling policy.
sourcepub fn get_rules(&self) -> &Option<Vec<ScalingRule>>
pub fn get_rules(&self) -> &Option<Vec<ScalingRule>>
The scale-in and scale-out rules that comprise the automatic scaling policy.
sourcepub fn build(self) -> AutoScalingPolicyDescription
pub fn build(self) -> AutoScalingPolicyDescription
Consumes the builder and constructs a AutoScalingPolicyDescription.
Trait Implementations§
source§impl Clone for AutoScalingPolicyDescriptionBuilder
impl Clone for AutoScalingPolicyDescriptionBuilder
source§fn clone(&self) -> AutoScalingPolicyDescriptionBuilder
fn clone(&self) -> AutoScalingPolicyDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AutoScalingPolicyDescriptionBuilder
impl Default for AutoScalingPolicyDescriptionBuilder
source§fn default() -> AutoScalingPolicyDescriptionBuilder
fn default() -> AutoScalingPolicyDescriptionBuilder
source§impl PartialEq for AutoScalingPolicyDescriptionBuilder
impl PartialEq for AutoScalingPolicyDescriptionBuilder
source§fn eq(&self, other: &AutoScalingPolicyDescriptionBuilder) -> bool
fn eq(&self, other: &AutoScalingPolicyDescriptionBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutoScalingPolicyDescriptionBuilder
Auto Trait Implementations§
impl Freeze for AutoScalingPolicyDescriptionBuilder
impl RefUnwindSafe for AutoScalingPolicyDescriptionBuilder
impl Send for AutoScalingPolicyDescriptionBuilder
impl Sync for AutoScalingPolicyDescriptionBuilder
impl Unpin for AutoScalingPolicyDescriptionBuilder
impl UnwindSafe for AutoScalingPolicyDescriptionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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