Struct aws_sdk_emr::model::scaling_rule::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ScalingRule.
Implementations§
source§impl Builder
impl Builder
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.
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 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 action(self, input: ScalingAction) -> Self
pub fn action(self, input: ScalingAction) -> Self
The conditions that trigger an automatic scaling activity.
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 trigger(self, input: ScalingTrigger) -> Self
pub fn trigger(self, input: ScalingTrigger) -> Self
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
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 build(self) -> ScalingRule
pub fn build(self) -> ScalingRule
Consumes the builder and constructs a ScalingRule.