Struct aws_sdk_emr::types::builders::ScalingConstraintsBuilder
source · #[non_exhaustive]pub struct ScalingConstraintsBuilder { /* private fields */ }
Expand description
A builder for ScalingConstraints
.
Implementations§
source§impl ScalingConstraintsBuilder
impl ScalingConstraintsBuilder
sourcepub fn min_capacity(self, input: i32) -> Self
pub fn min_capacity(self, input: i32) -> Self
The lower boundary of Amazon 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.
This field is required.sourcepub fn set_min_capacity(self, input: Option<i32>) -> Self
pub fn set_min_capacity(self, input: Option<i32>) -> Self
The lower boundary of Amazon 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 get_min_capacity(&self) -> &Option<i32>
pub fn get_min_capacity(&self) -> &Option<i32>
The lower boundary of Amazon 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 Amazon 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.
This field is required.sourcepub fn set_max_capacity(self, input: Option<i32>) -> Self
pub fn set_max_capacity(self, input: Option<i32>) -> Self
The upper boundary of Amazon 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 get_max_capacity(&self) -> &Option<i32>
pub fn get_max_capacity(&self) -> &Option<i32>
The upper boundary of Amazon 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
.
Trait Implementations§
source§impl Clone for ScalingConstraintsBuilder
impl Clone for ScalingConstraintsBuilder
source§fn clone(&self) -> ScalingConstraintsBuilder
fn clone(&self) -> ScalingConstraintsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalingConstraintsBuilder
impl Debug for ScalingConstraintsBuilder
source§impl Default for ScalingConstraintsBuilder
impl Default for ScalingConstraintsBuilder
source§fn default() -> ScalingConstraintsBuilder
fn default() -> ScalingConstraintsBuilder
source§impl PartialEq for ScalingConstraintsBuilder
impl PartialEq for ScalingConstraintsBuilder
source§fn eq(&self, other: &ScalingConstraintsBuilder) -> bool
fn eq(&self, other: &ScalingConstraintsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.