Struct aws_sdk_emr::model::auto_scaling_policy_description::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for AutoScalingPolicyDescription.
Implementations
sourceimpl Builder
impl Builder
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 constraints(self, input: ScalingConstraints) -> Self
pub fn constraints(self, input: ScalingConstraints) -> Self
The upper and lower 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 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 build(self) -> AutoScalingPolicyDescription
pub fn build(self) -> AutoScalingPolicyDescription
Consumes the builder and constructs a AutoScalingPolicyDescription.