Struct aws_sdk_emr::types::builders::AutoScalingPolicyBuilder
source · #[non_exhaustive]pub struct AutoScalingPolicyBuilder { /* private fields */ }Expand description
A builder for AutoScalingPolicy.
Implementations§
source§impl AutoScalingPolicyBuilder
impl AutoScalingPolicyBuilder
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.
This field is required.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) -> AutoScalingPolicy
pub fn build(self) -> AutoScalingPolicy
Consumes the builder and constructs a AutoScalingPolicy.
Trait Implementations§
source§impl Clone for AutoScalingPolicyBuilder
impl Clone for AutoScalingPolicyBuilder
source§fn clone(&self) -> AutoScalingPolicyBuilder
fn clone(&self) -> AutoScalingPolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AutoScalingPolicyBuilder
impl Debug for AutoScalingPolicyBuilder
source§impl Default for AutoScalingPolicyBuilder
impl Default for AutoScalingPolicyBuilder
source§fn default() -> AutoScalingPolicyBuilder
fn default() -> AutoScalingPolicyBuilder
source§impl PartialEq for AutoScalingPolicyBuilder
impl PartialEq for AutoScalingPolicyBuilder
source§fn eq(&self, other: &AutoScalingPolicyBuilder) -> bool
fn eq(&self, other: &AutoScalingPolicyBuilder) -> bool
self and other values to be equal, and is used
by ==.