#[non_exhaustive]pub struct ClusterStateChangeReasonBuilder { /* private fields */ }Expand description
A builder for ClusterStateChangeReason.
Implementations§
source§impl ClusterStateChangeReasonBuilder
impl ClusterStateChangeReasonBuilder
sourcepub fn code(self, input: ClusterStateChangeReasonCode) -> Self
pub fn code(self, input: ClusterStateChangeReasonCode) -> Self
The programmatic code for the state change reason.
sourcepub fn set_code(self, input: Option<ClusterStateChangeReasonCode>) -> Self
pub fn set_code(self, input: Option<ClusterStateChangeReasonCode>) -> Self
The programmatic code for the state change reason.
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The descriptive message for the state change reason.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The descriptive message for the state change reason.
sourcepub fn build(self) -> ClusterStateChangeReason
pub fn build(self) -> ClusterStateChangeReason
Consumes the builder and constructs a ClusterStateChangeReason.
Trait Implementations§
source§impl Clone for ClusterStateChangeReasonBuilder
impl Clone for ClusterStateChangeReasonBuilder
source§fn clone(&self) -> ClusterStateChangeReasonBuilder
fn clone(&self) -> ClusterStateChangeReasonBuilder
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 ClusterStateChangeReasonBuilder
impl Default for ClusterStateChangeReasonBuilder
source§fn default() -> ClusterStateChangeReasonBuilder
fn default() -> ClusterStateChangeReasonBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<ClusterStateChangeReasonBuilder> for ClusterStateChangeReasonBuilder
impl PartialEq<ClusterStateChangeReasonBuilder> for ClusterStateChangeReasonBuilder
source§fn eq(&self, other: &ClusterStateChangeReasonBuilder) -> bool
fn eq(&self, other: &ClusterStateChangeReasonBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.