Struct aws_sdk_emr::types::builders::ScalingRuleBuilder
source · #[non_exhaustive]pub struct ScalingRuleBuilder { /* private fields */ }Expand description
A builder for ScalingRule.
Implementations§
source§impl ScalingRuleBuilder
impl ScalingRuleBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A friendly, more verbose description of the automatic scaling rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A friendly, more verbose description of the automatic scaling rule.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A friendly, more verbose description of the automatic scaling rule.
sourcepub fn action(self, input: ScalingAction) -> Self
pub fn action(self, input: ScalingAction) -> Self
The conditions that trigger an automatic scaling activity.
This field is required.sourcepub fn set_action(self, input: Option<ScalingAction>) -> Self
pub fn set_action(self, input: Option<ScalingAction>) -> Self
The conditions that trigger an automatic scaling activity.
sourcepub fn get_action(&self) -> &Option<ScalingAction>
pub fn get_action(&self) -> &Option<ScalingAction>
The conditions that trigger an automatic scaling activity.
sourcepub fn trigger(self, input: ScalingTrigger) -> Self
pub fn trigger(self, input: ScalingTrigger) -> Self
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
This field is required.sourcepub fn set_trigger(self, input: Option<ScalingTrigger>) -> Self
pub fn set_trigger(self, input: Option<ScalingTrigger>) -> Self
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
sourcepub fn get_trigger(&self) -> &Option<ScalingTrigger>
pub fn get_trigger(&self) -> &Option<ScalingTrigger>
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
sourcepub fn build(self) -> ScalingRule
pub fn build(self) -> ScalingRule
Consumes the builder and constructs a ScalingRule.
Trait Implementations§
source§impl Clone for ScalingRuleBuilder
impl Clone for ScalingRuleBuilder
source§fn clone(&self) -> ScalingRuleBuilder
fn clone(&self) -> ScalingRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScalingRuleBuilder
impl Debug for ScalingRuleBuilder
source§impl Default for ScalingRuleBuilder
impl Default for ScalingRuleBuilder
source§fn default() -> ScalingRuleBuilder
fn default() -> ScalingRuleBuilder
source§impl PartialEq for ScalingRuleBuilder
impl PartialEq for ScalingRuleBuilder
source§fn eq(&self, other: &ScalingRuleBuilder) -> bool
fn eq(&self, other: &ScalingRuleBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ScalingRuleBuilder
Auto Trait Implementations§
impl Freeze for ScalingRuleBuilder
impl RefUnwindSafe for ScalingRuleBuilder
impl Send for ScalingRuleBuilder
impl Sync for ScalingRuleBuilder
impl Unpin for ScalingRuleBuilder
impl UnwindSafe for ScalingRuleBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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