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 ==
.