#[non_exhaustive]pub struct AutoScalingPolicyStateChangeReasonBuilder { /* private fields */ }Expand description
A builder for AutoScalingPolicyStateChangeReason.
Implementations§
source§impl AutoScalingPolicyStateChangeReasonBuilder
impl AutoScalingPolicyStateChangeReasonBuilder
sourcepub fn code(self, input: AutoScalingPolicyStateChangeReasonCode) -> Self
pub fn code(self, input: AutoScalingPolicyStateChangeReasonCode) -> Self
The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
sourcepub fn set_code(
self,
input: Option<AutoScalingPolicyStateChangeReasonCode>
) -> Self
pub fn set_code( self, input: Option<AutoScalingPolicyStateChangeReasonCode> ) -> Self
The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
sourcepub fn get_code(&self) -> &Option<AutoScalingPolicyStateChangeReasonCode>
pub fn get_code(&self) -> &Option<AutoScalingPolicyStateChangeReasonCode>
The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A friendly, more verbose message that accompanies an automatic scaling policy state change.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A friendly, more verbose message that accompanies an automatic scaling policy state change.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
A friendly, more verbose message that accompanies an automatic scaling policy state change.
sourcepub fn build(self) -> AutoScalingPolicyStateChangeReason
pub fn build(self) -> AutoScalingPolicyStateChangeReason
Consumes the builder and constructs a AutoScalingPolicyStateChangeReason.
Trait Implementations§
source§impl Clone for AutoScalingPolicyStateChangeReasonBuilder
impl Clone for AutoScalingPolicyStateChangeReasonBuilder
source§fn clone(&self) -> AutoScalingPolicyStateChangeReasonBuilder
fn clone(&self) -> AutoScalingPolicyStateChangeReasonBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AutoScalingPolicyStateChangeReasonBuilder
impl Default for AutoScalingPolicyStateChangeReasonBuilder
source§fn default() -> AutoScalingPolicyStateChangeReasonBuilder
fn default() -> AutoScalingPolicyStateChangeReasonBuilder
source§impl PartialEq for AutoScalingPolicyStateChangeReasonBuilder
impl PartialEq for AutoScalingPolicyStateChangeReasonBuilder
source§fn eq(&self, other: &AutoScalingPolicyStateChangeReasonBuilder) -> bool
fn eq(&self, other: &AutoScalingPolicyStateChangeReasonBuilder) -> bool
self and other values to be equal, and is used
by ==.