#[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 ==
.