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 ==
.impl StructuralPartialEq for ClusterStatusBuilder
Auto Trait Implementations§
impl Freeze for ClusterStatusBuilder
impl RefUnwindSafe for ClusterStatusBuilder
impl Send for ClusterStatusBuilder
impl Sync for ClusterStatusBuilder
impl Unpin for ClusterStatusBuilder
impl UnwindSafe for ClusterStatusBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more