#[non_exhaustive]pub struct InstanceStateChangeReasonBuilder { /* private fields */ }Expand description
A builder for InstanceStateChangeReason.
Implementations§
source§impl InstanceStateChangeReasonBuilder
impl InstanceStateChangeReasonBuilder
sourcepub fn code(self, input: InstanceStateChangeReasonCode) -> Self
pub fn code(self, input: InstanceStateChangeReasonCode) -> Self
The programmable code for the state change reason.
sourcepub fn set_code(self, input: Option<InstanceStateChangeReasonCode>) -> Self
pub fn set_code(self, input: Option<InstanceStateChangeReasonCode>) -> Self
The programmable code for the state change reason.
sourcepub fn get_code(&self) -> &Option<InstanceStateChangeReasonCode>
pub fn get_code(&self) -> &Option<InstanceStateChangeReasonCode>
The programmable code for the state change reason.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The status change reason description.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The status change reason description.
sourcepub fn build(self) -> InstanceStateChangeReason
pub fn build(self) -> InstanceStateChangeReason
Consumes the builder and constructs a InstanceStateChangeReason.
Trait Implementations§
source§impl Clone for InstanceStateChangeReasonBuilder
impl Clone for InstanceStateChangeReasonBuilder
source§fn clone(&self) -> InstanceStateChangeReasonBuilder
fn clone(&self) -> InstanceStateChangeReasonBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for InstanceStateChangeReasonBuilder
impl Default for InstanceStateChangeReasonBuilder
source§fn default() -> InstanceStateChangeReasonBuilder
fn default() -> InstanceStateChangeReasonBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InstanceStateChangeReasonBuilder
impl PartialEq for InstanceStateChangeReasonBuilder
source§fn eq(&self, other: &InstanceStateChangeReasonBuilder) -> bool
fn eq(&self, other: &InstanceStateChangeReasonBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InstanceStateChangeReasonBuilder
Auto Trait Implementations§
impl Freeze for InstanceStateChangeReasonBuilder
impl RefUnwindSafe for InstanceStateChangeReasonBuilder
impl Send for InstanceStateChangeReasonBuilder
impl Sync for InstanceStateChangeReasonBuilder
impl Unpin for InstanceStateChangeReasonBuilder
impl UnwindSafe for InstanceStateChangeReasonBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.