Struct aws_sdk_emr::model::cluster_state_change_reason::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ClusterStateChangeReason.
Implementations§
source§impl Builder
impl Builder
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.