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 ==.impl StructuralPartialEq for ScalingConstraintsBuilder
Auto Trait Implementations§
impl Freeze for ScalingConstraintsBuilder
impl RefUnwindSafe for ScalingConstraintsBuilder
impl Send for ScalingConstraintsBuilder
impl Sync for ScalingConstraintsBuilder
impl Unpin for ScalingConstraintsBuilder
impl UnwindSafe for ScalingConstraintsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more