Struct aws_sdk_emr::model::scaling_constraints::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ScalingConstraints.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn min_capacity(self, input: i32) -> Self
pub fn min_capacity(self, input: i32) -> Self
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.
sourcepub fn set_min_capacity(self, input: Option<i32>) -> Self
pub fn set_min_capacity(self, input: Option<i32>) -> Self
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.
sourcepub fn max_capacity(self, input: i32) -> Self
pub fn max_capacity(self, input: i32) -> Self
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.
sourcepub fn set_max_capacity(self, input: Option<i32>) -> Self
pub fn set_max_capacity(self, input: Option<i32>) -> Self
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.
sourcepub fn build(self) -> ScalingConstraints
pub fn build(self) -> ScalingConstraints
Consumes the builder and constructs a ScalingConstraints.