#[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 set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
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<InstanceStateChangeReasonBuilder> for InstanceStateChangeReasonBuilder
impl PartialEq<InstanceStateChangeReasonBuilder> 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 ==.