#[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 ==.impl StructuralPartialEq for AutoScalingPolicyStateChangeReasonBuilder
Auto Trait Implementations§
impl Freeze for AutoScalingPolicyStateChangeReasonBuilder
impl RefUnwindSafe for AutoScalingPolicyStateChangeReasonBuilder
impl Send for AutoScalingPolicyStateChangeReasonBuilder
impl Sync for AutoScalingPolicyStateChangeReasonBuilder
impl Unpin for AutoScalingPolicyStateChangeReasonBuilder
impl UnwindSafe for AutoScalingPolicyStateChangeReasonBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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