Struct aws_sdk_emr::types::ClusterStatus
source · #[non_exhaustive]pub struct ClusterStatus {
pub state: Option<ClusterState>,
pub state_change_reason: Option<ClusterStateChangeReason>,
pub timeline: Option<ClusterTimeline>,
pub error_details: Option<Vec<ErrorDetail>>,
}
Expand description
The detailed status of the cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.state: Option<ClusterState>
The current state of the cluster.
state_change_reason: Option<ClusterStateChangeReason>
The reason for the cluster status change.
timeline: Option<ClusterTimeline>
A timeline that represents the status of a cluster over the lifetime of the cluster.
error_details: Option<Vec<ErrorDetail>>
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail
tuples.
Implementations§
source§impl ClusterStatus
impl ClusterStatus
sourcepub fn state(&self) -> Option<&ClusterState>
pub fn state(&self) -> Option<&ClusterState>
The current state of the cluster.
sourcepub fn state_change_reason(&self) -> Option<&ClusterStateChangeReason>
pub fn state_change_reason(&self) -> Option<&ClusterStateChangeReason>
The reason for the cluster status change.
sourcepub fn timeline(&self) -> Option<&ClusterTimeline>
pub fn timeline(&self) -> Option<&ClusterTimeline>
A timeline that represents the status of a cluster over the lifetime of the cluster.
sourcepub fn error_details(&self) -> &[ErrorDetail]
pub fn error_details(&self) -> &[ErrorDetail]
A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail
tuples.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .error_details.is_none()
.
source§impl ClusterStatus
impl ClusterStatus
sourcepub fn builder() -> ClusterStatusBuilder
pub fn builder() -> ClusterStatusBuilder
Creates a new builder-style object to manufacture ClusterStatus
.
Trait Implementations§
source§impl Clone for ClusterStatus
impl Clone for ClusterStatus
source§fn clone(&self) -> ClusterStatus
fn clone(&self) -> ClusterStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterStatus
impl Debug for ClusterStatus
source§impl PartialEq for ClusterStatus
impl PartialEq for ClusterStatus
source§fn eq(&self, other: &ClusterStatus) -> bool
fn eq(&self, other: &ClusterStatus) -> bool
self
and other
values to be equal, and is used
by ==
.