Struct aws_sdk_emr::types::builders::ClusterStatusBuilder
source · #[non_exhaustive]pub struct ClusterStatusBuilder { /* private fields */ }
Expand description
A builder for ClusterStatus
.
Implementations§
source§impl ClusterStatusBuilder
impl ClusterStatusBuilder
sourcepub fn state(self, input: ClusterState) -> Self
pub fn state(self, input: ClusterState) -> Self
The current state of the cluster.
sourcepub fn set_state(self, input: Option<ClusterState>) -> Self
pub fn set_state(self, input: Option<ClusterState>) -> Self
The current state of the cluster.
sourcepub fn get_state(&self) -> &Option<ClusterState>
pub fn get_state(&self) -> &Option<ClusterState>
The current state of the cluster.
sourcepub fn state_change_reason(self, input: ClusterStateChangeReason) -> Self
pub fn state_change_reason(self, input: ClusterStateChangeReason) -> Self
The reason for the cluster status change.
sourcepub fn set_state_change_reason(
self,
input: Option<ClusterStateChangeReason>
) -> Self
pub fn set_state_change_reason( self, input: Option<ClusterStateChangeReason> ) -> Self
The reason for the cluster status change.
sourcepub fn get_state_change_reason(&self) -> &Option<ClusterStateChangeReason>
pub fn get_state_change_reason(&self) -> &Option<ClusterStateChangeReason>
The reason for the cluster status change.
sourcepub fn timeline(self, input: ClusterTimeline) -> Self
pub fn timeline(self, input: ClusterTimeline) -> Self
A timeline that represents the status of a cluster over the lifetime of the cluster.
sourcepub fn set_timeline(self, input: Option<ClusterTimeline>) -> Self
pub fn set_timeline(self, input: Option<ClusterTimeline>) -> Self
A timeline that represents the status of a cluster over the lifetime of the cluster.
sourcepub fn get_timeline(&self) -> &Option<ClusterTimeline>
pub fn get_timeline(&self) -> &Option<ClusterTimeline>
A timeline that represents the status of a cluster over the lifetime of the cluster.
sourcepub fn error_details(self, input: ErrorDetail) -> Self
pub fn error_details(self, input: ErrorDetail) -> Self
Appends an item to error_details
.
To override the contents of this collection use set_error_details
.
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.
sourcepub fn set_error_details(self, input: Option<Vec<ErrorDetail>>) -> Self
pub fn set_error_details(self, input: Option<Vec<ErrorDetail>>) -> Self
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.
sourcepub fn get_error_details(&self) -> &Option<Vec<ErrorDetail>>
pub fn get_error_details(&self) -> &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.
sourcepub fn build(self) -> ClusterStatus
pub fn build(self) -> ClusterStatus
Consumes the builder and constructs a ClusterStatus
.
Trait Implementations§
source§impl Clone for ClusterStatusBuilder
impl Clone for ClusterStatusBuilder
source§fn clone(&self) -> ClusterStatusBuilder
fn clone(&self) -> ClusterStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterStatusBuilder
impl Debug for ClusterStatusBuilder
source§impl Default for ClusterStatusBuilder
impl Default for ClusterStatusBuilder
source§fn default() -> ClusterStatusBuilder
fn default() -> ClusterStatusBuilder
source§impl PartialEq for ClusterStatusBuilder
impl PartialEq for ClusterStatusBuilder
source§fn eq(&self, other: &ClusterStatusBuilder) -> bool
fn eq(&self, other: &ClusterStatusBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.