Struct aws_sdk_emr::model::auto_scaling_policy::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for AutoScalingPolicy.
Implementations§
source§impl Builder
impl Builder
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) -> AutoScalingPolicy
pub fn build(self) -> AutoScalingPolicy
Consumes the builder and constructs a AutoScalingPolicy.